@stryke/json 0.10.0 → 0.11.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 (115) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/{code-frames-BMkA9i6j.d.mts → code-frames-CrTAYYSE.d.mts} +1 -1
  3. package/dist/{code-frames-BMkA9i6j.d.mts.map → code-frames-CrTAYYSE.d.mts.map} +1 -1
  4. package/dist/{code-frames-DISWdYL6.mjs → code-frames-DuBfTMu4.mjs} +1 -1
  5. package/dist/{code-frames-DISWdYL6.mjs.map → code-frames-DuBfTMu4.mjs.map} +1 -1
  6. package/dist/{find-reference-b7rRdLFx.d.mts → find-reference-B8xshNXL.d.mts} +1 -1
  7. package/dist/{find-reference-b7rRdLFx.d.mts.map → find-reference-B8xshNXL.d.mts.map} +1 -1
  8. package/dist/{find-reference-woYMiWzN.mjs → find-reference-DMSYEaaI.mjs} +2 -73
  9. package/dist/find-reference-DMSYEaaI.mjs.map +1 -0
  10. package/dist/{find-reference-BCg3dQx1.cjs → find-reference-De5vBQV2.cjs} +2 -73
  11. package/dist/index.cjs +16 -11
  12. package/dist/index.d.cts +4 -4
  13. package/dist/index.d.mts +12 -12
  14. package/dist/index.mjs +12 -12
  15. package/dist/is-set-object-BmHip9em.cjs +108 -0
  16. package/dist/is-set-object-C1Qnj1Q8.mjs +98 -0
  17. package/dist/is-set-object-C1Qnj1Q8.mjs.map +1 -0
  18. package/dist/{parse-wxSDzBPf.cjs → parse-ByDxRup5.cjs} +1 -1
  19. package/dist/{parse-ZRTh45ZI.d.mts → parse-Cj-YfhrI.d.mts} +1 -1
  20. package/dist/{parse-ZRTh45ZI.d.mts.map → parse-Cj-YfhrI.d.mts.map} +1 -1
  21. package/dist/{parse-obdkJfj5.mjs → parse-Dn43ZK9y.mjs} +2 -2
  22. package/dist/{parse-obdkJfj5.mjs.map → parse-Dn43ZK9y.mjs.map} +1 -1
  23. package/dist/{parse-error-C3Qmubee.mjs → parse-error-Af4zHUQ_.mjs} +2 -2
  24. package/dist/{parse-error-C3Qmubee.mjs.map → parse-error-Af4zHUQ_.mjs.map} +1 -1
  25. package/dist/{parse-error-DY_MelEh.d.mts → parse-error-DpEv3vo_.d.mts} +1 -1
  26. package/dist/parse-error-DpEv3vo_.d.mts.map +1 -0
  27. package/dist/{parse-error-Dzwg4sdE.cjs → parse-error-N7UE-HMh.cjs} +2 -2
  28. package/dist/{parse-DgYW5BBj.d.mts → parse-fXy5pbmE.d.mts} +1 -1
  29. package/dist/{parse-DgYW5BBj.d.mts.map → parse-fXy5pbmE.d.mts.map} +1 -1
  30. package/dist/{parse-Crgv3Nl1.mjs → parse-vw_qRD3F.mjs} +1 -1
  31. package/dist/{parse-Crgv3Nl1.mjs.map → parse-vw_qRD3F.mjs.map} +1 -1
  32. package/dist/pointer/find-reference.cjs +1 -1
  33. package/dist/pointer/find-reference.d.mts +1 -1
  34. package/dist/pointer/find-reference.mjs +1 -1
  35. package/dist/pointer/index.cjs +3 -3
  36. package/dist/pointer/index.d.mts +2 -2
  37. package/dist/pointer/index.mjs +3 -3
  38. package/dist/pointer/parse.cjs +1 -1
  39. package/dist/pointer/parse.d.mts +1 -1
  40. package/dist/pointer/parse.mjs +1 -1
  41. package/dist/schema-BO1HCrxv.d.cts +55 -0
  42. package/dist/schema-BO1HCrxv.d.cts.map +1 -0
  43. package/dist/schema-CmH1V_uI.d.mts +55 -0
  44. package/dist/schema-CmH1V_uI.d.mts.map +1 -0
  45. package/dist/schema-DGmzxHja.mjs +72 -0
  46. package/dist/schema-DGmzxHja.mjs.map +1 -0
  47. package/dist/schema-Dl018Aq4.cjs +106 -0
  48. package/dist/schema.cjs +7 -2
  49. package/dist/schema.d.cts +2 -2
  50. package/dist/schema.d.mts +3 -3
  51. package/dist/schema.mjs +2 -2
  52. package/dist/{storm-json-AaFeOao2.d.cts → storm-json-8F9CKpXu.d.mts} +2 -2
  53. package/dist/{storm-json-AaFeOao2.d.cts.map → storm-json-8F9CKpXu.d.mts.map} +1 -1
  54. package/dist/{storm-json-6WpS7qnH.cjs → storm-json-BD6WFbrI.cjs} +3 -3
  55. package/dist/{storm-json-BvRkzAlR.d.mts → storm-json-DvIEWMEH.d.cts} +2 -2
  56. package/dist/{storm-json-BvRkzAlR.d.mts.map → storm-json-DvIEWMEH.d.cts.map} +1 -1
  57. package/dist/{storm-json-Cy3PuAhj.mjs → storm-json-nkhJgTz4.mjs} +4 -4
  58. package/dist/{storm-json-Cy3PuAhj.mjs.map → storm-json-nkhJgTz4.mjs.map} +1 -1
  59. package/dist/storm-json.cjs +2 -2
  60. package/dist/storm-json.d.cts +1 -1
  61. package/dist/storm-json.d.mts +2 -2
  62. package/dist/storm-json.mjs +2 -2
  63. package/dist/{stringify-B6iAeg0u.d.mts → stringify-CFT1K1LE.d.mts} +1 -1
  64. package/dist/stringify-CFT1K1LE.d.mts.map +1 -0
  65. package/dist/{stringify-D5baUfEe.mjs → stringify-CYHjAvWm.mjs} +1 -1
  66. package/dist/{stringify-D5baUfEe.mjs.map → stringify-CYHjAvWm.mjs.map} +1 -1
  67. package/dist/{strip-comments-Bg3R_Y4S.d.mts → strip-comments-BA8MS_Fs.d.mts} +1 -1
  68. package/dist/{strip-comments-Bg3R_Y4S.d.mts.map → strip-comments-BA8MS_Fs.d.mts.map} +1 -1
  69. package/dist/{strip-comments-CMaAgTqz.mjs → strip-comments-Dq00N_Sg.mjs} +1 -1
  70. package/dist/{strip-comments-CMaAgTqz.mjs.map → strip-comments-Dq00N_Sg.mjs.map} +1 -1
  71. package/dist/{types-C_KlcCNw.d.mts → types-Bn8rC098.d.cts} +5 -5
  72. package/dist/{types-BUeTTE_U.d.cts.map → types-Bn8rC098.d.cts.map} +1 -1
  73. package/dist/{types-BUeTTE_U.d.cts → types-CPQlxauZ.d.mts} +5 -5
  74. package/dist/{types-C_KlcCNw.d.mts.map → types-CPQlxauZ.d.mts.map} +1 -1
  75. package/dist/types.d.cts +2 -2
  76. package/dist/types.d.mts +2 -2
  77. package/dist/utils/code-frames.cjs +1 -1
  78. package/dist/utils/code-frames.d.mts +1 -1
  79. package/dist/utils/code-frames.mjs +1 -1
  80. package/dist/utils/index.cjs +6 -6
  81. package/dist/utils/index.d.mts +6 -6
  82. package/dist/utils/index.mjs +6 -6
  83. package/dist/utils/parse-error.cjs +1 -1
  84. package/dist/utils/parse-error.d.mts +1 -1
  85. package/dist/utils/parse-error.mjs +1 -1
  86. package/dist/utils/parse.cjs +1 -1
  87. package/dist/utils/parse.d.mts +1 -1
  88. package/dist/utils/parse.mjs +1 -1
  89. package/dist/utils/stringify.cjs +1 -1
  90. package/dist/utils/stringify.d.mts +1 -1
  91. package/dist/utils/stringify.mjs +1 -1
  92. package/dist/utils/strip-comments.cjs +1 -1
  93. package/dist/utils/strip-comments.d.mts +1 -1
  94. package/dist/utils/strip-comments.mjs +1 -1
  95. package/package.json +7 -3
  96. package/dist/find-reference-woYMiWzN.mjs.map +0 -1
  97. package/dist/parse-error-DY_MelEh.d.mts.map +0 -1
  98. package/dist/schema-B1RVJHzJ.d.cts +0 -7
  99. package/dist/schema-B1RVJHzJ.d.cts.map +0 -1
  100. package/dist/schema-CfhPLy30.mjs +0 -9
  101. package/dist/schema-CfhPLy30.mjs.map +0 -1
  102. package/dist/schema-D5Aqvh2i.cjs +0 -14
  103. package/dist/schema-ai_NU-JC.d.mts +0 -7
  104. package/dist/schema-ai_NU-JC.d.mts.map +0 -1
  105. package/dist/stringify-B6iAeg0u.d.mts.map +0 -1
  106. /package/dist/{code-frames-Cv8r5tSN.cjs → code-frames-BmUvlJ0w.cjs} +0 -0
  107. /package/dist/{index-DwO9IdNa.d.mts → index-CCt0lwyI.d.mts} +0 -0
  108. /package/dist/{index-VWno75SQ.d.mts → index-DvuJXuAN.d.mts} +0 -0
  109. /package/dist/{parse-KiRakdIR.cjs → parse-Bp6kkcQ4.cjs} +0 -0
  110. /package/dist/{pointer-Cc7IR0Bj.cjs → pointer-B3W_Sme3.cjs} +0 -0
  111. /package/dist/{pointer-CiTXvh1G.mjs → pointer-Dn__XOdY.mjs} +0 -0
  112. /package/dist/{stringify-DEw3S4_Z.cjs → stringify-BehjrfhS.cjs} +0 -0
  113. /package/dist/{strip-comments-CtFoX0xG.cjs → strip-comments-CmEG_smS.cjs} +0 -0
  114. /package/dist/{utils-CVcIdLuL.mjs → utils-jN2UkvqB.cjs} +0 -0
  115. /package/dist/{utils-Cz3OCwUK.cjs → utils-mEkKIcgl.mjs} +0 -0
@@ -1,2 +1,2 @@
1
- import { t as stripComments } from "../strip-comments-Bg3R_Y4S.mjs";
1
+ import { t as stripComments } from "../strip-comments-BA8MS_Fs.mjs";
2
2
  export { stripComments };
@@ -1,3 +1,3 @@
1
- import { t as stripComments } from "../strip-comments-CMaAgTqz.mjs";
1
+ import { t as stripComments } from "../strip-comments-Dq00N_Sg.mjs";
2
2
 
3
3
  export { stripComments };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/json",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "description": "A package containing JSON parsing/stringify utilities used by Storm Software.",
6
6
  "repository": {
@@ -67,7 +67,11 @@
67
67
  "lines-and-columns": "2.0.4",
68
68
  "superjson": "2.2.2"
69
69
  },
70
- "devDependencies": { "@types/node": "^24.11.0", "tsdown": "^0.17.2" },
70
+ "devDependencies": {
71
+ "@standard-schema/spec": "^1.1.0",
72
+ "@types/node": "^24.11.0",
73
+ "tsdown": "^0.17.2"
74
+ },
71
75
  "publishConfig": { "access": "public" },
72
- "gitHead": "7755bd92180cadaa0ef8168e4e123deaacc4ccb8"
76
+ "gitHead": "c19d9de45cecf6e0cc805e04358c9dc9d9e4eb6a"
73
77
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-reference-woYMiWzN.mjs","names":["obj: Reference[\"obj\"]","key: Reference[\"key\"]"],"sources":["../../type-checks/src/is-null.ts","../../type-checks/src/is-empty.ts","../../type-checks/src/is-set.ts","../../type-checks/src/is-non-null-object.ts","../../type-checks/src/is-set-object.ts","../src/pointer/find-reference.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\nexport const isNull = (value: unknown): value is null => {\n try {\n return value === null;\n } catch {\n return false;\n }\n};\n","/* -------------------------------------------------------------------\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 { isDate } from \"./is-date\";\nimport { isFunction } from \"./is-function\";\nimport { isNull } from \"./is-null\";\nimport { isNumber } from \"./is-number\";\nimport { isSymbol } from \"./is-symbol\";\nimport { isUndefined } from \"./is-undefined\";\n\n/**\n * Check if the provided value's type is `null` or `undefined`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `null` or `undefined`\n */\nexport const isEmpty = (value: unknown) => {\n try {\n return isUndefined(value) || isNull(value);\n } catch {\n return false;\n }\n};\n\nexport const isEmptyAnything = (value: any) => {\n if (value === true || value === false) return true;\n if (value === null || value === undefined) return true;\n if (isNumber(value)) return value === 0;\n if (isDate(value)) return Number.isNaN(value.getTime());\n if (isFunction(value)) return false;\n if (isSymbol(value)) return false;\n const { length } = value;\n if (isNumber(length)) return length === 0;\n const { size } = value;\n if (isNumber(size)) return size === 0;\n const keys = Object.keys(value).length;\n\n return keys === 0;\n};\n","/* -------------------------------------------------------------------\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 { isEmpty } from \"./is-empty\";\n\n/**\n * The inverse of the `isEmpty` function\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is **NOT** of type `null` or `undefined`\n */\nexport const isSet = (value: unknown): value is NonNullable<unknown> => {\n try {\n return !isEmpty(value);\n } catch {\n return false;\n }\n};\n","/* -------------------------------------------------------------------\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 { isObject } from \"./is-object\";\nimport { isSet } from \"./is-set\";\n\n/**\n * Check if the provided value's type is `Object` and is not `null` or `undefined`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Object` and is not `null` or `undefined`\n */\nexport const isNonNullObject = (value: any): value is NonNullable<object> => {\n return isSet(value) && isObject(value);\n};\n","/* -------------------------------------------------------------------\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 { isNonNullObject } from \"./is-non-null-object\";\n\n/**\n * Check if the provided value's type is an object with some fields set\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is an object with some fields se\n */\nexport const isSetObject = (value: unknown): value is NonNullable<object> => {\n try {\n return isNonNullObject(value) && Object.keys(value).length > 0;\n } catch {\n return false;\n }\n};\n","/* -------------------------------------------------------------------\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 { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isString } from \"@stryke/type-checks/is-string\";\n\nexport interface Reference {\n /** Target value where pointer is pointing. */\n readonly val: unknown;\n /** Object which contains the target value. */\n readonly obj?: unknown | object | unknown[];\n /** Key which targets the target value in the object. */\n readonly key?: string | number;\n}\n\nconst { isArray } = Array;\n\n/**\n * Finds a target in document specified by JSON Pointer. Also returns the\n * object containing the target and key used to reference that object.\n *\n * Throws Error('NOT_FOUND') if pointer does not result into a value in the middle\n * of the path. If the last element of the path does not result into a value, the\n * lookup succeeds with `val` set to `undefined`. It can be used to discriminate\n * missing values, because `undefined` is not a valid JSON value.\n *\n * If last element in array is targeted using \"-\", e.g. \"/arr/-\", use\n * `isArrayEnd` to verify that:\n *\n * ```js\n * const ref = find({arr: [1, 2, 3], ['arr', '-']});\n * if (isArrayReference(ref)) {\n * if (isArrayEnd(ref)) {\n * // ...\n * }\n * }\n * ```\n *\n * @param val - Document to search in.\n * @param path - JSON Pointer path.\n * @returns Reference to the target.\n */\nexport const find = (val: unknown, path: Reference[\"key\"][]): Reference => {\n const pathLength = path.length;\n if (!pathLength) {\n return { val };\n }\n\n let obj: Reference[\"obj\"];\n let key: Reference[\"key\"];\n for (let i = 0; i < pathLength; i++) {\n obj = val;\n key = path[i];\n if (isArray(obj)) {\n const length = obj.length;\n if (key === \"-\") {\n key = length;\n } else if (isString(key)) {\n const key2 = Math.trunc(Number.parseInt(key));\n if (String(key2) !== key) {\n throw new Error(\"INVALID_INDEX\");\n }\n\n key = key2;\n if (key < 0) {\n throw new Error(\"INVALID_INDEX\");\n }\n }\n\n if (key) {\n val = obj[key];\n }\n } else if (isSetObject(obj)) {\n val = key && key in obj ? (obj as any)[key] : undefined;\n } else throw new Error(\"NOT_FOUND\");\n }\n const ref: Reference = {\n val,\n obj,\n key\n };\n\n return ref;\n};\n\nexport interface ArrayReference<T = unknown> {\n /** `undefined` in case JSON Pointer points to last element, e.g. \"/foo/-\". */\n readonly val: undefined | T;\n readonly obj: T[];\n readonly key: number;\n}\n\nexport const isArrayReference = <T = unknown>(\n ref: Reference\n): ref is ArrayReference<T> => isArray(ref.obj) && typeof ref.key === \"number\";\n\nexport const isArrayEnd = (ref: ArrayReference): boolean =>\n ref.obj.length === ref.key;\n\nexport interface ObjectReference<T = unknown> {\n readonly val: T;\n readonly obj: Record<string, T>;\n readonly key: string;\n}\n\nexport const isObjectReference = <T = unknown>(\n ref: Reference\n): ref is ObjectReference<T> =>\n typeof ref.obj === \"object\" && typeof ref.key === \"string\";\n"],"mappings":";;;;;AAkBA,MAAa,UAAU,UAAkC;AACvD,KAAI;AACF,SAAO,UAAU;SACX;AACN,SAAO;;;;;;;;;;;;ACSX,MAAa,WAAW,UAAmB;AACzC,KAAI;AACF,SAAO,YAAY,MAAM,IAAI,OAAO,MAAM;SACpC;AACN,SAAO;;;;;;;;;;;;ACTX,MAAa,SAAS,UAAkD;AACtE,KAAI;AACF,SAAO,CAAC,QAAQ,MAAM;SAChB;AACN,SAAO;;;;;;;;;;;;ACHX,MAAa,mBAAmB,UAA6C;AAC3E,QAAO,MAAM,MAAM,IAAI,SAAS,MAAM;;;;;;;;;;;ACFxC,MAAa,eAAe,UAAiD;AAC3E,KAAI;AACF,SAAO,gBAAgB,MAAM,IAAI,OAAO,KAAK,MAAM,CAAC,SAAS;SACvD;AACN,SAAO;;;;;;ACAX,MAAM,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BpB,MAAa,QAAQ,KAAc,SAAwC;CACzE,MAAM,aAAa,KAAK;AACxB,KAAI,CAAC,WACH,QAAO,EAAE,KAAK;CAGhB,IAAIA;CACJ,IAAIC;AACJ,MAAK,IAAI,IAAI,GAAG,IAAI,YAAY,KAAK;AACnC,QAAM;AACN,QAAM,KAAK;AACX,MAAI,QAAQ,IAAI,EAAE;GAChB,MAAM,SAAS,IAAI;AACnB,OAAI,QAAQ,IACV,OAAM;YACG,SAAS,IAAI,EAAE;IACxB,MAAM,OAAO,KAAK,MAAM,OAAO,SAAS,IAAI,CAAC;AAC7C,QAAI,OAAO,KAAK,KAAK,IACnB,OAAM,IAAI,MAAM,gBAAgB;AAGlC,UAAM;AACN,QAAI,MAAM,EACR,OAAM,IAAI,MAAM,gBAAgB;;AAIpC,OAAI,IACF,OAAM,IAAI;aAEH,YAAY,IAAI,CACzB,OAAM,OAAO,OAAO,MAAO,IAAY,OAAO;MACzC,OAAM,IAAI,MAAM,YAAY;;AAQrC,QANuB;EACrB;EACA;EACA;EACD;;AAYH,MAAa,oBACX,QAC6B,QAAQ,IAAI,IAAI,IAAI,OAAO,IAAI,QAAQ;AAEtE,MAAa,cAAc,QACzB,IAAI,IAAI,WAAW,IAAI;AAQzB,MAAa,qBACX,QAEA,OAAO,IAAI,QAAQ,YAAY,OAAO,IAAI,QAAQ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parse-error-DY_MelEh.d.mts","names":[],"sources":["../src/utils/parse-error.ts"],"sourcesContent":[],"mappings":";;;;;;AA8BA;;;;;iBAAgB,gBAAA,4BAA4C"}
@@ -1,7 +0,0 @@
1
- import { F as JsonSchema7StringType, L as JsonSchema7Type, f as JsonSchema7AllOfType } from "./types-BUeTTE_U.cjs";
2
-
3
- //#region src/schema.d.ts
4
- declare const isJsonSchema7AllOfType: (type: JsonSchema7Type | JsonSchema7StringType) => type is JsonSchema7AllOfType;
5
- //#endregion
6
- export { isJsonSchema7AllOfType as t };
7
- //# sourceMappingURL=schema-B1RVJHzJ.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-B1RVJHzJ.d.cts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;cAwBa,+BACL,kBAAkB,kCACf"}
@@ -1,9 +0,0 @@
1
- //#region src/schema.ts
2
- const isJsonSchema7AllOfType = (type) => {
3
- if ("type" in type && type.type === "string") return false;
4
- return "allOf" in type;
5
- };
6
-
7
- //#endregion
8
- export { isJsonSchema7AllOfType as t };
9
- //# sourceMappingURL=schema-CfhPLy30.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-CfhPLy30.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 {\n JsonSchema7AllOfType,\n JsonSchema7StringType,\n JsonSchema7Type\n} from \"./types\";\n\nexport const isJsonSchema7AllOfType = (\n type: JsonSchema7Type | JsonSchema7StringType\n): type is JsonSchema7AllOfType => {\n if (\"type\" in type && type.type === \"string\") return false;\n return \"allOf\" in type;\n};\n"],"mappings":";AAwBA,MAAa,0BACX,SACiC;AACjC,KAAI,UAAU,QAAQ,KAAK,SAAS,SAAU,QAAO;AACrD,QAAO,WAAW"}
@@ -1,14 +0,0 @@
1
-
2
- //#region src/schema.ts
3
- const isJsonSchema7AllOfType = (type) => {
4
- if ("type" in type && type.type === "string") return false;
5
- return "allOf" in type;
6
- };
7
-
8
- //#endregion
9
- Object.defineProperty(exports, 'isJsonSchema7AllOfType', {
10
- enumerable: true,
11
- get: function () {
12
- return isJsonSchema7AllOfType;
13
- }
14
- });
@@ -1,7 +0,0 @@
1
- import { F as JsonSchema7StringType, L as JsonSchema7Type, f as JsonSchema7AllOfType } from "./types-C_KlcCNw.mjs";
2
-
3
- //#region src/schema.d.ts
4
- declare const isJsonSchema7AllOfType: (type: JsonSchema7Type | JsonSchema7StringType) => type is JsonSchema7AllOfType;
5
- //#endregion
6
- export { isJsonSchema7AllOfType as t };
7
- //# sourceMappingURL=schema-ai_NU-JC.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-ai_NU-JC.d.mts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;cAwBa,+BACL,kBAAkB,kCACf"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stringify-B6iAeg0u.d.mts","names":[],"sources":["../src/utils/stringify.ts"],"sourcesContent":[],"mappings":";cAqBa;AAAb;AA0CA;;;;;;cAAa"}
File without changes
File without changes
File without changes