@mearie/core 0.2.0 → 0.2.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/dist/index.cjs +3 -4
- package/dist/index.mjs +3 -4
- package/package.json +20 -10
package/dist/index.cjs
CHANGED
|
@@ -539,10 +539,9 @@ const normalize = (schemaMeta, selections, storage, data, variables, accessor) =
|
|
|
539
539
|
if (inner !== SKIP && !isEntityLink(inner)) mergeFields(fields, inner);
|
|
540
540
|
}
|
|
541
541
|
if (entityMeta && storageKey !== null) {
|
|
542
|
-
storage[storageKey]
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
};
|
|
542
|
+
const existing = storage[storageKey];
|
|
543
|
+
if (existing) mergeFields(existing, fields);
|
|
544
|
+
else storage[storageKey] = fields;
|
|
546
545
|
return { [EntityLinkKey]: storageKey };
|
|
547
546
|
}
|
|
548
547
|
return fields;
|
package/dist/index.mjs
CHANGED
|
@@ -538,10 +538,9 @@ const normalize = (schemaMeta, selections, storage, data, variables, accessor) =
|
|
|
538
538
|
if (inner !== SKIP && !isEntityLink(inner)) mergeFields(fields, inner);
|
|
539
539
|
}
|
|
540
540
|
if (entityMeta && storageKey !== null) {
|
|
541
|
-
storage[storageKey]
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
};
|
|
541
|
+
const existing = storage[storageKey];
|
|
542
|
+
if (existing) mergeFields(existing, fields);
|
|
543
|
+
else storage[storageKey] = fields;
|
|
545
544
|
return { [EntityLinkKey]: storageKey };
|
|
546
545
|
}
|
|
547
546
|
return fields;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mearie/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Type-safe, zero-overhead GraphQL client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
@@ -28,14 +28,24 @@
|
|
|
28
28
|
"type": "module",
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/index.d.mts",
|
|
33
|
+
"default": "./dist/index.mjs"
|
|
34
|
+
},
|
|
35
|
+
"require": {
|
|
36
|
+
"types": "./dist/index.d.cts",
|
|
37
|
+
"default": "./dist/index.cjs"
|
|
38
|
+
}
|
|
34
39
|
},
|
|
35
40
|
"./stream": {
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./dist/stream/index.d.mts",
|
|
43
|
+
"default": "./dist/stream/index.mjs"
|
|
44
|
+
},
|
|
45
|
+
"require": {
|
|
46
|
+
"types": "./dist/stream/index.d.cts",
|
|
47
|
+
"default": "./dist/stream/index.cjs"
|
|
48
|
+
}
|
|
39
49
|
},
|
|
40
50
|
"./package.json": "./package.json"
|
|
41
51
|
},
|
|
@@ -45,7 +55,7 @@
|
|
|
45
55
|
"README.md"
|
|
46
56
|
],
|
|
47
57
|
"dependencies": {
|
|
48
|
-
"@mearie/shared": "0.2.
|
|
58
|
+
"@mearie/shared": "0.2.1"
|
|
49
59
|
},
|
|
50
60
|
"devDependencies": {
|
|
51
61
|
"tsdown": "^0.20.3",
|
|
@@ -64,6 +74,6 @@
|
|
|
64
74
|
"typecheck": "tsc"
|
|
65
75
|
},
|
|
66
76
|
"main": "./dist/index.cjs",
|
|
67
|
-
"module": "./dist/index.
|
|
68
|
-
"types": "./dist/index.d.
|
|
77
|
+
"module": "./dist/index.mjs",
|
|
78
|
+
"types": "./dist/index.d.mts"
|
|
69
79
|
}
|