jedison 1.22.1 → 1.22.2
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 +4 -0
- package/dist/cjs/jedison.cjs +1 -1
- package/dist/cjs/jedison.cjs.map +1 -1
- package/dist/esm/jedison.js +10 -1
- package/dist/esm/jedison.js.map +1 -1
- package/dist/umd/jedison.umd.js +1 -1
- package/dist/umd/jedison.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/jedison.js
CHANGED
|
@@ -2922,6 +2922,15 @@ class InstanceIfThenElse extends Instance {
|
|
|
2922
2922
|
}
|
|
2923
2923
|
}
|
|
2924
2924
|
class InstanceMultiple extends Instance {
|
|
2925
|
+
// A Multiple's real value always comes from resolving the active branch
|
|
2926
|
+
// (see switchInstance()) - never from its own wrapper schema. The base
|
|
2927
|
+
// class's type-based placeholder (e.g. {} when the wrapper also declares
|
|
2928
|
+
// "type": "object" alongside oneOf, a common x-discriminator pattern) is
|
|
2929
|
+
// not real data, but prepare()/switchInstance() below can't tell it apart
|
|
2930
|
+
// from one - propagating it stomps the freshly built branch's own
|
|
2931
|
+
// x-defaultProperties-activated children right after creation.
|
|
2932
|
+
setInitialValue() {
|
|
2933
|
+
}
|
|
2925
2934
|
prepare() {
|
|
2926
2935
|
this.instances = [];
|
|
2927
2936
|
this.activeInstance = null;
|
|
@@ -7498,7 +7507,7 @@ class JsonWalker {
|
|
|
7498
7507
|
}
|
|
7499
7508
|
}
|
|
7500
7509
|
}
|
|
7501
|
-
const version = "1.22.
|
|
7510
|
+
const version = "1.22.2";
|
|
7502
7511
|
class Jedison extends EventEmitter {
|
|
7503
7512
|
/**
|
|
7504
7513
|
* Creates a Jedison instance.
|