@nestia/fetcher 12.0.0-rc.3 → 12.0.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.
Files changed (91) hide show
  1. package/lib/AesPkcs5.mjs +21 -3
  2. package/lib/AesPkcs5.mjs.map +1 -1
  3. package/lib/EncryptedFetcher.mjs +52 -3
  4. package/lib/EncryptedFetcher.mjs.map +1 -1
  5. package/lib/FormDataInput.mjs +0 -3
  6. package/lib/HttpError.mjs +2 -2
  7. package/lib/IConnection.mjs +0 -3
  8. package/lib/IEncryptionPassword.mjs +0 -3
  9. package/lib/IFetchEvent.mjs +0 -3
  10. package/lib/IFetchRoute.mjs +0 -3
  11. package/lib/IPropagation.mjs +0 -3
  12. package/lib/NestiaSimulator.mjs +36 -3
  13. package/lib/NestiaSimulator.mjs.map +1 -1
  14. package/lib/PlainFetcher.mjs +27 -3
  15. package/lib/PlainFetcher.mjs.map +1 -1
  16. package/lib/index.mjs +4 -2
  17. package/lib/internal/FetcherBase.mjs +117 -3
  18. package/lib/internal/FetcherBase.mjs.map +1 -1
  19. package/lib/internal/is_binary_response_content_type.mjs +10 -3
  20. package/lib/internal/is_binary_response_content_type.mjs.map +1 -1
  21. package/package.json +7 -11
  22. package/lib/AesPkcs52.mjs +0 -53
  23. package/lib/AesPkcs52.mjs.map +0 -1
  24. package/lib/EncryptedFetcher2.mjs +0 -105
  25. package/lib/EncryptedFetcher2.mjs.map +0 -1
  26. package/lib/FormDataInput.mjs.map +0 -1
  27. package/lib/FormDataInput2.mjs +0 -6
  28. package/lib/FormDataInput2.mjs.map +0 -1
  29. package/lib/HttpError.mjs.map +0 -1
  30. package/lib/HttpError2.mjs +0 -16
  31. package/lib/HttpError2.mjs.map +0 -1
  32. package/lib/IConnection.mjs.map +0 -1
  33. package/lib/IConnection2.mjs +0 -6
  34. package/lib/IConnection2.mjs.map +0 -1
  35. package/lib/IEncryptionPassword.mjs.map +0 -1
  36. package/lib/IEncryptionPassword2.mjs +0 -6
  37. package/lib/IEncryptionPassword2.mjs.map +0 -1
  38. package/lib/IFetchEvent.mjs.map +0 -1
  39. package/lib/IFetchEvent2.mjs +0 -6
  40. package/lib/IFetchEvent2.mjs.map +0 -1
  41. package/lib/IFetchRoute.mjs.map +0 -1
  42. package/lib/IFetchRoute2.mjs +0 -6
  43. package/lib/IFetchRoute2.mjs.map +0 -1
  44. package/lib/IPropagation.mjs.map +0 -1
  45. package/lib/IPropagation2.mjs +0 -6
  46. package/lib/IPropagation2.mjs.map +0 -1
  47. package/lib/NestiaSimulator2.mjs +0 -49
  48. package/lib/NestiaSimulator2.mjs.map +0 -1
  49. package/lib/PlainFetcher2.mjs +0 -63
  50. package/lib/PlainFetcher2.mjs.map +0 -1
  51. package/lib/_virtual/AesPkcs5.mjs +0 -4
  52. package/lib/_virtual/AesPkcs5.mjs.map +0 -1
  53. package/lib/_virtual/EncryptedFetcher.mjs +0 -4
  54. package/lib/_virtual/EncryptedFetcher.mjs.map +0 -1
  55. package/lib/_virtual/FetcherBase.mjs +0 -4
  56. package/lib/_virtual/FetcherBase.mjs.map +0 -1
  57. package/lib/_virtual/FormDataInput.mjs +0 -4
  58. package/lib/_virtual/FormDataInput.mjs.map +0 -1
  59. package/lib/_virtual/HttpError.mjs +0 -4
  60. package/lib/_virtual/HttpError.mjs.map +0 -1
  61. package/lib/_virtual/IConnection.mjs +0 -4
  62. package/lib/_virtual/IConnection.mjs.map +0 -1
  63. package/lib/_virtual/IEncryptionPassword.mjs +0 -4
  64. package/lib/_virtual/IEncryptionPassword.mjs.map +0 -1
  65. package/lib/_virtual/IFetchEvent.mjs +0 -4
  66. package/lib/_virtual/IFetchEvent.mjs.map +0 -1
  67. package/lib/_virtual/IFetchRoute.mjs +0 -4
  68. package/lib/_virtual/IFetchRoute.mjs.map +0 -1
  69. package/lib/_virtual/IPropagation.mjs +0 -4
  70. package/lib/_virtual/IPropagation.mjs.map +0 -1
  71. package/lib/_virtual/NestiaSimulator.mjs +0 -4
  72. package/lib/_virtual/NestiaSimulator.mjs.map +0 -1
  73. package/lib/_virtual/PlainFetcher.mjs +0 -4
  74. package/lib/_virtual/PlainFetcher.mjs.map +0 -1
  75. package/lib/_virtual/_commonjsHelpers.mjs +0 -35
  76. package/lib/_virtual/_commonjsHelpers.mjs.map +0 -1
  77. package/lib/_virtual/_node_crypto.mjs +0 -7
  78. package/lib/_virtual/_node_crypto.mjs.map +0 -1
  79. package/lib/_virtual/index.mjs +0 -4
  80. package/lib/_virtual/index.mjs.map +0 -1
  81. package/lib/_virtual/is_binary_response_content_type.mjs +0 -4
  82. package/lib/_virtual/is_binary_response_content_type.mjs.map +0 -1
  83. package/lib/_virtual/utils.mjs +0 -7
  84. package/lib/_virtual/utils.mjs.map +0 -1
  85. package/lib/index.mjs.map +0 -1
  86. package/lib/index2.mjs +0 -53
  87. package/lib/index2.mjs.map +0 -1
  88. package/lib/internal/FetcherBase2.mjs +0 -203
  89. package/lib/internal/FetcherBase2.mjs.map +0 -1
  90. package/lib/internal/is_binary_response_content_type2.mjs +0 -18
  91. package/lib/internal/is_binary_response_content_type2.mjs.map +0 -1
@@ -1,105 +0,0 @@
1
- import { __exports as EncryptedFetcher$1 } from './_virtual/EncryptedFetcher.mjs';
2
- import './AesPkcs52.mjs';
3
- import './internal/FetcherBase2.mjs';
4
- import { __exports as FetcherBase } from './_virtual/FetcherBase.mjs';
5
- import { __exports as AesPkcs5 } from './_virtual/AesPkcs5.mjs';
6
-
7
- var __awaiter = (EncryptedFetcher$1 && EncryptedFetcher$1.__awaiter) || function (thisArg, _arguments, P, generator) {
8
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9
- return new (P || (P = Promise))(function (resolve, reject) {
10
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
11
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
12
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
13
- step((generator = generator.apply(thisArg, _arguments || [])).next());
14
- });
15
- };
16
- Object.defineProperty(EncryptedFetcher$1, "__esModule", { value: true });
17
- var EncryptedFetcher_2 = EncryptedFetcher$1.EncryptedFetcher = void 0;
18
- const AesPkcs5_1 = AesPkcs5;
19
- const FetcherBase_1 = FetcherBase;
20
- /**
21
- * Utility class for `fetch` functions used in `@nestia/sdk` with encryption.
22
- *
23
- * `EncryptedFetcher` is a utility class designed for SDK functions generated by
24
- * [`@nestia/sdk`](https://nestia.io/docs/sdk/sdk), interacting with the remote
25
- * HTTP API encrypted by AES-PKCS algorithm. In other words, this is a
26
- * collection of dedicated `fetch()` functions for `@nestia/sdk` with
27
- * encryption.
28
- *
29
- * For reference, `EncryptedFetcher` class being used only when target
30
- * controller method is encrypting body data by `@EncryptedRoute` or
31
- * `@EncryptedBody` decorators. If those decorators are not used,
32
- * {@link PlainFetcher} class would be used instead.
33
- *
34
- * @author Jeongho Nam - https://github.com/samchon
35
- */
36
- var EncryptedFetcher;
37
- (function (EncryptedFetcher) {
38
- function fetch(connection, route, input, stringify) {
39
- return __awaiter(this, void 0, void 0, function* () {
40
- var _a, _b, _c, _d;
41
- if ((((_a = route.request) === null || _a === void 0 ? void 0 : _a.encrypted) === true || ((_b = route.response) === null || _b === void 0 ? void 0 : _b.encrypted)) &&
42
- connection.encryption === undefined)
43
- throw new Error("Error on EncryptedFetcher.fetch(): the encryption password has not been configured.");
44
- const closure = typeof connection.encryption === "function"
45
- ? (direction) => (headers, body) => connection.encryption({
46
- headers,
47
- body,
48
- direction,
49
- })
50
- : () => () => connection.encryption;
51
- return FetcherBase_1.FetcherBase.request({
52
- className: "EncryptedFetcher",
53
- encode: ((_c = route.request) === null || _c === void 0 ? void 0 : _c.encrypted) === true
54
- ? (input, headers) => {
55
- const p = closure("encode")(headers, input);
56
- return AesPkcs5_1.AesPkcs5.encrypt((stringify !== null && stringify !== void 0 ? stringify : JSON.stringify)(input), p.key, p.iv);
57
- }
58
- : (input) => input,
59
- decode: ((_d = route.response) === null || _d === void 0 ? void 0 : _d.encrypted) === true
60
- ? (input, headers) => {
61
- const p = closure("decode")(headers, input);
62
- const s = AesPkcs5_1.AesPkcs5.decrypt(input, p.key, p.iv);
63
- return s.length ? JSON.parse(s) : s;
64
- }
65
- : (input) => input,
66
- })(connection, route, input, stringify);
67
- });
68
- }
69
- EncryptedFetcher.fetch = fetch;
70
- function propagate(connection, route, input, stringify) {
71
- return __awaiter(this, void 0, void 0, function* () {
72
- var _a, _b, _c, _d;
73
- if ((((_a = route.request) === null || _a === void 0 ? void 0 : _a.encrypted) === true || ((_b = route.response) === null || _b === void 0 ? void 0 : _b.encrypted)) &&
74
- connection.encryption === undefined)
75
- throw new Error("Error on EncryptedFetcher.propagate(): the encryption password has not been configured.");
76
- const closure = typeof connection.encryption === "function"
77
- ? (direction) => (headers, body) => connection.encryption({
78
- headers,
79
- body,
80
- direction,
81
- })
82
- : () => () => connection.encryption;
83
- return FetcherBase_1.FetcherBase.propagate({
84
- className: "EncryptedFetcher",
85
- encode: ((_c = route.request) === null || _c === void 0 ? void 0 : _c.encrypted) === true
86
- ? (input, headers) => {
87
- const p = closure("encode")(headers, input);
88
- return AesPkcs5_1.AesPkcs5.encrypt((stringify !== null && stringify !== void 0 ? stringify : JSON.stringify)(input), p.key, p.iv);
89
- }
90
- : (input) => input,
91
- decode: ((_d = route.response) === null || _d === void 0 ? void 0 : _d.encrypted) === true
92
- ? (input, headers) => {
93
- const p = closure("decode")(headers, input);
94
- const s = AesPkcs5_1.AesPkcs5.decrypt(input, p.key, p.iv);
95
- return s.length ? JSON.parse(s) : s;
96
- }
97
- : (input) => input,
98
- })(connection, route, input, stringify);
99
- });
100
- }
101
- EncryptedFetcher.propagate = propagate;
102
- })(EncryptedFetcher || (EncryptedFetcher_2 = EncryptedFetcher$1.EncryptedFetcher = EncryptedFetcher = {}));
103
-
104
- export { EncryptedFetcher_2 as EncryptedFetcher, EncryptedFetcher$1 as default };
105
- //# sourceMappingURL=EncryptedFetcher2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EncryptedFetcher2.mjs","sources":["EncryptedFetcher.js"],"sourcesContent":["\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.EncryptedFetcher = void 0;\nconst AesPkcs5_1 = require(\"./AesPkcs5\");\nconst FetcherBase_1 = require(\"./internal/FetcherBase\");\n/**\n * Utility class for `fetch` functions used in `@nestia/sdk` with encryption.\n *\n * `EncryptedFetcher` is a utility class designed for SDK functions generated by\n * [`@nestia/sdk`](https://nestia.io/docs/sdk/sdk), interacting with the remote\n * HTTP API encrypted by AES-PKCS algorithm. In other words, this is a\n * collection of dedicated `fetch()` functions for `@nestia/sdk` with\n * encryption.\n *\n * For reference, `EncryptedFetcher` class being used only when target\n * controller method is encrypting body data by `@EncryptedRoute` or\n * `@EncryptedBody` decorators. If those decorators are not used,\n * {@link PlainFetcher} class would be used instead.\n *\n * @author Jeongho Nam - https://github.com/samchon\n */\nvar EncryptedFetcher;\n(function (EncryptedFetcher) {\n function fetch(connection, route, input, stringify) {\n return __awaiter(this, void 0, void 0, function* () {\n var _a, _b, _c, _d;\n if ((((_a = route.request) === null || _a === void 0 ? void 0 : _a.encrypted) === true || ((_b = route.response) === null || _b === void 0 ? void 0 : _b.encrypted)) &&\n connection.encryption === undefined)\n throw new Error(\"Error on EncryptedFetcher.fetch(): the encryption password has not been configured.\");\n const closure = typeof connection.encryption === \"function\"\n ? (direction) => (headers, body) => connection.encryption({\n headers,\n body,\n direction,\n })\n : () => () => connection.encryption;\n return FetcherBase_1.FetcherBase.request({\n className: \"EncryptedFetcher\",\n encode: ((_c = route.request) === null || _c === void 0 ? void 0 : _c.encrypted) === true\n ? (input, headers) => {\n const p = closure(\"encode\")(headers, input);\n return AesPkcs5_1.AesPkcs5.encrypt((stringify !== null && stringify !== void 0 ? stringify : JSON.stringify)(input), p.key, p.iv);\n }\n : (input) => input,\n decode: ((_d = route.response) === null || _d === void 0 ? void 0 : _d.encrypted) === true\n ? (input, headers) => {\n const p = closure(\"decode\")(headers, input);\n const s = AesPkcs5_1.AesPkcs5.decrypt(input, p.key, p.iv);\n return s.length ? JSON.parse(s) : s;\n }\n : (input) => input,\n })(connection, route, input, stringify);\n });\n }\n EncryptedFetcher.fetch = fetch;\n function propagate(connection, route, input, stringify) {\n return __awaiter(this, void 0, void 0, function* () {\n var _a, _b, _c, _d;\n if ((((_a = route.request) === null || _a === void 0 ? void 0 : _a.encrypted) === true || ((_b = route.response) === null || _b === void 0 ? void 0 : _b.encrypted)) &&\n connection.encryption === undefined)\n throw new Error(\"Error on EncryptedFetcher.propagate(): the encryption password has not been configured.\");\n const closure = typeof connection.encryption === \"function\"\n ? (direction) => (headers, body) => connection.encryption({\n headers,\n body,\n direction,\n })\n : () => () => connection.encryption;\n return FetcherBase_1.FetcherBase.propagate({\n className: \"EncryptedFetcher\",\n encode: ((_c = route.request) === null || _c === void 0 ? void 0 : _c.encrypted) === true\n ? (input, headers) => {\n const p = closure(\"encode\")(headers, input);\n return AesPkcs5_1.AesPkcs5.encrypt((stringify !== null && stringify !== void 0 ? stringify : JSON.stringify)(input), p.key, p.iv);\n }\n : (input) => input,\n decode: ((_d = route.response) === null || _d === void 0 ? void 0 : _d.encrypted) === true\n ? (input, headers) => {\n const p = closure(\"decode\")(headers, input);\n const s = AesPkcs5_1.AesPkcs5.decrypt(input, p.key, p.iv);\n return s.length ? JSON.parse(s) : s;\n }\n : (input) => input,\n })(connection, route, input, stringify);\n });\n }\n EncryptedFetcher.propagate = propagate;\n})(EncryptedFetcher || (exports.EncryptedFetcher = EncryptedFetcher = {}));\n//# sourceMappingURL=EncryptedFetcher.js.map"],"names":["this","EncryptedFetcher_1","require$$0","require$$1"],"mappings":";;;;;;AACA,IAAI,SAAS,GAAG,CAACA,kBAAI,IAAIA,kBAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAA,CAAE,CAAC,CAAC,CAAA;AAC9G,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA,CAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA,CAAE,CAAA;AACjG,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA,CAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA,CAAE,CAAA;AACpG,QAAQ,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAA;AACpH,QAAQ,IAAI,CAAC,C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,kBAAA,CAAA,gBAAwB,GAAG,gBAAgB,GAAG,EAAE,CAAC,CAAC;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormDataInput.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,6 +0,0 @@
1
- import { __exports as FormDataInput } from './_virtual/FormDataInput.mjs';
2
-
3
- Object.defineProperty(FormDataInput, "__esModule", { value: true });
4
-
5
- export { FormDataInput as default };
6
- //# sourceMappingURL=FormDataInput2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormDataInput2.mjs","sources":["FormDataInput.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=FormDataInput.js.map"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,aAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"HttpError.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- import { getDefaultExportFromCjs } from './_virtual/_commonjsHelpers.mjs';
2
- import { __exports as HttpError$1 } from './_virtual/HttpError.mjs';
3
- import require$$0 from './_virtual/utils.mjs';
4
-
5
- (function (exports) {
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.HttpError = void 0;
8
- var utils_1 = require$$0;
9
- Object.defineProperty(exports, "HttpError", { enumerable: true, get: function () { return utils_1.HttpError; } });
10
-
11
- } (HttpError$1));
12
-
13
- var HttpError = /*@__PURE__*/getDefaultExportFromCjs(HttpError$1);
14
-
15
- export { HttpError as default };
16
- //# sourceMappingURL=HttpError2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HttpError2.mjs","sources":["HttpError.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HttpError = void 0;\nvar utils_1 = require(\"@typia/utils\");\nObject.defineProperty(exports, \"HttpError\", { enumerable: true, get: function () { return utils_1.HttpError; } });\n//# sourceMappingURL=HttpError.js.map"],"names":[],"mappings":";;;;;CACA,MAAM,CAAC,cAAc,CAAA,OAAA,EAAU,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAA,OAAA,CAAA,SAAA,GAAoB,MAAM;CAC1B,IAAI,OAAO,GAAG,UAAuB;CACrC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,OAAO,CAAC,SAAS,CAAC,CAAA,CAAE,EAAE,CAAC;AACjH;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IConnection.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,6 +0,0 @@
1
- import { __exports as IConnection } from './_virtual/IConnection.mjs';
2
-
3
- Object.defineProperty(IConnection, "__esModule", { value: true });
4
-
5
- export { IConnection as default };
6
- //# sourceMappingURL=IConnection2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IConnection2.mjs","sources":["IConnection.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=IConnection.js.map"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,WAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IEncryptionPassword.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,6 +0,0 @@
1
- import { __exports as IEncryptionPassword } from './_virtual/IEncryptionPassword.mjs';
2
-
3
- Object.defineProperty(IEncryptionPassword, "__esModule", { value: true });
4
-
5
- export { IEncryptionPassword as default };
6
- //# sourceMappingURL=IEncryptionPassword2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IEncryptionPassword2.mjs","sources":["IEncryptionPassword.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=IEncryptionPassword.js.map"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,mBAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IFetchEvent.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,6 +0,0 @@
1
- import { __exports as IFetchEvent } from './_virtual/IFetchEvent.mjs';
2
-
3
- Object.defineProperty(IFetchEvent, "__esModule", { value: true });
4
-
5
- export { IFetchEvent as default };
6
- //# sourceMappingURL=IFetchEvent2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IFetchEvent2.mjs","sources":["IFetchEvent.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// export namespace IFetchEvent {\n// export interface IFunction {\n// (connection: IConnection, ...args: any[]): Promise<any>;\n// METADATA: {\n// method: \"GET\" | \"POST\" | \"PUT\" | \"DELETE\" | \"PATCH\" | \"HEAD\" | \"OPTIONS\";\n// path: string;\n// request: null | {\n// type: string;\n// encrypted: boolean;\n// };\n// response: null | {\n// type: string;\n// encrypted: boolean;\n// };\n// };\n// status: null | number;\n// }\n// }\n//# sourceMappingURL=IFetchEvent.js.map"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,WAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IFetchRoute.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,6 +0,0 @@
1
- import { __exports as IFetchRoute } from './_virtual/IFetchRoute.mjs';
2
-
3
- Object.defineProperty(IFetchRoute, "__esModule", { value: true });
4
-
5
- export { IFetchRoute as default };
6
- //# sourceMappingURL=IFetchRoute2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IFetchRoute2.mjs","sources":["IFetchRoute.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=IFetchRoute.js.map"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,WAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IPropagation.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,6 +0,0 @@
1
- import { __exports as IPropagation } from './_virtual/IPropagation.mjs';
2
-
3
- Object.defineProperty(IPropagation, "__esModule", { value: true });
4
-
5
- export { IPropagation as default };
6
- //# sourceMappingURL=IPropagation2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IPropagation2.mjs","sources":["IPropagation.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=IPropagation.js.map"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,YAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;;;"}
@@ -1,49 +0,0 @@
1
- import { __exports as NestiaSimulator$1 } from './_virtual/NestiaSimulator.mjs';
2
- import './HttpError2.mjs';
3
- import { __exports as HttpError } from './_virtual/HttpError.mjs';
4
-
5
- Object.defineProperty(NestiaSimulator$1, "__esModule", { value: true });
6
- var NestiaSimulator_2 = NestiaSimulator$1.NestiaSimulator = void 0;
7
- const HttpError_1 = HttpError;
8
- var NestiaSimulator;
9
- (function (NestiaSimulator) {
10
- NestiaSimulator.assert = (props) => {
11
- return {
12
- param: param(props),
13
- query: query(props),
14
- body: body(props),
15
- };
16
- };
17
- const param = (props) => (name) => (task) => {
18
- validate((exp) => `URL parameter "${name}" is not ${exp.expected} type.`)(props)(task);
19
- };
20
- const query = (props) => (task) => validate(() => "Request query parameters are not following the promised type.")(props)(task);
21
- const body = (props) => (task) => validate(() => "Request body is not following the promised type.")(props)(task);
22
- const validate = (message, path) => (props) => (task) => {
23
- try {
24
- task();
25
- }
26
- catch (exp) {
27
- if (isTypeGuardError(exp))
28
- throw new HttpError_1.HttpError(props.method, props.host + props.path, 400, {
29
- "Content-Type": props.contentType,
30
- }, JSON.stringify({
31
- method: exp.method,
32
- path: exp.path,
33
- expected: exp.expected,
34
- value: exp.value,
35
- message: message(exp),
36
- }));
37
- throw exp;
38
- }
39
- };
40
- })(NestiaSimulator || (NestiaSimulator_2 = NestiaSimulator$1.NestiaSimulator = NestiaSimulator = {}));
41
- const isTypeGuardError = (input) => "string" === typeof input.method &&
42
- (undefined === input.path || "string" === typeof input.path) &&
43
- "string" === typeof input.expected &&
44
- "string" === typeof input.name &&
45
- "string" === typeof input.message &&
46
- (undefined === input.stack || "string" === typeof input.stack);
47
-
48
- export { NestiaSimulator_2 as NestiaSimulator, NestiaSimulator$1 as default };
49
- //# sourceMappingURL=NestiaSimulator2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NestiaSimulator2.mjs","sources":["NestiaSimulator.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NestiaSimulator = void 0;\nconst HttpError_1 = require(\"./HttpError\");\nvar NestiaSimulator;\n(function (NestiaSimulator) {\n NestiaSimulator.assert = (props) => {\n return {\n param: param(props),\n query: query(props),\n body: body(props),\n };\n };\n const param = (props) => (name) => (task) => {\n validate((exp) => `URL parameter \"${name}\" is not ${exp.expected} type.`)(props)(task);\n };\n const query = (props) => (task) => validate(() => \"Request query parameters are not following the promised type.\")(props)(task);\n const body = (props) => (task) => validate(() => \"Request body is not following the promised type.\")(props)(task);\n const validate = (message, path) => (props) => (task) => {\n try {\n task();\n }\n catch (exp) {\n if (isTypeGuardError(exp))\n throw new HttpError_1.HttpError(props.method, props.host + props.path, 400, {\n \"Content-Type\": props.contentType,\n }, JSON.stringify({\n method: exp.method,\n path: path !== null && path !== void 0 ? path : exp.path,\n expected: exp.expected,\n value: exp.value,\n message: message(exp),\n }));\n throw exp;\n }\n };\n})(NestiaSimulator || (exports.NestiaSimulator = NestiaSimulator = {}));\nconst isTypeGuardError = (input) => \"string\" === typeof input.method &&\n (undefined === input.path || \"string\" === typeof input.path) &&\n \"string\" === typeof input.expected &&\n \"string\" === typeof input.name &&\n \"string\" === typeof input.message &&\n (undefined === input.stack || \"string\" === typeof input.stack);\n//# sourceMappingURL=NestiaSimulator.js.map"],"names":["NestiaSimulator_1","require$$0"],"mappings":";;;;AACA,MAAM,CAAC,cAAc,CAACA,iBAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,IAAA,iBAAA,GAAAA,iBAAA,CAAA,eAAuB,GAAG;AAC1B,MAAM,WAAW,GAAGC,SAAsB;AAC1C,IAAI,eAAe;AACnB,CAAC,UAAU,eAAe,EAAE;AAC5B,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,KAAK,KAAK;AACxC,QAAQ,OAAO;AACf,YAAY,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;AAC/B,YAAY,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;AAC/B,YAAY,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC;AAC7B,SAAS;AACT,IAAA,CAAK;AACL,IAAI,MAAM,KAAK,GAAG,CAAC,KAAK,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK;AACjD,QAAQ,QAAQ,CAAC,CAAC,GAAG,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;AAC9F,IAAA,CAAK;AACL,IAAI,MAAM,KAAK,GAAG,CAAC,KAAK,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,MAAM,+DAA+D,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;AACnI,IAAI,MAA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AAK,OAAO,KAAK,CAAC,IAAI;AAClC,IAAI,QAAQ,KAAK,OAAO,KAAK,CAAC,OAAO;AACrC,KAAK,SAAS,KAAK,KAAK,CAAC,KAAK,IAAI,QAAQ,KAAK,OAAO,KAAK,CAAC,KAAK,CAAC;;;;"}
@@ -1,63 +0,0 @@
1
- import { __exports as PlainFetcher$1 } from './_virtual/PlainFetcher.mjs';
2
- import './internal/FetcherBase2.mjs';
3
- import { __exports as FetcherBase } from './_virtual/FetcherBase.mjs';
4
-
5
- var __awaiter = (PlainFetcher$1 && PlainFetcher$1.__awaiter) || function (thisArg, _arguments, P, generator) {
6
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
7
- return new (P || (P = Promise))(function (resolve, reject) {
8
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
9
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
10
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
11
- step((generator = generator.apply(thisArg, _arguments || [])).next());
12
- });
13
- };
14
- Object.defineProperty(PlainFetcher$1, "__esModule", { value: true });
15
- var PlainFetcher_2 = PlainFetcher$1.PlainFetcher = void 0;
16
- const FetcherBase_1 = FetcherBase;
17
- /**
18
- * Utility class for `fetch` functions used in `@nestia/sdk`.
19
- *
20
- * `PlainFetcher` is a utility class designed for SDK functions generated by
21
- * [`@nestia/sdk`](https://nestia.io/docs/sdk/sdk), interacting with the remote
22
- * HTTP sever API. In other words, this is a collection of dedicated `fetch()`
23
- * functions for `@nestia/sdk`.
24
- *
25
- * For reference, `PlainFetcher` class does not encrypt or decrypt the body data
26
- * at all. It just delivers plain data without any post processing. If you've
27
- * defined a controller method through `@EncryptedRoute` or `@EncryptedBody`
28
- * decorator, then {@liink EncryptedFetcher} class would be used instead.
29
- *
30
- * @author Jeongho Nam - https://github.com/samchon
31
- */
32
- var PlainFetcher;
33
- (function (PlainFetcher) {
34
- function fetch(connection, route, input, stringify) {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- var _a, _b;
37
- if (((_a = route.request) === null || _a === void 0 ? void 0 : _a.encrypted) === true || ((_b = route.response) === null || _b === void 0 ? void 0 : _b.encrypted) === true)
38
- throw new Error("Error on PlainFetcher.fetch(): PlainFetcher doesn't have encryption ability. Use EncryptedFetcher instead.");
39
- return FetcherBase_1.FetcherBase.request({
40
- className: "PlainFetcher",
41
- encode: (input) => input,
42
- decode: (input) => input,
43
- })(connection, route, input, stringify);
44
- });
45
- }
46
- PlainFetcher.fetch = fetch;
47
- function propagate(connection, route, input, stringify) {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- var _a, _b;
50
- if (((_a = route.request) === null || _a === void 0 ? void 0 : _a.encrypted) === true || ((_b = route.response) === null || _b === void 0 ? void 0 : _b.encrypted) === true)
51
- throw new Error("Error on PlainFetcher.propagate(): PlainFetcher doesn't have encryption ability. Use EncryptedFetcher instead.");
52
- return FetcherBase_1.FetcherBase.propagate({
53
- className: "PlainFetcher",
54
- encode: (input) => input,
55
- decode: (input) => input,
56
- })(connection, route, input, stringify);
57
- });
58
- }
59
- PlainFetcher.propagate = propagate;
60
- })(PlainFetcher || (PlainFetcher_2 = PlainFetcher$1.PlainFetcher = PlainFetcher = {}));
61
-
62
- export { PlainFetcher_2 as PlainFetcher, PlainFetcher$1 as default };
63
- //# sourceMappingURL=PlainFetcher2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PlainFetcher2.mjs","sources":["PlainFetcher.js"],"sourcesContent":["\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PlainFetcher = void 0;\nconst FetcherBase_1 = require(\"./internal/FetcherBase\");\n/**\n * Utility class for `fetch` functions used in `@nestia/sdk`.\n *\n * `PlainFetcher` is a utility class designed for SDK functions generated by\n * [`@nestia/sdk`](https://nestia.io/docs/sdk/sdk), interacting with the remote\n * HTTP sever API. In other words, this is a collection of dedicated `fetch()`\n * functions for `@nestia/sdk`.\n *\n * For reference, `PlainFetcher` class does not encrypt or decrypt the body data\n * at all. It just delivers plain data without any post processing. If you've\n * defined a controller method through `@EncryptedRoute` or `@EncryptedBody`\n * decorator, then {@liink EncryptedFetcher} class would be used instead.\n *\n * @author Jeongho Nam - https://github.com/samchon\n */\nvar PlainFetcher;\n(function (PlainFetcher) {\n function fetch(connection, route, input, stringify) {\n return __awaiter(this, void 0, void 0, function* () {\n var _a, _b;\n if (((_a = route.request) === null || _a === void 0 ? void 0 : _a.encrypted) === true || ((_b = route.response) === null || _b === void 0 ? void 0 : _b.encrypted) === true)\n throw new Error(\"Error on PlainFetcher.fetch(): PlainFetcher doesn't have encryption ability. Use EncryptedFetcher instead.\");\n return FetcherBase_1.FetcherBase.request({\n className: \"PlainFetcher\",\n encode: (input) => input,\n decode: (input) => input,\n })(connection, route, input, stringify);\n });\n }\n PlainFetcher.fetch = fetch;\n function propagate(connection, route, input, stringify) {\n return __awaiter(this, void 0, void 0, function* () {\n var _a, _b;\n if (((_a = route.request) === null || _a === void 0 ? void 0 : _a.encrypted) === true || ((_b = route.response) === null || _b === void 0 ? void 0 : _b.encrypted) === true)\n throw new Error(\"Error on PlainFetcher.propagate(): PlainFetcher doesn't have encryption ability. Use EncryptedFetcher instead.\");\n return FetcherBase_1.FetcherBase.propagate({\n className: \"PlainFetcher\",\n encode: (input) => input,\n decode: (input) => input,\n })(connection, route, input, stringify);\n });\n }\n PlainFetcher.propagate = propagate;\n})(PlainFetcher || (exports.PlainFetc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S,SAAS,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE;AAC5D,QAAQ,OAAO,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa;AAC5D,YAAY,IAAI,EAAE,EAAE,EAAE;AACtB,YAAY,IAAI,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,OAAO,MAAM,IAAI,IAAI,EAAE,KAAK,MAAM,GAAG,MAAM,GAAG,EAAE,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,QAAQ,MAAM,IAAI,IAAI,EAAE,KAAK,MAAM,GAAG,MAAM,GAAG,EAAE,CAAC,SAAS,MAAM,IAAI;AACvL,gBAAgB,MAAM,IAAI,KAAK,CAAC,gHAAgH,CAAC;AACjJ,YAAY,OAAO,aAAa,CAAC,WAAW,CAAC,SAAS,CAAC;AACvD,gBAAgB,SAAS,EAAE,cAAc;AACzC,gBAAgB,MAAM,EAAE,CAAC,KAAK,KAAK,KAAK;AACxC,gBAAgB,MAAM,EAAE,CAAC,KAAK,KAAK,KAAK;AACxC,aAAa,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC;AACnD,QAAA,CAAS,CAAC;AACV,IAAA;AACA,IAAI,YAAY,CAAC,SAAS,GAAG,SAAS;AACtC,CAAC,EAAE,YAAY,KAAK,cAAA,GAAAD,cAAA,CAAA,YAAoB,GAAG,YAAY,GAAG,EAAE,CAAC,CAAC;;;;"}
@@ -1,4 +0,0 @@
1
- var AesPkcs5 = {};
2
-
3
- export { AesPkcs5 as __exports };
4
- //# sourceMappingURL=AesPkcs5.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AesPkcs5.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var EncryptedFetcher = {};
2
-
3
- export { EncryptedFetcher as __exports };
4
- //# sourceMappingURL=EncryptedFetcher.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EncryptedFetcher.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var FetcherBase = {};
2
-
3
- export { FetcherBase as __exports };
4
- //# sourceMappingURL=FetcherBase.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FetcherBase.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var FormDataInput = {};
2
-
3
- export { FormDataInput as __exports };
4
- //# sourceMappingURL=FormDataInput.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormDataInput.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var HttpError = {};
2
-
3
- export { HttpError as __exports };
4
- //# sourceMappingURL=HttpError.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HttpError.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var IConnection = {};
2
-
3
- export { IConnection as __exports };
4
- //# sourceMappingURL=IConnection.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IConnection.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var IEncryptionPassword = {};
2
-
3
- export { IEncryptionPassword as __exports };
4
- //# sourceMappingURL=IEncryptionPassword.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IEncryptionPassword.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var IFetchEvent = {};
2
-
3
- export { IFetchEvent as __exports };
4
- //# sourceMappingURL=IFetchEvent.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IFetchEvent.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var IFetchRoute = {};
2
-
3
- export { IFetchRoute as __exports };
4
- //# sourceMappingURL=IFetchRoute.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IFetchRoute.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var IPropagation = {};
2
-
3
- export { IPropagation as __exports };
4
- //# sourceMappingURL=IPropagation.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IPropagation.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var NestiaSimulator = {};
2
-
3
- export { NestiaSimulator as __exports };
4
- //# sourceMappingURL=NestiaSimulator.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NestiaSimulator.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var PlainFetcher = {};
2
-
3
- export { PlainFetcher as __exports };
4
- //# sourceMappingURL=PlainFetcher.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PlainFetcher.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,35 +0,0 @@
1
- function getDefaultExportFromCjs (x) {
2
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3
- }
4
-
5
- function getAugmentedNamespace(n) {
6
- if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
7
- var f = n.default;
8
- if (typeof f == "function") {
9
- var a = function a () {
10
- var isInstance = false;
11
- try {
12
- isInstance = this instanceof a;
13
- } catch {}
14
- if (isInstance) {
15
- return Reflect.construct(f, arguments, this.constructor);
16
- }
17
- return f.apply(this, arguments);
18
- };
19
- a.prototype = f.prototype;
20
- } else a = {};
21
- Object.defineProperty(a, '__esModule', {value: true});
22
- Object.keys(n).forEach(function (k) {
23
- var d = Object.getOwnPropertyDescriptor(n, k);
24
- Object.defineProperty(a, k, d.get ? d : {
25
- enumerable: true,
26
- get: function () {
27
- return n[k];
28
- }
29
- });
30
- });
31
- return a;
32
- }
33
-
34
- export { getAugmentedNamespace, getDefaultExportFromCjs };
35
- //# sourceMappingURL=_commonjsHelpers.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_commonjsHelpers.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +0,0 @@
1
- import * as node_crypto from 'node:crypto';
2
- import { getAugmentedNamespace } from './_commonjsHelpers.mjs';
3
-
4
- var require$$0 = /*@__PURE__*/getAugmentedNamespace(node_crypto);
5
-
6
- export { require$$0 as default };
7
- //# sourceMappingURL=_node_crypto.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_node_crypto.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1,4 +0,0 @@
1
- var lib = {};
2
-
3
- export { lib as __exports };
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var is_binary_response_content_type = {};
2
-
3
- export { is_binary_response_content_type as __exports };
4
- //# sourceMappingURL=is_binary_response_content_type.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is_binary_response_content_type.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,7 +0,0 @@
1
- import * as utils from '@typia/utils';
2
- import { getAugmentedNamespace } from './_commonjsHelpers.mjs';
3
-
4
- var require$$0 = /*@__PURE__*/getAugmentedNamespace(utils);
5
-
6
- export { require$$0 as default };
7
- //# sourceMappingURL=utils.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
package/lib/index.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}