@skmtc/core 0.0.368 → 0.0.370

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 (83) hide show
  1. package/esm/context/GenerateContext.d.ts +79 -4
  2. package/esm/context/GenerateContext.d.ts.map +1 -1
  3. package/esm/context/GenerateContext.js +113 -33
  4. package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/types.d.ts +56 -5
  5. package/esm/deps/jsr.io/@std/io/0.224.8/types.d.ts.map +1 -0
  6. package/esm/deps/jsr.io/@std/io/0.224.8/types.js +15 -0
  7. package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.d.ts.map +1 -1
  8. package/esm/deps/jsr.io/@std/log/0.224.7/file_handler.js +1 -1
  9. package/esm/oas/array/Array.d.ts +32 -8
  10. package/esm/oas/array/Array.d.ts.map +1 -1
  11. package/esm/oas/array/Array.js +60 -30
  12. package/esm/oas/boolean/Boolean.d.ts +24 -6
  13. package/esm/oas/boolean/Boolean.d.ts.map +1 -1
  14. package/esm/oas/boolean/Boolean.js +40 -24
  15. package/esm/oas/integer/Integer.d.ts +29 -8
  16. package/esm/oas/integer/Integer.d.ts.map +1 -1
  17. package/esm/oas/integer/Integer.js +57 -30
  18. package/esm/oas/number/Number.d.ts +24 -6
  19. package/esm/oas/number/Number.d.ts.map +1 -1
  20. package/esm/oas/number/Number.js +40 -24
  21. package/esm/oas/object/Object.d.ts +56 -12
  22. package/esm/oas/object/Object.d.ts.map +1 -1
  23. package/esm/oas/object/Object.js +52 -5
  24. package/esm/oas/string/String.d.ts +32 -8
  25. package/esm/oas/string/String.d.ts.map +1 -1
  26. package/esm/oas/string/String.js +63 -33
  27. package/esm/oas/union/Union.d.ts +38 -8
  28. package/esm/oas/union/Union.d.ts.map +1 -1
  29. package/esm/oas/union/Union.js +66 -30
  30. package/esm/oas/unknown/Unknown.d.ts +24 -5
  31. package/esm/oas/unknown/Unknown.d.ts.map +1 -1
  32. package/esm/oas/unknown/Unknown.js +34 -21
  33. package/esm/oas/void/Void.d.ts +22 -5
  34. package/esm/oas/void/Void.d.ts.map +1 -1
  35. package/esm/oas/void/Void.js +32 -21
  36. package/esm/server/createServer.d.ts.map +1 -1
  37. package/esm/server/createServer.js +9 -6
  38. package/package.json +1 -1
  39. package/script/context/GenerateContext.d.ts +79 -4
  40. package/script/context/GenerateContext.d.ts.map +1 -1
  41. package/script/context/GenerateContext.js +113 -33
  42. package/script/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/types.d.ts +56 -5
  43. package/script/deps/jsr.io/@std/io/0.224.8/types.d.ts.map +1 -0
  44. package/script/deps/jsr.io/@std/io/0.224.8/types.js +18 -0
  45. package/script/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.d.ts.map +1 -1
  46. package/script/deps/jsr.io/@std/log/0.224.7/file_handler.js +1 -1
  47. package/script/oas/array/Array.d.ts +32 -8
  48. package/script/oas/array/Array.d.ts.map +1 -1
  49. package/script/oas/array/Array.js +60 -30
  50. package/script/oas/boolean/Boolean.d.ts +24 -6
  51. package/script/oas/boolean/Boolean.d.ts.map +1 -1
  52. package/script/oas/boolean/Boolean.js +40 -24
  53. package/script/oas/integer/Integer.d.ts +29 -8
  54. package/script/oas/integer/Integer.d.ts.map +1 -1
  55. package/script/oas/integer/Integer.js +57 -30
  56. package/script/oas/number/Number.d.ts +24 -6
  57. package/script/oas/number/Number.d.ts.map +1 -1
  58. package/script/oas/number/Number.js +40 -24
  59. package/script/oas/object/Object.d.ts +56 -12
  60. package/script/oas/object/Object.d.ts.map +1 -1
  61. package/script/oas/object/Object.js +52 -5
  62. package/script/oas/string/String.d.ts +32 -8
  63. package/script/oas/string/String.d.ts.map +1 -1
  64. package/script/oas/string/String.js +63 -33
  65. package/script/oas/union/Union.d.ts +38 -8
  66. package/script/oas/union/Union.d.ts.map +1 -1
  67. package/script/oas/union/Union.js +66 -30
  68. package/script/oas/unknown/Unknown.d.ts +24 -5
  69. package/script/oas/unknown/Unknown.d.ts.map +1 -1
  70. package/script/oas/unknown/Unknown.js +34 -21
  71. package/script/oas/void/Void.d.ts +22 -5
  72. package/script/oas/void/Void.d.ts.map +1 -1
  73. package/script/oas/void/Void.js +32 -21
  74. package/script/server/createServer.d.ts.map +1 -1
  75. package/script/server/createServer.js +9 -6
  76. package/esm/deps/jsr.io/@std/io/0.224.7/types.d.ts.map +0 -1
  77. package/esm/deps/jsr.io/@std/io/0.224.7/types.js +0 -3
  78. package/script/deps/jsr.io/@std/io/0.224.7/types.d.ts.map +0 -1
  79. package/script/deps/jsr.io/@std/io/0.224.7/types.js +0 -4
  80. /package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.d.ts +0 -0
  81. /package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.js +0 -0
  82. /package/script/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.d.ts +0 -0
  83. /package/script/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.js +0 -0
@@ -1,40 +1,54 @@
1
1
  "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _OasUnknown_fields;
14
2
  Object.defineProperty(exports, "__esModule", { value: true });
15
3
  exports.OasUnknown = void 0;
4
+ /**
5
+ * Object representing an unknown type in the OpenAPI Specification.
6
+ *
7
+ * JSON schema treats a definition without any type information as 'any'.
8
+ * Since this is not useful in an API context, we use OasUnknown to
9
+ * represent types that are not specified.
10
+ */
16
11
  class OasUnknown {
17
12
  constructor(fields) {
13
+ /**
14
+ * Object is part the 'schema' set which is used
15
+ * to define data types in an OpenAPI document.
16
+ */
18
17
  Object.defineProperty(this, "oasType", {
19
18
  enumerable: true,
20
19
  configurable: true,
21
20
  writable: true,
22
21
  value: 'schema'
23
22
  });
23
+ /**
24
+ * Constant value 'unknown' useful for type narrowing and tagged unions.
25
+ */
24
26
  Object.defineProperty(this, "type", {
25
27
  enumerable: true,
26
28
  configurable: true,
27
29
  writable: true,
28
30
  value: 'unknown'
29
31
  });
30
- _OasUnknown_fields.set(this, void 0);
31
- __classPrivateFieldSet(this, _OasUnknown_fields, fields, "f");
32
- }
33
- get title() {
34
- return __classPrivateFieldGet(this, _OasUnknown_fields, "f").title;
35
- }
36
- get description() {
37
- return __classPrivateFieldGet(this, _OasUnknown_fields, "f").description;
32
+ /**
33
+ * A short summary of the unknown type.
34
+ */
35
+ Object.defineProperty(this, "title", {
36
+ enumerable: true,
37
+ configurable: true,
38
+ writable: true,
39
+ value: void 0
40
+ });
41
+ /**
42
+ * A description of the unknown type.
43
+ */
44
+ Object.defineProperty(this, "description", {
45
+ enumerable: true,
46
+ configurable: true,
47
+ writable: true,
48
+ value: void 0
49
+ });
50
+ this.title = fields.title;
51
+ this.description = fields.description;
38
52
  }
39
53
  isRef() {
40
54
  return false;
@@ -47,4 +61,3 @@ class OasUnknown {
47
61
  }
48
62
  }
49
63
  exports.OasUnknown = OasUnknown;
50
- _OasUnknown_fields = new WeakMap();
@@ -3,14 +3,31 @@ export type VoidFields = {
3
3
  title?: string;
4
4
  description?: string;
5
5
  };
6
+ /**
7
+ * Object representing a void type in the OpenAPI Specification.
8
+ * It is used to describe an absence of a value such as when no
9
+ * content is returned by an operation.
10
+ */
6
11
  export declare class OasVoid {
7
- #private;
8
- oasType: 'schema';
9
- type: 'void';
12
+ /**
13
+ * Object is part the 'schema' set which is used
14
+ * to define data types in an OpenAPI document.
15
+ */
16
+ oasType: "schema";
17
+ /**
18
+ * Constant value 'void' useful for type narrowing and tagged unions.
19
+ */
20
+ type: "void";
21
+ /**
22
+ * A short summary of the value.
23
+ */
24
+ title: string | undefined;
25
+ /**
26
+ * A description of the value.
27
+ */
28
+ description: string | undefined;
10
29
  constructor(fields?: VoidFields);
11
30
  static empty(): OasVoid;
12
- get title(): string | undefined;
13
- get description(): string | undefined;
14
31
  isRef(): this is OasRef<'schema'>;
15
32
  resolve(): OasVoid;
16
33
  resolveOnce(): OasVoid;
@@ -1 +1 @@
1
- {"version":3,"file":"Void.d.ts","sourceRoot":"","sources":["../../../src/oas/void/Void.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,qBAAa,OAAO;;IAClB,OAAO,EAAE,QAAQ,CAAW;IAC5B,IAAI,EAAE,MAAM,CAAS;gBAGT,MAAM,GAAE,UAAe;IAInC,MAAM,CAAC,KAAK,IAAI,OAAO;IAIvB,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,OAAO;IAIlB,WAAW,IAAI,OAAO;CAGvB"}
1
+ {"version":3,"file":"Void.d.ts","sourceRoot":"","sources":["../../../src/oas/void/Void.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED;;;;GAIG;AACH,qBAAa,OAAO;IAClB;;;OAGG;IACH,OAAO,WAAoB;IAC3B;;OAEG;IACH,IAAI,SAAkB;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;gBAEnB,MAAM,GAAE,UAAe;IAKnC,MAAM,CAAC,KAAK,IAAI,OAAO;IAIvB,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,OAAO;IAIlB,WAAW,IAAI,OAAO;CAGvB"}
@@ -1,44 +1,56 @@
1
1
  "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _OasVoid_fields;
14
2
  Object.defineProperty(exports, "__esModule", { value: true });
15
3
  exports.OasVoid = void 0;
4
+ /**
5
+ * Object representing a void type in the OpenAPI Specification.
6
+ * It is used to describe an absence of a value such as when no
7
+ * content is returned by an operation.
8
+ */
16
9
  class OasVoid {
17
10
  constructor(fields = {}) {
11
+ /**
12
+ * Object is part the 'schema' set which is used
13
+ * to define data types in an OpenAPI document.
14
+ */
18
15
  Object.defineProperty(this, "oasType", {
19
16
  enumerable: true,
20
17
  configurable: true,
21
18
  writable: true,
22
19
  value: 'schema'
23
20
  });
21
+ /**
22
+ * Constant value 'void' useful for type narrowing and tagged unions.
23
+ */
24
24
  Object.defineProperty(this, "type", {
25
25
  enumerable: true,
26
26
  configurable: true,
27
27
  writable: true,
28
28
  value: 'void'
29
29
  });
30
- _OasVoid_fields.set(this, void 0);
31
- __classPrivateFieldSet(this, _OasVoid_fields, fields, "f");
30
+ /**
31
+ * A short summary of the value.
32
+ */
33
+ Object.defineProperty(this, "title", {
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true,
37
+ value: void 0
38
+ });
39
+ /**
40
+ * A description of the value.
41
+ */
42
+ Object.defineProperty(this, "description", {
43
+ enumerable: true,
44
+ configurable: true,
45
+ writable: true,
46
+ value: void 0
47
+ });
48
+ this.title = fields.title;
49
+ this.description = fields.description;
32
50
  }
33
51
  static empty() {
34
52
  return new OasVoid();
35
53
  }
36
- get title() {
37
- return __classPrivateFieldGet(this, _OasVoid_fields, "f").title;
38
- }
39
- get description() {
40
- return __classPrivateFieldGet(this, _OasVoid_fields, "f").description;
41
- }
42
54
  isRef() {
43
55
  return false;
44
56
  }
@@ -50,4 +62,3 @@ class OasVoid {
50
62
  }
51
63
  }
52
64
  exports.OasVoid = OasVoid;
53
- _OasVoid_fields = new WeakMap();
@@ -1 +1 @@
1
- {"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../../src/server/createServer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAK3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAiBnE,eAAO,MAAM,YAAY,eACX,CAAC,gBAAgB,GAAG,YAAY,CAAC,EAAE,KAC9C,IAuGF,CAAA"}
1
+ {"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../../src/server/createServer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAK3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAkBnE,eAAO,MAAM,YAAY,eACX,CAAC,gBAAgB,GAAG,YAAY,CAAC,EAAE,KAC9C,IA0GF,CAAA"}
@@ -32,6 +32,7 @@ const Settings_js_1 = require("../types/Settings.js");
32
32
  const transform_js_1 = require("../transform/transform.js");
33
33
  const CoreContext_js_1 = require("../context/CoreContext.js");
34
34
  const postSettingsBody = zod_1.z.object({
35
+ defaultSelected: zod_1.z.boolean().optional(),
35
36
  schema: zod_1.z.string(),
36
37
  clientSettings: Settings_js_1.clientSettings.optional()
37
38
  });
@@ -70,13 +71,13 @@ const createServer = (generators) => {
70
71
  app.post('/settings', async (c) => {
71
72
  return await Sentry.startSpan({ name: 'POST /settings' }, async (span) => {
72
73
  const body = await c.req.json();
73
- const { clientSettings } = postSettingsBody.parse(body);
74
+ const { clientSettings, defaultSelected = false } = postSettingsBody.parse(body);
74
75
  const oasDocument = toOasDocument({
75
76
  schema: body.schema,
76
77
  spanId: span.spanContext().spanId
77
78
  });
78
79
  const out = generators.map(generator => {
79
- const generatorSettings = clientSettings?.generators?.find(({ id }) => id === generator.id);
80
+ const generatorSettings = clientSettings?.generators.find(({ id }) => id === generator.id);
80
81
  const generatorType = generator.type;
81
82
  return (0, ts_pattern_1.match)(generatorType)
82
83
  .with('operation', () => ({
@@ -85,6 +86,7 @@ const createServer = (generators) => {
85
86
  operations: toOperations({
86
87
  generator: generator,
87
88
  oasDocument,
89
+ defaultSelected,
88
90
  operationsSettings: generatorSettings && 'operations' in generatorSettings
89
91
  ? generatorSettings.operations
90
92
  : undefined
@@ -95,6 +97,7 @@ const createServer = (generators) => {
95
97
  id: generator.id,
96
98
  models: toModels({
97
99
  oasDocument,
100
+ defaultSelected,
98
101
  modelsSettings: generatorSettings && 'models' in generatorSettings
99
102
  ? generatorSettings.models
100
103
  : undefined
@@ -110,15 +113,15 @@ const createServer = (generators) => {
110
113
  return app;
111
114
  };
112
115
  exports.createServer = createServer;
113
- const toModels = ({ oasDocument, modelsSettings }) => {
116
+ const toModels = ({ defaultSelected, oasDocument, modelsSettings }) => {
114
117
  return Object.fromEntries(Object.keys(oasDocument.components?.schemas ?? {}).map(refName => [
115
118
  refName,
116
119
  modelsSettings?.[refName]
117
120
  ? modelsSettings?.[refName]
118
- : { selected: false }
121
+ : { selected: defaultSelected }
119
122
  ]));
120
123
  };
121
- const toOperations = ({ generator, oasDocument, operationsSettings }) => {
124
+ const toOperations = ({ generator, oasDocument, operationsSettings, defaultSelected }) => {
122
125
  return Object.values(oasDocument.operations)
123
126
  .filter(operation => generator.isSupported(operation))
124
127
  .reduce((acc, operation) => {
@@ -126,7 +129,7 @@ const toOperations = ({ generator, oasDocument, operationsSettings }) => {
126
129
  acc[path] = acc[path] ?? {};
127
130
  acc[path][method] = operationsSettings?.[path]?.[method]
128
131
  ? operationsSettings?.[path]?.[method]
129
- : { selected: false };
132
+ : { selected: defaultSelected };
130
133
  return acc;
131
134
  }, {});
132
135
  };
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/io/0.224.7/types.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,IAAI,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;;;;;;;OAQG;IACH,KAAK,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACvC;AACD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;;OAQG;IACH,SAAS,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,gEAAgE;IAChE,KAAK,IAAI,IAAI,CAAC;CACf"}
@@ -1,3 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/io/0.224.7/types.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,IAAI,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;;;;;;;OAQG;IACH,KAAK,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACvC;AACD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;;OAQG;IACH,SAAS,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,gEAAgE;IAChE,KAAK,IAAI,IAAI,CAAC;CACf"}
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
- // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });