@unchainedshop/plugins 3.0.0-rc4 → 3.0.0-rc6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unchainedshop/plugins",
3
- "version": "3.0.0-rc4",
3
+ "version": "3.0.0-rc6",
4
4
  "main": "lib/plugins-index.js",
5
5
  "types": "lib/plugins-index.d.ts",
6
6
  "exports": {
@@ -32,31 +32,31 @@
32
32
  },
33
33
  "homepage": "https://github.com/unchainedshop/unchained#readme",
34
34
  "dependencies": {
35
- "@unchainedshop/api": "^3.0.0-rc4",
36
- "@unchainedshop/core-delivery": "^3.0.0-rc4",
37
- "@unchainedshop/core-enrollments": "^3.0.0-rc4",
38
- "@unchainedshop/core-orders": "^3.0.0-rc4",
39
- "@unchainedshop/core-payment": "^3.0.0-rc4",
40
- "@unchainedshop/core-products": "^3.0.0-rc4",
41
- "@unchainedshop/core-warehousing": "^3.0.0-rc4",
42
- "@unchainedshop/core-worker": "^3.0.0-rc4",
43
- "@unchainedshop/events": "^3.0.0-rc4",
44
- "@unchainedshop/file-upload": "^3.0.0-rc4",
45
- "@unchainedshop/logger": "^3.0.0-rc4",
46
- "@unchainedshop/utils": "^3.0.0-rc4"
35
+ "@breejs/later": "^4.2.0",
36
+ "@unchainedshop/api": "^3.0.0-rc6",
37
+ "@unchainedshop/core-delivery": "^3.0.0-rc6",
38
+ "@unchainedshop/core-enrollments": "^3.0.0-rc6",
39
+ "@unchainedshop/core-orders": "^3.0.0-rc6",
40
+ "@unchainedshop/core-payment": "^3.0.0-rc6",
41
+ "@unchainedshop/core-products": "^3.0.0-rc6",
42
+ "@unchainedshop/core-warehousing": "^3.0.0-rc6",
43
+ "@unchainedshop/core-worker": "^3.0.0-rc6",
44
+ "@unchainedshop/events": "^3.0.0-rc6",
45
+ "@unchainedshop/file-upload": "^3.0.0-rc6",
46
+ "@unchainedshop/logger": "^3.0.0-rc6",
47
+ "@unchainedshop/utils": "^3.0.0-rc6",
48
+ "event-iterator": "^2.0.0",
49
+ "JSONStream": "^1.3.5"
47
50
  },
48
- "optionalDependencies": {
51
+ "peerDependencies": {
49
52
  "@aws-sdk/client-eventbridge": "^3.714.0",
50
- "@breejs/later": "^4.2.0",
51
53
  "@paypal/checkout-server-sdk": "^1.0.3",
52
54
  "@redis/client": "^1.6.0",
53
55
  "bip32": "^4.0.0",
54
56
  "bitcoinjs-lib": "^6.1.7",
55
57
  "ethers": "^6.13.4",
56
- "event-iterator": "^2.0.0",
57
58
  "expiry-map": "^2.0.0",
58
- "express": "^4.21.2",
59
- "JSONStream": "^1.3.5",
59
+ "express": "^5.0.1",
60
60
  "mime-types": "^2.1.35",
61
61
  "minio": "^8.0.2",
62
62
  "nodemailer": "^6.9.16",
@@ -69,10 +69,90 @@
69
69
  "web-push": "^3.6.7",
70
70
  "xml-js": "^1.6.11"
71
71
  },
72
+ "peerDependenciesMeta": {
73
+ "@aws-sdk/client-eventbridge": {
74
+ "optional": true
75
+ },
76
+ "@paypal/checkout-server-sdk": {
77
+ "optional": true
78
+ },
79
+ "@redis/client": {
80
+ "optional": true
81
+ },
82
+ "bip32": {
83
+ "optional": true
84
+ },
85
+ "bitcoinjs-lib": {
86
+ "optional": true
87
+ },
88
+ "ethers": {
89
+ "optional": true
90
+ },
91
+ "expiry-map": {
92
+ "optional": true
93
+ },
94
+ "express": {
95
+ "optional": true
96
+ },
97
+ "mime-types": {
98
+ "optional": true
99
+ },
100
+ "minio": {
101
+ "optional": true
102
+ },
103
+ "nodemailer": {
104
+ "optional": true
105
+ },
106
+ "open": {
107
+ "optional": true
108
+ },
109
+ "p-memoize": {
110
+ "optional": true
111
+ },
112
+ "postfinancecheckout": {
113
+ "optional": true
114
+ },
115
+ "stripe": {
116
+ "optional": true
117
+ },
118
+ "tiny-secp256k1": {
119
+ "optional": true
120
+ },
121
+ "twilio": {
122
+ "optional": true
123
+ },
124
+ "web-push": {
125
+ "optional": true
126
+ },
127
+ "xml-js": {
128
+ "optional": true
129
+ }
130
+ },
72
131
  "devDependencies": {
132
+ "@aws-sdk/client-eventbridge": "^3.714.0",
133
+ "@breejs/later": "^4.2.0",
134
+ "@paypal/checkout-server-sdk": "^1.0.3",
135
+ "@redis/client": "^1.6.0",
136
+ "@types/express": "^5.0.0",
73
137
  "@types/node": "^22.10.2",
138
+ "bip32": "^4.0.0",
139
+ "bitcoinjs-lib": "^6.1.7",
140
+ "ethers": "^6.13.4",
141
+ "expiry-map": "^2.0.0",
142
+ "express": "^5.0.1",
74
143
  "jest": "^29.7.0",
144
+ "mime-types": "^2.1.35",
145
+ "minio": "^8.0.3",
146
+ "nodemailer": "^6.9.16",
147
+ "open": "^10.1.0",
148
+ "p-memoize": "^7.1.1",
149
+ "postfinancecheckout": "^4.5.0",
150
+ "stripe": "^17.4.0",
151
+ "tiny-secp256k1": "^2.2.3",
75
152
  "ts-jest": "^29.2.5",
76
- "typescript": "^5.7.2"
153
+ "twilio": "^5.4.0",
154
+ "typescript": "^5.7.2",
155
+ "web-push": "^3.6.7",
156
+ "xml-js": "^1.6.11"
77
157
  }
78
158
  }
@@ -1,11 +0,0 @@
1
- export declare const Security: {
2
- NONE: string;
3
- STATIC_SIGN: string;
4
- DYNAMIC_SIGN: string;
5
- };
6
- declare const generateSignature: ({ security, signKey }: {
7
- security: "" | "static-sign" | "dynamic-sign";
8
- signKey: string;
9
- }) => (...parts: any[]) => Promise<string>;
10
- export default generateSignature;
11
- //# sourceMappingURL=generateSignature%20copy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generateSignature copy.d.ts","sourceRoot":"","sources":["../../../src/payment/datatrans-v2/generateSignature copy.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAEF,QAAA,MAAM,iBAAiB,0BACG;IAAE,QAAQ,EAAE,EAAE,GAAG,aAAa,GAAG,cAAc,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,yCAkBzF,CAAC;AAEJ,eAAe,iBAAiB,CAAC"}
@@ -1,19 +0,0 @@
1
- export const Security = {
2
- NONE: '',
3
- STATIC_SIGN: 'static-sign',
4
- DYNAMIC_SIGN: 'dynamic-sign',
5
- };
6
- const generateSignature = ({ security, signKey }) => async (...parts) => {
7
- // https://docs.datatrans.ch/docs/security-sign
8
- if (security.toLowerCase() === Security.STATIC_SIGN)
9
- return signKey;
10
- if (security.toLowerCase() === Security.NONE)
11
- return '';
12
- const resultString = parts.filter(Boolean).join('');
13
- const signKeyInBytes = Buffer.from(signKey, 'hex');
14
- const key = await crypto.subtle.importKey('raw', signKeyInBytes, { name: 'HMAC', hash: 'SHA-256' }, false, ['sign', 'verify']);
15
- const signature = await crypto.subtle.sign('HMAC', key, new TextEncoder().encode(resultString));
16
- return btoa(String.fromCharCode(...new Uint8Array(signature)));
17
- };
18
- export default generateSignature;
19
- //# sourceMappingURL=generateSignature%20copy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generateSignature copy.js","sourceRoot":"","sources":["../../../src/payment/datatrans-v2/generateSignature copy.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,EAAE;IACR,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;CAC7B,CAAC;AAEF,MAAM,iBAAiB,GACrB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAsE,EAAE,EAAE,CAC9F,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE;IACjB,+CAA+C;IAC/C,IAAI,QAAQ,CAAC,WAAW,EAAE,KAAK,QAAQ,CAAC,WAAW;QAAE,OAAO,OAAO,CAAC;IACpE,IAAI,QAAQ,CAAC,WAAW,EAAE,KAAK,QAAQ,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IAExD,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAEnD,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,SAAS,CACvC,KAAK,EACL,cAAc,EACd,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,EACjC,KAAK,EACL,CAAC,MAAM,EAAE,QAAQ,CAAC,CACnB,CAAC;IACF,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;IAChG,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACjE,CAAC,CAAC;AAEJ,eAAe,iBAAiB,CAAC"}