@unchainedshop/api 2.5.7 → 2.5.9
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.
|
@@ -5,11 +5,7 @@ export const DeliveryProvider = {
|
|
|
5
5
|
const Interface = modules.delivery.findInterface(obj);
|
|
6
6
|
if (!Interface)
|
|
7
7
|
return null;
|
|
8
|
-
return
|
|
9
|
-
_id: Interface.key,
|
|
10
|
-
label: Interface.label,
|
|
11
|
-
version: Interface.version,
|
|
12
|
-
};
|
|
8
|
+
return Interface;
|
|
13
9
|
},
|
|
14
10
|
async isActive(deliveryProvider, _, requestContext) {
|
|
15
11
|
const { modules } = requestContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery-provider-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/delivery-provider-types.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAM5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAiCvE,MAAM,CAAC,MAAM,gBAAgB,GAAgC;IAC3D,SAAS,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE;QAC3B,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"delivery-provider-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/delivery-provider-types.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAM5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAiCvE,MAAM,CAAC,MAAM,gBAAgB,GAAgC;IAC3D,SAAS,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE;QAC3B,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QACtD,IAAI,CAAC,SAAS;YAAE,OAAO,IAAI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O,IAAI,CAAC;QAEnD,MAAM,OAAO,GAAG,eAAe,CAAC,gBAAgB,EAAE,CAAC;QAEnD,MAAM,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,CAG/C,CAAC;QAEF,OAAO;YACL,GAAG,EAAE,MAAM;iBACR,UAAU,CAAC,QAAQ,CAAC;iBACpB,MAAM,CAAC,CAAC,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;iBACrF,MAAM,CAAC,KAAK,CAAC;YAChB,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,YAAY,EAAE,UAAU,CAAC,QAAQ;YACjC,WAAW,EAAE,OAAO;YACpB,SAAS,EAAE,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;YAC/B,UAAU,EAAE,WAAW;SACxB,CAAC;IACJ,CAAC;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unchainedshop/api",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.9",
|
|
4
4
|
"main": "lib/api-index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./lib/api-index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"homepage": "https://github.com/unchainedshop/unchained#readme",
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@apollo/server": "^4.9.5",
|
|
44
|
-
"cookie": "^0.
|
|
44
|
+
"cookie": "^0.6.0",
|
|
45
45
|
"graphql": "^16.6.0"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@metamask/eth-sig-util": "^7.0.0",
|
|
52
|
-
"@unchainedshop/core": "^2.5.
|
|
53
|
-
"@unchainedshop/events": "^2.5.
|
|
54
|
-
"@unchainedshop/logger": "^2.5.
|
|
55
|
-
"@unchainedshop/roles": "^2.5.
|
|
56
|
-
"@unchainedshop/utils": "^2.5.
|
|
52
|
+
"@unchainedshop/core": "^2.5.9",
|
|
53
|
+
"@unchainedshop/events": "^2.5.9",
|
|
54
|
+
"@unchainedshop/logger": "^2.5.9",
|
|
55
|
+
"@unchainedshop/roles": "^2.5.9",
|
|
56
|
+
"@unchainedshop/utils": "^2.5.9",
|
|
57
57
|
"accounting": "0.4.1",
|
|
58
58
|
"dataloader": "^2.2.2",
|
|
59
59
|
"graphql-scalars": "^1.22.4",
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
"lru-cache": "^10.0.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@types/graphql-upload": "^16.0.
|
|
67
|
-
"@types/locale": "^0.1.
|
|
68
|
-
"@types/node": "^
|
|
69
|
-
"@unchainedshop/types": "^2.5.
|
|
66
|
+
"@types/graphql-upload": "^16.0.5",
|
|
67
|
+
"@types/locale": "^0.1.4",
|
|
68
|
+
"@types/node": "^20.9.0",
|
|
69
|
+
"@unchainedshop/types": "^2.5.9",
|
|
70
70
|
"express": "^4.18.2",
|
|
71
71
|
"graphql": "^16.8.1",
|
|
72
72
|
"jest": "^29.7.0",
|
|
@@ -40,14 +40,8 @@ export interface DeliveryProviderHelperTypes {
|
|
|
40
40
|
export const DeliveryProvider: DeliveryProviderHelperTypes = {
|
|
41
41
|
interface(obj, _, { modules }) {
|
|
42
42
|
const Interface = modules.delivery.findInterface(obj);
|
|
43
|
-
|
|
44
43
|
if (!Interface) return null;
|
|
45
|
-
|
|
46
|
-
return {
|
|
47
|
-
_id: Interface.key,
|
|
48
|
-
label: Interface.label,
|
|
49
|
-
version: Interface.version,
|
|
50
|
-
};
|
|
44
|
+
return Interface;
|
|
51
45
|
},
|
|
52
46
|
|
|
53
47
|
async isActive(deliveryProvider, _, requestContext) {
|