Skip to content

Commit 2539e6a

Browse files
authored
fix(image): properly lock loremflickr.com images (#1396)
1 parent f410564 commit 2539e6a

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/modules/image/index.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class ImageModule {
4141
* @example
4242
* faker.image.image() // 'https://loremflickr.com/640/480/city'
4343
* faker.image.image(1234, 2345) // 'https://loremflickr.com/1234/2345/sports'
44-
* faker.image.image(1234, 2345, true) // 'https://loremflickr.com/1234/2345/nature?56789'
44+
* faker.image.image(1234, 2345, true) // 'https://loremflickr.com/1234/2345/nature?lock=56789'
4545
*
4646
* @since 2.0.1
4747
*/
@@ -93,7 +93,7 @@ export class ImageModule {
9393
* faker.image.imageUrl() // 'https://loremflickr.com/640/480'
9494
* faker.image.imageUrl(1234, 2345) // 'https://loremflickr.com/1234/2345'
9595
* faker.image.imageUrl(1234, 2345, 'cat') // 'https://loremflickr.com/1234/2345/cat'
96-
* faker.image.imageUrl(1234, 2345, 'cat', true) // 'https://loremflickr.com/1234/2345/cat?6849'
96+
* faker.image.imageUrl(1234, 2345, 'cat', true) // 'https://loremflickr.com/1234/2345/cat?lock=6849'
9797
*
9898
* @since 2.0.1
9999
*/
@@ -111,7 +111,7 @@ export class ImageModule {
111111
}
112112

113113
if (randomize) {
114-
url += `?${this.faker.datatype.number()}`;
114+
url += `?lock=${this.faker.datatype.number()}`;
115115
}
116116

117117
return url;
@@ -127,7 +127,7 @@ export class ImageModule {
127127
* @example
128128
* faker.image.abstract() // 'https://loremflickr.com/640/480/abstract'
129129
* faker.image.abstract(1234, 2345) // 'https://loremflickr.com/1234/2345/abstract'
130-
* faker.image.abstract(1234, 2345, true) // 'https://loremflickr.com/1234/2345/abstract?56789'
130+
* faker.image.abstract(1234, 2345, true) // 'https://loremflickr.com/1234/2345/abstract?lock=56789'
131131
*
132132
* @since 2.0.1
133133
*/
@@ -145,7 +145,7 @@ export class ImageModule {
145145
* @example
146146
* faker.image.animals() // 'https://loremflickr.com/640/480/animals'
147147
* faker.image.animals(1234, 2345) // 'https://loremflickr.com/1234/2345/animals'
148-
* faker.image.animals(1234, 2345, true) // 'https://loremflickr.com/1234/2345/animals?56789'
148+
* faker.image.animals(1234, 2345, true) // 'https://loremflickr.com/1234/2345/animals?lock=56789'
149149
*
150150
* @since 2.0.1
151151
*/
@@ -163,7 +163,7 @@ export class ImageModule {
163163
* @example
164164
* faker.image.business() // 'https://loremflickr.com/640/480/business'
165165
* faker.image.business(1234, 2345) // 'https://loremflickr.com/1234/2345/business'
166-
* faker.image.business(1234, 2345, true) // 'https://loremflickr.com/1234/2345/business?56789'
166+
* faker.image.business(1234, 2345, true) // 'https://loremflickr.com/1234/2345/business?lock=56789'
167167
*
168168
* @since 2.0.1
169169
*/
@@ -181,7 +181,7 @@ export class ImageModule {
181181
* @example
182182
* faker.image.cats() // 'https://loremflickr.com/640/480/cats'
183183
* faker.image.cats(1234, 2345) // 'https://loremflickr.com/1234/2345/cats'
184-
* faker.image.cats(1234, 2345, true) // 'https://loremflickr.com/1234/2345/cats?56789'
184+
* faker.image.cats(1234, 2345, true) // 'https://loremflickr.com/1234/2345/cats?lock=56789'
185185
*
186186
* @since 2.0.1
187187
*/
@@ -199,7 +199,7 @@ export class ImageModule {
199199
* @example
200200
* faker.image.city() // 'https://loremflickr.com/640/480/city'
201201
* faker.image.city(1234, 2345) // 'https://loremflickr.com/1234/2345/city'
202-
* faker.image.city(1234, 2345, true) // 'https://loremflickr.com/1234/2345/city?56789'
202+
* faker.image.city(1234, 2345, true) // 'https://loremflickr.com/1234/2345/city?lock=56789'
203203
*
204204
* @since 2.0.1
205205
*/
@@ -217,7 +217,7 @@ export class ImageModule {
217217
* @example
218218
* faker.image.food() // 'https://loremflickr.com/640/480/food'
219219
* faker.image.food(1234, 2345) // 'https://loremflickr.com/1234/2345/food'
220-
* faker.image.food(1234, 2345, true) // 'https://loremflickr.com/1234/2345/food?56789'
220+
* faker.image.food(1234, 2345, true) // 'https://loremflickr.com/1234/2345/food?lock=56789'
221221
*
222222
* @since 2.0.1
223223
*/
@@ -235,7 +235,7 @@ export class ImageModule {
235235
* @example
236236
* faker.image.nightlife() // 'https://loremflickr.com/640/480/nightlife'
237237
* faker.image.nightlife(1234, 2345) // 'https://loremflickr.com/1234/2345/nightlife'
238-
* faker.image.nightlife(1234, 2345, true) // 'https://loremflickr.com/1234/2345/nightlife?56789'
238+
* faker.image.nightlife(1234, 2345, true) // 'https://loremflickr.com/1234/2345/nightlife?lock=56789'
239239
*
240240
* @since 2.0.1
241241
*/
@@ -253,7 +253,7 @@ export class ImageModule {
253253
* @example
254254
* faker.image.fashion() // 'https://loremflickr.com/640/480/fashion'
255255
* faker.image.fashion(1234, 2345) // 'https://loremflickr.com/1234/2345/fashion'
256-
* faker.image.fashion(1234, 2345, true) // 'https://loremflickr.com/1234/2345/fashion?56789'
256+
* faker.image.fashion(1234, 2345, true) // 'https://loremflickr.com/1234/2345/fashion?lock=56789'
257257
*
258258
* @since 2.0.1
259259
*/
@@ -271,7 +271,7 @@ export class ImageModule {
271271
* @example
272272
* faker.image.people() // 'https://loremflickr.com/640/480/people'
273273
* faker.image.people(1234, 2345) // 'https://loremflickr.com/1234/2345/people'
274-
* faker.image.people(1234, 2345, true) // 'https://loremflickr.com/1234/2345/people?56789'
274+
* faker.image.people(1234, 2345, true) // 'https://loremflickr.com/1234/2345/people?lock=56789'
275275
*
276276
* @since 2.0.1
277277
*/
@@ -289,7 +289,7 @@ export class ImageModule {
289289
* @example
290290
* faker.image.nature() // 'https://loremflickr.com/640/480/nature'
291291
* faker.image.nature(1234, 2345) // 'https://loremflickr.com/1234/2345/nature'
292-
* faker.image.nature(1234, 2345, true) // 'https://loremflickr.com/1234/2345/nature?56789'
292+
* faker.image.nature(1234, 2345, true) // 'https://loremflickr.com/1234/2345/nature?lock=56789'
293293
*
294294
* @since 2.0.1
295295
*/
@@ -307,7 +307,7 @@ export class ImageModule {
307307
* @example
308308
* faker.image.sports() // 'https://loremflickr.com/640/480/sports'
309309
* faker.image.sports(1234, 2345) // 'https://loremflickr.com/1234/2345/sports'
310-
* faker.image.sports(1234, 2345, true) // 'https://loremflickr.com/1234/2345/sports?56789'
310+
* faker.image.sports(1234, 2345, true) // 'https://loremflickr.com/1234/2345/sports?lock=56789'
311311
*
312312
* @since 2.0.1
313313
*/
@@ -325,7 +325,7 @@ export class ImageModule {
325325
* @example
326326
* faker.image.technics() // 'https://loremflickr.com/640/480/technics'
327327
* faker.image.technics(1234, 2345) // 'https://loremflickr.com/1234/2345/technics'
328-
* faker.image.technics(1234, 2345, true) // 'https://loremflickr.com/1234/2345/technics?56789'
328+
* faker.image.technics(1234, 2345, true) // 'https://loremflickr.com/1234/2345/technics?lock=56789'
329329
*
330330
* @since 2.0.1
331331
*/
@@ -343,7 +343,7 @@ export class ImageModule {
343343
* @example
344344
* faker.image.transport() // 'https://loremflickr.com/640/480/transport'
345345
* faker.image.transport(1234, 2345) // 'https://loremflickr.com/1234/2345/transport'
346-
* faker.image.transport(1234, 2345, true) // 'https://loremflickr.com/1234/2345/transport?56789'
346+
* faker.image.transport(1234, 2345, true) // 'https://loremflickr.com/1234/2345/transport?lock=56789'
347347
*
348348
* @since 2.0.1
349349
*/

0 commit comments

Comments
 (0)