@orion-js/resolvers 4.0.0-alpha.3 → 4.0.0-next.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/dist/index.cjs +3 -3
- package/dist/index.d.ts +3 -29
- package/dist/index.js +3 -3
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1635,7 +1635,7 @@ __export(exports_src, {
|
|
|
1635
1635
|
});
|
|
1636
1636
|
module.exports = __toCommonJS(exports_src);
|
|
1637
1637
|
|
|
1638
|
-
//
|
|
1638
|
+
// node_modules/@orion-js/helpers/dist/index.js
|
|
1639
1639
|
var import_node_module = require("node:module");
|
|
1640
1640
|
var import_crypto = __toESM(require("crypto"));
|
|
1641
1641
|
var __create2 = Object.create;
|
|
@@ -2481,7 +2481,7 @@ function getSchema_default(resolverParams) {
|
|
|
2481
2481
|
return schema;
|
|
2482
2482
|
}
|
|
2483
2483
|
|
|
2484
|
-
//
|
|
2484
|
+
// node_modules/@orion-js/schema/dist/index.js
|
|
2485
2485
|
var __create3 = Object.create;
|
|
2486
2486
|
var __getProtoOf3 = Object.getPrototypeOf;
|
|
2487
2487
|
var __defProp3 = Object.defineProperty;
|
|
@@ -5703,7 +5703,7 @@ function cleanParams_default(rawParams) {
|
|
|
5703
5703
|
return params;
|
|
5704
5704
|
}
|
|
5705
5705
|
|
|
5706
|
-
//
|
|
5706
|
+
// node_modules/@orion-js/cache/dist/index.js
|
|
5707
5707
|
var __create4 = Object.create;
|
|
5708
5708
|
var __getProtoOf4 = Object.getPrototypeOf;
|
|
5709
5709
|
var __defProp4 = Object.defineProperty;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,34 +1,8 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
expires?: Date;
|
|
7
|
-
}
|
|
8
|
-
export interface SetCacheOptions {
|
|
9
|
-
ttl?: number;
|
|
10
|
-
}
|
|
11
|
-
export interface GetCacheOptions {
|
|
12
|
-
ttl?: number;
|
|
13
|
-
fallback?(): Promise<any>;
|
|
14
|
-
}
|
|
15
|
-
export interface OrionCache {
|
|
16
|
-
/**
|
|
17
|
-
* Save data in the cache
|
|
18
|
-
*/
|
|
19
|
-
set(key: string, value: any, options?: SetCacheOptions): Promise<void> | void;
|
|
20
|
-
/**
|
|
21
|
-
* Get data from the cache
|
|
22
|
-
*/
|
|
23
|
-
get(key: string, options?: GetCacheOptions): Promise<StoredCacheData>;
|
|
24
|
-
/**
|
|
25
|
-
* Removes data from the cache
|
|
26
|
-
*/
|
|
27
|
-
invalidate(key: string): Promise<void> | void;
|
|
28
|
-
}
|
|
29
|
-
export type Blackbox = {
|
|
30
|
-
[name: string]: any;
|
|
31
|
-
};
|
|
3
|
+
import { OrionCache } from '@orion-js/cache';
|
|
4
|
+
import { Blackbox } from '@orion-js/schema';
|
|
5
|
+
|
|
32
6
|
export type GlobalResolverResolve = (params: any, viewer: any, info?: any) => Promise<any>;
|
|
33
7
|
export type ModelResolverResolve = (item: any, params: any, viewer: any, info?: any) => Promise<any>;
|
|
34
8
|
export type GlobalCheckPermissions = (params: any, viewer: any, info?: any) => Promise<string | void>;
|
package/dist/index.js
CHANGED
|
@@ -1597,7 +1597,7 @@ var require_isNil2 = __commonJS((exports, module) => {
|
|
|
1597
1597
|
module.exports = isNil;
|
|
1598
1598
|
});
|
|
1599
1599
|
|
|
1600
|
-
//
|
|
1600
|
+
// node_modules/@orion-js/helpers/dist/index.js
|
|
1601
1601
|
import { createRequire } from "node:module";
|
|
1602
1602
|
import crypto from "crypto";
|
|
1603
1603
|
var __create2 = Object.create;
|
|
@@ -2443,7 +2443,7 @@ function getSchema_default(resolverParams) {
|
|
|
2443
2443
|
return schema;
|
|
2444
2444
|
}
|
|
2445
2445
|
|
|
2446
|
-
//
|
|
2446
|
+
// node_modules/@orion-js/schema/dist/index.js
|
|
2447
2447
|
var __create3 = Object.create;
|
|
2448
2448
|
var __getProtoOf3 = Object.getPrototypeOf;
|
|
2449
2449
|
var __defProp3 = Object.defineProperty;
|
|
@@ -5665,7 +5665,7 @@ function cleanParams_default(rawParams) {
|
|
|
5665
5665
|
return params;
|
|
5666
5666
|
}
|
|
5667
5667
|
|
|
5668
|
-
//
|
|
5668
|
+
// node_modules/@orion-js/cache/dist/index.js
|
|
5669
5669
|
var __create4 = Object.create;
|
|
5670
5670
|
var __getProtoOf4 = Object.getPrototypeOf;
|
|
5671
5671
|
var __defProp4 = Object.defineProperty;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orion-js/resolvers",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-next.0",
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dev": "bun --watch src/index.ts"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@orion-js/cache": "^4.0.0-
|
|
22
|
-
"@orion-js/helpers": "^4.0.0-
|
|
23
|
-
"@orion-js/schema": "^4.0.0-
|
|
21
|
+
"@orion-js/cache": "^4.0.0-next.0",
|
|
22
|
+
"@orion-js/helpers": "^4.0.0-next.0",
|
|
23
|
+
"@orion-js/schema": "^4.0.0-next.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/lodash": "4.14.176",
|