@stryke/json 0.11.0 → 0.12.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.
- package/CHANGELOG.md +12 -0
- package/dist/canonical-3PQxSh5G.d.cts +17 -0
- package/dist/canonical-3PQxSh5G.d.cts.map +1 -0
- package/dist/canonical-CVbmCnGM.mjs +28 -0
- package/dist/canonical-CVbmCnGM.mjs.map +1 -0
- package/dist/canonical-DZDrZ9dv.d.mts +17 -0
- package/dist/canonical-DZDrZ9dv.d.mts.map +1 -0
- package/dist/canonical-hMXtzPIV.cjs +33 -0
- package/dist/canonical.cjs +3 -0
- package/dist/canonical.d.cts +2 -0
- package/dist/canonical.d.mts +2 -0
- package/dist/canonical.mjs +3 -0
- package/dist/{code-frames-BUtrssZ5.d.cts → code-frames-BOS_tt9F.d.mts} +1 -1
- package/dist/{code-frames-CrTAYYSE.d.mts.map → code-frames-BOS_tt9F.d.mts.map} +1 -1
- package/dist/{code-frames-DuBfTMu4.mjs → code-frames-C8DEdLmV.mjs} +1 -1
- package/dist/{code-frames-DuBfTMu4.mjs.map → code-frames-C8DEdLmV.mjs.map} +1 -1
- package/dist/{code-frames-CrTAYYSE.d.mts → code-frames-ClyQ9O1l.d.cts} +1 -1
- package/dist/{code-frames-BUtrssZ5.d.cts.map → code-frames-ClyQ9O1l.d.cts.map} +1 -1
- package/dist/{find-reference-B8xshNXL.d.mts → find-reference-BuuNqqOh.d.cts} +1 -1
- package/dist/{find-reference-B8xshNXL.d.mts.map → find-reference-BuuNqqOh.d.cts.map} +1 -1
- package/dist/{find-reference-De5vBQV2.cjs → find-reference-Ct8UDBo2.cjs} +2 -2
- package/dist/{find-reference-C-YleCds.d.cts → find-reference-MHRH7HJ_.d.mts} +1 -1
- package/dist/{find-reference-C-YleCds.d.cts.map → find-reference-MHRH7HJ_.d.mts.map} +1 -1
- package/dist/{find-reference-DMSYEaaI.mjs → find-reference-kPgdulJ1.mjs} +3 -3
- package/dist/{find-reference-DMSYEaaI.mjs.map → find-reference-kPgdulJ1.mjs.map} +1 -1
- package/dist/index.cjs +16 -11
- package/dist/index.d.cts +12 -11
- package/dist/index.d.mts +13 -12
- package/dist/index.mjs +13 -12
- package/dist/{is-number-BIwzZzyi.mjs → is-number-BMxmACAS.mjs} +1 -1
- package/dist/{is-number-BIwzZzyi.mjs.map → is-number-BMxmACAS.mjs.map} +1 -1
- package/dist/{is-object-BpfmzHWa.mjs → is-object-BYxzKTYU.mjs} +2 -2
- package/dist/{is-object-BpfmzHWa.mjs.map → is-object-BYxzKTYU.mjs.map} +1 -1
- package/dist/{is-object-umGh91v1.cjs → is-object-BbRMEXAo.cjs} +1 -1
- package/dist/{is-set-object-BmHip9em.cjs → is-set-object-5lZPw_Pq.cjs} +3 -3
- package/dist/{is-set-object-C1Qnj1Q8.mjs → is-set-object-yxjp5vg-.mjs} +4 -4
- package/dist/{is-set-object-C1Qnj1Q8.mjs.map → is-set-object-yxjp5vg-.mjs.map} +1 -1
- package/dist/{is-string-CLiBUSKV.mjs → is-string--ny35huw.mjs} +1 -1
- package/dist/{is-string-CLiBUSKV.mjs.map → is-string--ny35huw.mjs.map} +1 -1
- package/dist/{is-undefined-CmyJWYGD.mjs → is-undefined-CqNzBssC.mjs} +1 -1
- package/dist/{is-undefined-CmyJWYGD.mjs.map → is-undefined-CqNzBssC.mjs.map} +1 -1
- package/dist/{parse-vw_qRD3F.mjs → parse-B3NfTO06.mjs} +3 -3
- package/dist/{parse-vw_qRD3F.mjs.map → parse-B3NfTO06.mjs.map} +1 -1
- package/dist/{parse-Bp6kkcQ4.cjs → parse-BSmqrTy_.cjs} +2 -2
- package/dist/{parse-Dn43ZK9y.mjs → parse-BrChHTWb.mjs} +2 -2
- package/dist/{parse-Dn43ZK9y.mjs.map → parse-BrChHTWb.mjs.map} +1 -1
- package/dist/{parse-ByDxRup5.cjs → parse-CX9jPskm.cjs} +1 -1
- package/dist/{parse-DZfi3d96.d.cts → parse-DCHSu_0u.d.cts} +1 -1
- package/dist/{parse-Cj-YfhrI.d.mts.map → parse-DCHSu_0u.d.cts.map} +1 -1
- package/dist/{parse-Cj-YfhrI.d.mts → parse-DaiwKCLz.d.mts} +1 -1
- package/dist/{parse-DZfi3d96.d.cts.map → parse-DaiwKCLz.d.mts.map} +1 -1
- package/dist/{parse-BGlhbY16.d.cts → parse-XXQfTfNE.d.mts} +1 -1
- package/dist/{parse-BGlhbY16.d.cts.map → parse-XXQfTfNE.d.mts.map} +1 -1
- package/dist/{parse-error-DpEv3vo_.d.mts → parse-error-CDt01Gvc.d.mts} +1 -1
- package/dist/parse-error-CDt01Gvc.d.mts.map +1 -0
- package/dist/{parse-error-7K8s4vWf.d.cts → parse-error-CGKcBkMJ.d.cts} +1 -1
- package/dist/parse-error-CGKcBkMJ.d.cts.map +1 -0
- package/dist/{parse-error-N7UE-HMh.cjs → parse-error-CUOf-YBA.cjs} +2 -2
- package/dist/{parse-error-Af4zHUQ_.mjs → parse-error-Cu6mjBS7.mjs} +2 -2
- package/dist/{parse-error-Af4zHUQ_.mjs.map → parse-error-Cu6mjBS7.mjs.map} +1 -1
- package/dist/{parse-fXy5pbmE.d.mts → parse-ygKFNauQ.d.cts} +1 -1
- package/dist/{parse-fXy5pbmE.d.mts.map → parse-ygKFNauQ.d.cts.map} +1 -1
- package/dist/pointer/find-reference.cjs +1 -1
- package/dist/pointer/find-reference.d.cts +1 -1
- package/dist/pointer/find-reference.d.mts +1 -1
- package/dist/pointer/find-reference.mjs +1 -1
- package/dist/pointer/index.cjs +3 -3
- package/dist/pointer/index.d.cts +2 -2
- package/dist/pointer/index.d.mts +2 -2
- package/dist/pointer/index.mjs +3 -3
- package/dist/pointer/parse.cjs +1 -1
- package/dist/pointer/parse.d.cts +1 -1
- package/dist/pointer/parse.d.mts +1 -1
- package/dist/pointer/parse.mjs +1 -1
- package/dist/{schema-BO1HCrxv.d.cts → schema-B7wpjw3I.d.mts} +26 -5
- package/dist/schema-B7wpjw3I.d.mts.map +1 -0
- package/dist/{schema-Dl018Aq4.cjs → schema-BM7g4xZ3.cjs} +46 -1
- package/dist/{schema-CmH1V_uI.d.mts → schema-BgOm_N0w.d.cts} +26 -5
- package/dist/schema-BgOm_N0w.d.cts.map +1 -0
- package/dist/{schema-DGmzxHja.mjs → schema-SrJmxZsC.mjs} +30 -3
- package/dist/schema-SrJmxZsC.mjs.map +1 -0
- package/dist/schema.cjs +4 -1
- package/dist/schema.d.cts +2 -2
- package/dist/schema.d.mts +3 -3
- package/dist/schema.mjs +2 -2
- package/dist/{storm-json-BD6WFbrI.cjs → storm-json-BDPXNC_u.cjs} +5 -5
- package/dist/{storm-json-nkhJgTz4.mjs → storm-json-BmO91crX.mjs} +6 -6
- package/dist/{storm-json-nkhJgTz4.mjs.map → storm-json-BmO91crX.mjs.map} +1 -1
- package/dist/{storm-json-8F9CKpXu.d.mts → storm-json-DJwb3Ou-.d.mts} +2 -2
- package/dist/{storm-json-8F9CKpXu.d.mts.map → storm-json-DJwb3Ou-.d.mts.map} +1 -1
- package/dist/{storm-json-DvIEWMEH.d.cts → storm-json-DiBg5b6r.d.cts} +2 -2
- package/dist/{storm-json-DvIEWMEH.d.cts.map → storm-json-DiBg5b6r.d.cts.map} +1 -1
- package/dist/storm-json.cjs +2 -2
- package/dist/storm-json.d.cts +1 -1
- package/dist/storm-json.d.mts +2 -2
- package/dist/storm-json.mjs +2 -2
- package/dist/{stringify-CYHjAvWm.mjs → stringify-CfeAVjh8.mjs} +3 -3
- package/dist/{stringify-CYHjAvWm.mjs.map → stringify-CfeAVjh8.mjs.map} +1 -1
- package/dist/{stringify-BehjrfhS.cjs → stringify-DQOBApRO.cjs} +2 -2
- package/dist/{stringify-Bc8OkhIr.d.cts → stringify-DtMcg2Wy.d.mts} +1 -1
- package/dist/stringify-DtMcg2Wy.d.mts.map +1 -0
- package/dist/{stringify-CFT1K1LE.d.mts → stringify-mAxwby9q.d.cts} +1 -1
- package/dist/stringify-mAxwby9q.d.cts.map +1 -0
- package/dist/{strip-comments-BA8MS_Fs.d.mts → strip-comments-AOXnoydB.d.cts} +1 -1
- package/dist/{strip-comments-BA8MS_Fs.d.mts.map → strip-comments-AOXnoydB.d.cts.map} +1 -1
- package/dist/{strip-comments-Cz_Wc25t.d.cts → strip-comments-BNN6Uf4e.d.mts} +1 -1
- package/dist/{strip-comments-Cz_Wc25t.d.cts.map → strip-comments-BNN6Uf4e.d.mts.map} +1 -1
- package/dist/{strip-comments-Dq00N_Sg.mjs → strip-comments-DNTu6CWM.mjs} +1 -1
- package/dist/{strip-comments-Dq00N_Sg.mjs.map → strip-comments-DNTu6CWM.mjs.map} +1 -1
- package/dist/{types-CPQlxauZ.d.mts → types-BAtAPir9.d.mts} +1 -1
- package/dist/{types-Bn8rC098.d.cts.map → types-BAtAPir9.d.mts.map} +1 -1
- package/dist/{types-Bn8rC098.d.cts → types-BzNIRhpI.d.cts} +1 -1
- package/dist/{types-CPQlxauZ.d.mts.map → types-BzNIRhpI.d.cts.map} +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/utils/code-frames.cjs +1 -1
- package/dist/utils/code-frames.d.cts +1 -1
- package/dist/utils/code-frames.d.mts +1 -1
- package/dist/utils/code-frames.mjs +1 -1
- package/dist/utils/index.cjs +6 -6
- package/dist/utils/index.d.cts +5 -5
- package/dist/utils/index.d.mts +6 -6
- package/dist/utils/index.mjs +6 -6
- package/dist/utils/parse-error.cjs +1 -1
- package/dist/utils/parse-error.d.cts +1 -1
- package/dist/utils/parse-error.d.mts +1 -1
- package/dist/utils/parse-error.mjs +1 -1
- package/dist/utils/parse.cjs +1 -1
- package/dist/utils/parse.d.cts +1 -1
- package/dist/utils/parse.d.mts +1 -1
- package/dist/utils/parse.mjs +1 -1
- package/dist/utils/stringify.cjs +1 -1
- package/dist/utils/stringify.d.cts +1 -1
- package/dist/utils/stringify.d.mts +1 -1
- package/dist/utils/stringify.mjs +1 -1
- package/dist/utils/strip-comments.cjs +1 -1
- package/dist/utils/strip-comments.d.cts +1 -1
- package/dist/utils/strip-comments.d.mts +1 -1
- package/dist/utils/strip-comments.mjs +1 -1
- package/package.json +6 -2
- package/dist/parse-error-7K8s4vWf.d.cts.map +0 -1
- package/dist/parse-error-DpEv3vo_.d.mts.map +0 -1
- package/dist/schema-BO1HCrxv.d.cts.map +0 -1
- package/dist/schema-CmH1V_uI.d.mts.map +0 -1
- package/dist/schema-DGmzxHja.mjs.map +0 -1
- package/dist/stringify-Bc8OkhIr.d.cts.map +0 -1
- package/dist/stringify-CFT1K1LE.d.mts.map +0 -1
- /package/dist/{code-frames-BmUvlJ0w.cjs → code-frames-ChE4PPdh.cjs} +0 -0
- /package/dist/{index-B_e8BwCm.d.cts → index-CsuikFeJ.d.mts} +0 -0
- /package/dist/{index-CCt0lwyI.d.mts → index-Dh6J9gb5.d.cts} +0 -0
- /package/dist/{index-CDAfh8Ew.d.cts → index-VmEFGBxN.d.cts} +0 -0
- /package/dist/{index-DvuJXuAN.d.mts → index-e6k85DKM.d.mts} +0 -0
- /package/dist/{is-number-c5xguIbS.cjs → is-number-CV8PbAUX.cjs} +0 -0
- /package/dist/{is-string-C2RK4Gjs.cjs → is-string-yY-B30hL.cjs} +0 -0
- /package/dist/{is-undefined-CnI0qe-z.cjs → is-undefined-DyZkA263.cjs} +0 -0
- /package/dist/{pointer-B3W_Sme3.cjs → pointer-Cvmor4sN.cjs} +0 -0
- /package/dist/{pointer-Dn__XOdY.mjs → pointer-DScQSL_a.mjs} +0 -0
- /package/dist/{strip-comments-CmEG_smS.cjs → strip-comments-CPoO4Wj2.cjs} +0 -0
- /package/dist/{utils-jN2UkvqB.cjs → utils-DrK7G5cq.cjs} +0 -0
- /package/dist/{utils-mEkKIcgl.mjs → utils-mO6p60ai.mjs} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as codeFrameColumns } from "../code-frames-
|
|
1
|
+
import { t as codeFrameColumns } from "../code-frames-ClyQ9O1l.cjs";
|
|
2
2
|
export { codeFrameColumns };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as codeFrameColumns } from "../code-frames-
|
|
1
|
+
import { t as codeFrameColumns } from "../code-frames-BOS_tt9F.mjs";
|
|
2
2
|
export { codeFrameColumns };
|
package/dist/utils/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_strip_comments = require('../strip-comments-
|
|
2
|
-
const require_parse = require('../parse-
|
|
3
|
-
const require_code_frames = require('../code-frames-
|
|
4
|
-
const require_parse_error = require('../parse-error-
|
|
5
|
-
const require_stringify = require('../stringify-
|
|
6
|
-
require('../utils-
|
|
1
|
+
const require_strip_comments = require('../strip-comments-CPoO4Wj2.cjs');
|
|
2
|
+
const require_parse = require('../parse-CX9jPskm.cjs');
|
|
3
|
+
const require_code_frames = require('../code-frames-ChE4PPdh.cjs');
|
|
4
|
+
const require_parse_error = require('../parse-error-CUOf-YBA.cjs');
|
|
5
|
+
const require_stringify = require('../stringify-DQOBApRO.cjs');
|
|
6
|
+
require('../utils-DrK7G5cq.cjs');
|
|
7
7
|
|
|
8
8
|
exports.codeFrameColumns = require_code_frames.codeFrameColumns;
|
|
9
9
|
exports.formatParseError = require_parse_error.formatParseError;
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as codeFrameColumns } from "../code-frames-
|
|
2
|
-
import { n as parse, r as safeParse, t as Options } from "../parse-
|
|
3
|
-
import { t as formatParseError } from "../parse-error-
|
|
4
|
-
import { n as stringify, t as invalidKeyChars } from "../stringify-
|
|
5
|
-
import { t as stripComments } from "../strip-comments-
|
|
1
|
+
import { t as codeFrameColumns } from "../code-frames-ClyQ9O1l.cjs";
|
|
2
|
+
import { n as parse, r as safeParse, t as Options } from "../parse-ygKFNauQ.cjs";
|
|
3
|
+
import { t as formatParseError } from "../parse-error-CGKcBkMJ.cjs";
|
|
4
|
+
import { n as stringify, t as invalidKeyChars } from "../stringify-mAxwby9q.cjs";
|
|
5
|
+
import { t as stripComments } from "../strip-comments-AOXnoydB.cjs";
|
|
6
6
|
export { Options, codeFrameColumns, formatParseError, invalidKeyChars, parse, safeParse, stringify, stripComments };
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as codeFrameColumns } from "../code-frames-
|
|
2
|
-
import { n as parse, r as safeParse, t as Options } from "../parse-
|
|
3
|
-
import { t as formatParseError } from "../parse-error-
|
|
4
|
-
import { n as stringify, t as invalidKeyChars } from "../stringify-
|
|
5
|
-
import { t as stripComments } from "../strip-comments-
|
|
6
|
-
import "../index-
|
|
1
|
+
import { t as codeFrameColumns } from "../code-frames-BOS_tt9F.mjs";
|
|
2
|
+
import { n as parse, r as safeParse, t as Options } from "../parse-XXQfTfNE.mjs";
|
|
3
|
+
import { t as formatParseError } from "../parse-error-CDt01Gvc.mjs";
|
|
4
|
+
import { n as stringify, t as invalidKeyChars } from "../stringify-DtMcg2Wy.mjs";
|
|
5
|
+
import { t as stripComments } from "../strip-comments-BNN6Uf4e.mjs";
|
|
6
|
+
import "../index-e6k85DKM.mjs";
|
|
7
7
|
export { Options, codeFrameColumns, formatParseError, invalidKeyChars, parse, safeParse, stringify, stripComments };
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as stripComments } from "../strip-comments-
|
|
2
|
-
import { n as safeParse, t as parse } from "../parse-
|
|
3
|
-
import { t as codeFrameColumns } from "../code-frames-
|
|
4
|
-
import { t as formatParseError } from "../parse-error-
|
|
5
|
-
import { n as stringify, t as invalidKeyChars } from "../stringify-
|
|
6
|
-
import "../utils-
|
|
1
|
+
import { t as stripComments } from "../strip-comments-DNTu6CWM.mjs";
|
|
2
|
+
import { n as safeParse, t as parse } from "../parse-BrChHTWb.mjs";
|
|
3
|
+
import { t as codeFrameColumns } from "../code-frames-C8DEdLmV.mjs";
|
|
4
|
+
import { t as formatParseError } from "../parse-error-Cu6mjBS7.mjs";
|
|
5
|
+
import { n as stringify, t as invalidKeyChars } from "../stringify-CfeAVjh8.mjs";
|
|
6
|
+
import "../utils-mO6p60ai.mjs";
|
|
7
7
|
|
|
8
8
|
export { codeFrameColumns, formatParseError, invalidKeyChars, parse, safeParse, stringify, stripComments };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as formatParseError } from "../parse-error-
|
|
1
|
+
import { t as formatParseError } from "../parse-error-CGKcBkMJ.cjs";
|
|
2
2
|
export { formatParseError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as formatParseError } from "../parse-error-
|
|
1
|
+
import { t as formatParseError } from "../parse-error-CDt01Gvc.mjs";
|
|
2
2
|
export { formatParseError };
|
package/dist/utils/parse.cjs
CHANGED
package/dist/utils/parse.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as parse, r as safeParse, t as Options } from "../parse-
|
|
1
|
+
import { n as parse, r as safeParse, t as Options } from "../parse-ygKFNauQ.cjs";
|
|
2
2
|
export { Options, parse, safeParse };
|
package/dist/utils/parse.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as parse, r as safeParse, t as Options } from "../parse-
|
|
1
|
+
import { n as parse, r as safeParse, t as Options } from "../parse-XXQfTfNE.mjs";
|
|
2
2
|
export { Options, parse, safeParse };
|
package/dist/utils/parse.mjs
CHANGED
package/dist/utils/stringify.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as stringify, t as invalidKeyChars } from "../stringify-
|
|
1
|
+
import { n as stringify, t as invalidKeyChars } from "../stringify-mAxwby9q.cjs";
|
|
2
2
|
export { invalidKeyChars, stringify };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as stringify, t as invalidKeyChars } from "../stringify-
|
|
1
|
+
import { n as stringify, t as invalidKeyChars } from "../stringify-DtMcg2Wy.mjs";
|
|
2
2
|
export { invalidKeyChars, stringify };
|
package/dist/utils/stringify.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as stripComments } from "../strip-comments-
|
|
1
|
+
import { t as stripComments } from "../strip-comments-AOXnoydB.cjs";
|
|
2
2
|
export { stripComments };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as stripComments } from "../strip-comments-
|
|
1
|
+
import { t as stripComments } from "../strip-comments-BNN6Uf4e.mjs";
|
|
2
2
|
export { stripComments };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/json",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing JSON parsing/stringify utilities used by Storm Software.",
|
|
6
6
|
"repository": {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"module": "./dist/index.mjs",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": { "require": "./dist/index.cjs", "import": "./dist/index.mjs" },
|
|
16
|
+
"./canonical": {
|
|
17
|
+
"require": "./dist/canonical.cjs",
|
|
18
|
+
"import": "./dist/canonical.mjs"
|
|
19
|
+
},
|
|
16
20
|
"./pointer": {
|
|
17
21
|
"require": "./dist/pointer/index.cjs",
|
|
18
22
|
"import": "./dist/pointer/index.mjs"
|
|
@@ -73,5 +77,5 @@
|
|
|
73
77
|
"tsdown": "^0.17.2"
|
|
74
78
|
},
|
|
75
79
|
"publishConfig": { "access": "public" },
|
|
76
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "b8125bf046febc1991df62777827d0481c2c89c0"
|
|
77
81
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-error-7K8s4vWf.d.cts","names":[],"sources":["../src/utils/parse-error.ts"],"sourcesContent":[],"mappings":";;;;;;AA8BA;;;;;iBAAgB,gBAAA,4BAA4C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-error-DpEv3vo_.d.mts","names":[],"sources":["../src/utils/parse-error.ts"],"sourcesContent":[],"mappings":";;;;;;AA8BA;;;;;iBAAgB,gBAAA,4BAA4C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema-BO1HCrxv.d.cts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;;;;;AAqCA;;;;AAEiC,iBAFjB,sBAAA,CAEiB,MAAA,EADvB,eACuB,GADL,qBACK,CAAA,EAAA,MAAA,IAApB,oBAAoB;AAcjC;;;;;AAgBA;AAYgB,iBA5BA,uBAAA,CA4BiC,MACvC,EA5BA,eA6BG,GA7Be,qBA6Bf,CAAA,EAAA,MAA+B,IA5B/B,qBA4B+B;AAsB5C;AAyBA;;;;;AAEgC,iBA/DhB,sBAAA,CA+DgB,MAAA,EA9DtB,eA8DsB,CAAA,EAAA,MAAA,IA7DnB,oBA6DmB;;;;;;;iBAnDhB,iCAAA,SACN,4BACG;;;;;;;iBAsBG,wBAAA,SACN,4BACG;;;;;;;;;;;;iBAuBG,+CAA+C,6BAEnD,qBAAqB,OAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema-CmH1V_uI.d.mts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;;;;;AAqCA;;;;AAEiC,iBAFjB,sBAAA,CAEiB,MAAA,EADvB,eACuB,GADL,qBACK,CAAA,EAAA,MAAA,IAApB,oBAAoB;AAcjC;;;;;AAgBA;AAYgB,iBA5BA,uBAAA,CA4BiC,MACvC,EA5BA,eA6BG,GA7Be,qBA6Bf,CAAA,EAAA,MAA+B,IA5B/B,qBA4B+B;AAsB5C;AAyBA;;;;;AAEgC,iBA/DhB,sBAAA,CA+DgB,MAAA,EA9DtB,eA8DsB,CAAA,EAAA,MAAA,IA7DnB,oBA6DmB;;;;;;;iBAnDhB,iCAAA,SACN,4BACG;;;;;;;iBAsBG,wBAAA,SACN,4BACG;;;;;;;;;;;;iBAuBG,+CAA+C,6BAEnD,qBAAqB,OAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema-DGmzxHja.mjs","names":[],"sources":["../src/schema.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { StandardJSONSchemaV1 } from \"@standard-schema/spec\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport type {\n JsonSchema7AllOfType,\n JsonSchema7ArrayType,\n JsonSchema7LiteralType,\n JsonSchema7ObjectType,\n JsonSchema7PrimitiveLiteralType,\n JsonSchema7StringType,\n JsonSchema7Type\n} from \"./types\";\n\n/**\n * Type guard for {@link JsonSchema7AllOfType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7AllOfType}, false otherwise\n */\nexport function isJsonSchema7AllOfType(\n schema: JsonSchema7Type | JsonSchema7StringType\n): schema is JsonSchema7AllOfType {\n if (\"type\" in schema && schema.type === \"string\") {\n return false;\n }\n\n return \"allOf\" in schema;\n}\n\n/**\n * Type guard for {@link JsonSchema7ObjectType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7ObjectType}, false otherwise\n */\nexport function isJsonSchema7ObjectType(\n schema: JsonSchema7Type | JsonSchema7StringType\n): schema is JsonSchema7ObjectType {\n if (\"type\" in schema && schema.type === \"object\") {\n return false;\n }\n\n return \"properties\" in schema;\n}\n\n/**\n * Type guard for {@link JsonSchema7ArrayType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7ArrayType}, false otherwise\n */\nexport function isJsonSchema7ArrayType(\n schema: JsonSchema7Type\n): schema is JsonSchema7ArrayType {\n return \"type\" in schema && schema.type === \"array\" && \"items\" in schema;\n}\n\n/**\n * Type guard for {@link JsonSchema7PrimitiveLiteralType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7PrimitiveLiteralType}, false otherwise\n */\nexport function isJsonSchema7PrimitiveLiteralType(\n schema: JsonSchema7Type\n): schema is JsonSchema7PrimitiveLiteralType {\n if (!(\"type\" in schema)) {\n return false;\n }\n\n const { type } = schema;\n\n return (\n (type === \"string\" ||\n type === \"number\" ||\n type === \"integer\" ||\n type === \"boolean\") &&\n \"const\" in schema\n );\n}\n\n/**\n * Type guard for {@link JsonSchema7LiteralType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7LiteralType}, false otherwise\n */\nexport function isJsonSchema7LiteralType(\n schema: JsonSchema7Type\n): schema is JsonSchema7LiteralType {\n if (isJsonSchema7PrimitiveLiteralType(schema)) {\n return true;\n }\n\n if (!(\"type\" in schema)) {\n return false;\n }\n\n return schema.type === \"object\" || schema.type === \"array\";\n}\n\n/**\n * Type guard to check if a value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}.\n *\n * @remarks\n * This function checks if the value has the structure of a Standard JSON Schema, which includes a `~standard` property with a `jsonSchema` object that has `input` and `output` functions.\n *\n * @see https://standardschema.dev/json-schema\n *\n * @param value - The value to check.\n * @returns True if the value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}, false otherwise.\n */\nexport function isStandardJsonSchema<Input = unknown, Output = Input>(\n value: any\n): value is StandardJSONSchemaV1<Input, Output> {\n return (\n isSetObject(value) &&\n \"~standard\" in value &&\n isSetObject(value[\"~standard\"]) &&\n \"jsonSchema\" in value[\"~standard\"] &&\n isSetObject(value[\"~standard\"].jsonSchema) &&\n \"input\" in value[\"~standard\"].jsonSchema &&\n isFunction(value[\"~standard\"].jsonSchema.input) &&\n \"output\" in value[\"~standard\"].jsonSchema &&\n isFunction(value[\"~standard\"].jsonSchema.output)\n );\n}\n"],"mappings":";;;;;;;;;AAqCA,SAAgB,uBACd,QACgC;AAChC,KAAI,UAAU,UAAU,OAAO,SAAS,SACtC,QAAO;AAGT,QAAO,WAAW;;;;;;;;AASpB,SAAgB,wBACd,QACiC;AACjC,KAAI,UAAU,UAAU,OAAO,SAAS,SACtC,QAAO;AAGT,QAAO,gBAAgB;;;;;;;;AASzB,SAAgB,uBACd,QACgC;AAChC,QAAO,UAAU,UAAU,OAAO,SAAS,WAAW,WAAW;;;;;;;;AASnE,SAAgB,kCACd,QAC2C;AAC3C,KAAI,EAAE,UAAU,QACd,QAAO;CAGT,MAAM,EAAE,SAAS;AAEjB,SACG,SAAS,YACR,SAAS,YACT,SAAS,aACT,SAAS,cACX,WAAW;;;;;;;;AAUf,SAAgB,yBACd,QACkC;AAClC,KAAI,kCAAkC,OAAO,CAC3C,QAAO;AAGT,KAAI,EAAE,UAAU,QACd,QAAO;AAGT,QAAO,OAAO,SAAS,YAAY,OAAO,SAAS;;;;;;;;;;;;;AAcrD,SAAgB,qBACd,OAC8C;AAC9C,QACE,YAAY,MAAM,IAClB,eAAe,SACf,YAAY,MAAM,aAAa,IAC/B,gBAAgB,MAAM,gBACtB,YAAY,MAAM,aAAa,WAAW,IAC1C,WAAW,MAAM,aAAa,cAC9B,WAAW,MAAM,aAAa,WAAW,MAAM,IAC/C,YAAY,MAAM,aAAa,cAC/B,WAAW,MAAM,aAAa,WAAW,OAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stringify-Bc8OkhIr.d.cts","names":[],"sources":["../src/utils/stringify.ts"],"sourcesContent":[],"mappings":";cAqBa;AAAb;AA0CA;;;;;;cAAa"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stringify-CFT1K1LE.d.mts","names":[],"sources":["../src/utils/stringify.ts"],"sourcesContent":[],"mappings":";cAqBa;AAAb;AA0CA;;;;;;cAAa"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|