@signalium/query 1.0.14 → 1.0.15
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 +7 -0
- package/dist/cjs/development/index.js +9 -0
- package/dist/cjs/development/index.js.map +1 -1
- package/dist/cjs/production/index.js +9 -0
- package/dist/cjs/production/index.js.map +1 -1
- package/dist/esm/development/index.js +9 -0
- package/dist/esm/development/index.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/production/index.js +9 -0
- package/dist/esm/production/index.js.map +1 -1
- package/dist/esm/proxy.d.ts +4 -2
- package/dist/esm/proxy.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -698,6 +698,8 @@ const noopWarn = () => {
|
|
|
698
698
|
const entries$1 = Object.entries;
|
|
699
699
|
const isArray = Array.isArray;
|
|
700
700
|
const PROXY_ID = /* @__PURE__ */ new WeakMap();
|
|
701
|
+
class Entity {
|
|
702
|
+
}
|
|
701
703
|
function parseUnionValue(valueType, value, unionDef, path, warn = noopWarn) {
|
|
702
704
|
if (valueType === Mask.ARRAY) {
|
|
703
705
|
const shape = unionDef.shape[ARRAY_KEY];
|
|
@@ -854,6 +856,9 @@ function parseValue(value, propDef, path, skipFallbacks = false, warn = noopWarn
|
|
|
854
856
|
if (valueType === Mask.ARRAY) {
|
|
855
857
|
return parseArrayValue(value, propDef.shape, path, warn);
|
|
856
858
|
}
|
|
859
|
+
if ((propMask & Mask.RECORD) !== 0) {
|
|
860
|
+
return parseRecordValue(value, propDef.shape, path, warn);
|
|
861
|
+
}
|
|
857
862
|
return parseObjectValue(value, propDef, path, warn);
|
|
858
863
|
}
|
|
859
864
|
}
|
|
@@ -879,6 +884,9 @@ function createEntityProxy(id, entityRecord, def, entityRelay, scopeOwner, warn
|
|
|
879
884
|
});
|
|
880
885
|
let proxy;
|
|
881
886
|
const handler = {
|
|
887
|
+
getPrototypeOf() {
|
|
888
|
+
return Entity.prototype;
|
|
889
|
+
},
|
|
882
890
|
get(target, prop) {
|
|
883
891
|
if (prop === "toJSON") {
|
|
884
892
|
return toJSON;
|
|
@@ -2957,6 +2965,7 @@ function mutation(mutationDefinitionBuilder) {
|
|
|
2957
2965
|
}
|
|
2958
2966
|
export {
|
|
2959
2967
|
ARRAY_KEY,
|
|
2968
|
+
Entity,
|
|
2960
2969
|
Mask,
|
|
2961
2970
|
MemoryEvictionManager,
|
|
2962
2971
|
NetworkManager,
|