@envelop/persisted-operations 5.0.0-alpha-4ba70ab.0 → 5.0.0-alpha-d0d0776.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.
- package/index.js +1 -2
- package/index.mjs +1 -2
- package/package.json +19 -7
package/index.js
CHANGED
|
@@ -26,8 +26,7 @@ class AggregatedStore {
|
|
|
26
26
|
|
|
27
27
|
class InMemoryStore {
|
|
28
28
|
constructor(options) {
|
|
29
|
-
|
|
30
|
-
this.storeData = (_a = options === null || options === void 0 ? void 0 : options.initialData) !== null && _a !== void 0 ? _a : new Map();
|
|
29
|
+
this.storeData = options?.initialData ?? new Map();
|
|
31
30
|
}
|
|
32
31
|
get(operationId) {
|
|
33
32
|
return this.storeData.get(operationId) || undefined;
|
package/index.mjs
CHANGED
|
@@ -22,8 +22,7 @@ class AggregatedStore {
|
|
|
22
22
|
|
|
23
23
|
class InMemoryStore {
|
|
24
24
|
constructor(options) {
|
|
25
|
-
|
|
26
|
-
this.storeData = (_a = options === null || options === void 0 ? void 0 : options.initialData) !== null && _a !== void 0 ? _a : new Map();
|
|
25
|
+
this.storeData = options?.initialData ?? new Map();
|
|
27
26
|
}
|
|
28
27
|
get(operationId) {
|
|
29
28
|
return this.storeData.get(operationId) || undefined;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/persisted-operations",
|
|
3
|
-
"version": "5.0.0-alpha-
|
|
3
|
+
"version": "5.0.0-alpha-d0d0776.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@envelop/core": "
|
|
6
|
+
"@envelop/core": "3.0.0-alpha-d0d0776.0",
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/
|
|
11
|
+
"url": "https://github.com/n1ru4l/envelop.git",
|
|
12
12
|
"directory": "packages/plugins/persisted-operations"
|
|
13
13
|
},
|
|
14
14
|
"author": "Dotan Simha <dotansimha@gmail.com>",
|
|
@@ -21,12 +21,24 @@
|
|
|
21
21
|
},
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"require":
|
|
25
|
-
|
|
24
|
+
"require": {
|
|
25
|
+
"default": "./index.js",
|
|
26
|
+
"types": "./index.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"import": {
|
|
29
|
+
"default": "./index.mjs",
|
|
30
|
+
"types": "./index.d.ts"
|
|
31
|
+
}
|
|
26
32
|
},
|
|
27
33
|
"./*": {
|
|
28
|
-
"require":
|
|
29
|
-
|
|
34
|
+
"require": {
|
|
35
|
+
"default": "./*.js",
|
|
36
|
+
"types": "./*.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"import": {
|
|
39
|
+
"default": "./*.mjs",
|
|
40
|
+
"types": "./*.d.ts"
|
|
41
|
+
}
|
|
30
42
|
},
|
|
31
43
|
"./package.json": "./package.json"
|
|
32
44
|
}
|