@skmtc/core 0.0.440 → 0.0.442

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.
@@ -60,7 +60,7 @@ export class ParseContext {
60
60
  registerExtension(extensionFields) {
61
61
  const { stackTrail } = __classPrivateFieldGet(this, _ParseContext_stackTrail, "f").slice(1);
62
62
  if (!extensionFields) {
63
- setValue({ extensions: this.extentions, stackTrail, value: 'NO_VALUE' });
63
+ setValue({ extensions: this.extentions, stackTrail, value: {} });
64
64
  return;
65
65
  }
66
66
  Object.entries(extensionFields).forEach(([key, value]) => {
@@ -0,0 +1,7 @@
1
+ import "../_dnt.polyfills.js";
2
+ import { z } from 'zod';
3
+ export type Extensions = {
4
+ [k: string]: string | Extensions;
5
+ };
6
+ export declare const extensions: z.ZodType<Extensions>;
7
+ //# sourceMappingURL=Extensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Extensions.d.ts","sourceRoot":"","sources":["../../src/types/Extensions.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAA;CAAE,CAAA;AAE7D,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAE5C,CAAA"}
@@ -0,0 +1,3 @@
1
+ import "../_dnt.polyfills.js";
2
+ import { z } from 'zod';
3
+ export const extensions = z.record(z.union([z.string(), z.lazy(() => extensions)]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.440",
3
+ "version": "0.0.442",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -20,6 +20,10 @@
20
20
  "import": "./esm/types/Manifest.js",
21
21
  "require": "./script/types/Manifest.js"
22
22
  },
23
+ "./Extensions": {
24
+ "import": "./esm/types/Extensions.js",
25
+ "require": "./script/types/Extensions.js"
26
+ },
23
27
  "./Method": {
24
28
  "import": "./esm/types/Method.js",
25
29
  "require": "./script/types/Method.js"
@@ -86,7 +86,7 @@ class ParseContext {
86
86
  registerExtension(extensionFields) {
87
87
  const { stackTrail } = __classPrivateFieldGet(this, _ParseContext_stackTrail, "f").slice(1);
88
88
  if (!extensionFields) {
89
- (0, exports.setValue)({ extensions: this.extentions, stackTrail, value: 'NO_VALUE' });
89
+ (0, exports.setValue)({ extensions: this.extentions, stackTrail, value: {} });
90
90
  return;
91
91
  }
92
92
  Object.entries(extensionFields).forEach(([key, value]) => {
@@ -0,0 +1,7 @@
1
+ import "../_dnt.polyfills.js";
2
+ import { z } from 'zod';
3
+ export type Extensions = {
4
+ [k: string]: string | Extensions;
5
+ };
6
+ export declare const extensions: z.ZodType<Extensions>;
7
+ //# sourceMappingURL=Extensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Extensions.d.ts","sourceRoot":"","sources":["../../src/types/Extensions.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAA;CAAE,CAAA;AAE7D,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAE5C,CAAA"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.extensions = void 0;
4
+ require("../_dnt.polyfills.js");
5
+ const zod_1 = require("zod");
6
+ exports.extensions = zod_1.z.record(zod_1.z.union([zod_1.z.string(), zod_1.z.lazy(() => exports.extensions)]));