@nestia/fetcher 1.2.3 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,21 @@ export interface IConnection {
18
18
  * Host address of the remote HTTP server.
19
19
  */
20
20
  host: string;
21
+ /**
22
+ * Use `typia.random<T>()` function instead.
23
+ *
24
+ * If you configure this property to be `true`, your SDK library does not send
25
+ * any request to remote backend server, but just returns a random data generated
26
+ * by `typia.random<T>()` function.
27
+ *
28
+ * By the way, to utilize this random property, SDK library must be generated with
29
+ * `random` option, too. Open `nestia.config.ts` file, and configure `random: true`
30
+ * property in the top level. Then newly generated SDK library would have a
31
+ * built-in random generator.
32
+ *
33
+ * @default false
34
+ */
35
+ random?: boolean;
21
36
  /**
22
37
  * Header values delivered to the remote HTTP server.
23
38
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestia/fetcher",
3
- "version": "1.2.3",
3
+ "version": "1.3.0",
4
4
  "description": "Fetcher library of Nestia SDK",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -20,6 +20,22 @@ export interface IConnection {
20
20
  */
21
21
  host: string;
22
22
 
23
+ /**
24
+ * Use `typia.random<T>()` function instead.
25
+ *
26
+ * If you configure this property to be `true`, your SDK library does not send
27
+ * any request to remote backend server, but just returns a random data generated
28
+ * by `typia.random<T>()` function.
29
+ *
30
+ * By the way, to utilize this random property, SDK library must be generated with
31
+ * `random` option, too. Open `nestia.config.ts` file, and configure `random: true`
32
+ * property in the top level. Then newly generated SDK library would have a
33
+ * built-in random generator.
34
+ *
35
+ * @default false
36
+ */
37
+ random?: boolean;
38
+
23
39
  /**
24
40
  * Header values delivered to the remote HTTP server.
25
41
  */