@es-joy/jsoe 0.19.0 → 0.19.1
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/CHANGES.md +4 -0
- package/dist/formats/schema.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
- package/src/formats/schema.js +3 -1
package/CHANGES.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/formats/schema.js"],"names":[],"mappings":";0BA2Da,OAAO,OAAO,EAAE,MAAM;2BAGtB,OAAO,qBAAqB,EAAE,YAAY;;;;oBAnD1C,CAAC,IADD,CAAC,CAAC,MAAM,CAAC,CAAC;iCAMV,OAAO,CAChB,IAAI,CAAC,OAAO,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CACrC;AAsiBH,6CAA6C;AAC7C,sBADW,OAAO,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/formats/schema.js"],"names":[],"mappings":";0BA2Da,OAAO,OAAO,EAAE,MAAM;2BAGtB,OAAO,qBAAqB,EAAE,YAAY;;;;oBAnD1C,CAAC,IADD,CAAC,CAAC,MAAM,CAAC,CAAC;iCAMV,OAAO,CAChB,IAAI,CAAC,OAAO,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CACrC;AAsiBH,6CAA6C;AAC7C,sBADW,OAAO,eAAe,EAAE,MAAM,CA2MvC"}
|
package/dist/index.js
CHANGED
|
@@ -9151,7 +9151,9 @@ const schema = {
|
|
|
9151
9151
|
// however, if the tested object has extra non-standard properties
|
|
9152
9152
|
schema.unknownKeys = 'strict';
|
|
9153
9153
|
}
|
|
9154
|
-
const dezSchema = dezerialize(schema
|
|
9154
|
+
const dezSchema = dezerialize(schema, {
|
|
9155
|
+
originalShape: stateObj.schemaContent
|
|
9156
|
+
});
|
|
9155
9157
|
const parsed = dezSchema.safeParse(v);
|
|
9156
9158
|
|
|
9157
9159
|
if (schema.type === 'object') {
|
package/package.json
CHANGED
package/src/formats/schema.js
CHANGED
|
@@ -667,7 +667,9 @@ const schema = {
|
|
|
667
667
|
// however, if the tested object has extra non-standard properties
|
|
668
668
|
schema.unknownKeys = 'strict';
|
|
669
669
|
}
|
|
670
|
-
const dezSchema = dezerialize(schema
|
|
670
|
+
const dezSchema = dezerialize(schema, {
|
|
671
|
+
originalShape: stateObj.schemaContent
|
|
672
|
+
});
|
|
671
673
|
const parsed = dezSchema.safeParse(v);
|
|
672
674
|
|
|
673
675
|
if (schema.type === 'object') {
|