@envelop/parser-cache 5.0.0-alpha-a07c198b.0 → 5.0.0-alpha-20220902173253-1ce5e1b0
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/README.md +5 -0
- package/cjs/index.js +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -4
- package/typings/index.d.cts +1 -1
- package/typings/index.d.ts +1 -1
package/README.md
CHANGED
|
@@ -13,10 +13,15 @@ yarn add @envelop/parser-cache
|
|
|
13
13
|
## Usage Example
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
|
+
import { parse, validate, execute, subscribe } from 'graphql'
|
|
16
17
|
import { envelop } from '@envelop/core'
|
|
17
18
|
import { useParserCache } from '@envelop/parser-cache'
|
|
18
19
|
|
|
19
20
|
const getEnveloped = envelop({
|
|
21
|
+
parse,
|
|
22
|
+
validate,
|
|
23
|
+
execute,
|
|
24
|
+
subscribe,
|
|
20
25
|
plugins: [
|
|
21
26
|
// ... other plugins ...
|
|
22
27
|
useParserCache({
|
package/cjs/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useParserCache = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const graphql_1 = require("
|
|
5
|
+
const graphql_1 = require("graphql");
|
|
6
6
|
const lru_cache_1 = tslib_1.__importDefault(require("lru-cache"));
|
|
7
7
|
const DEFAULT_MAX = 1000;
|
|
8
8
|
const DEFAULT_TTL = 3600000;
|
package/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/parser-cache",
|
|
3
|
-
"version": "5.0.0-alpha-
|
|
3
|
+
"version": "5.0.0-alpha-20220902173253-1ce5e1b0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@envelop/core": "3.0.0-alpha-
|
|
7
|
-
"
|
|
6
|
+
"@envelop/core": "3.0.0-alpha-20220902173253-1ce5e1b0",
|
|
7
|
+
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"lru-cache": "^6.0.0"
|
|
10
|
+
"lru-cache": "^6.0.0",
|
|
11
|
+
"tslib": "^2.4.0"
|
|
11
12
|
},
|
|
12
13
|
"repository": {
|
|
13
14
|
"type": "git",
|
package/typings/index.d.cts
CHANGED
package/typings/index.d.ts
CHANGED