@unchainedshop/plugins 1.1.4 → 1.1.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.
Files changed (69) hide show
  1. package/lib/files/gridfs/gridfs-adapter.js +1 -1
  2. package/lib/files/gridfs/gridfs-adapter.js.map +1 -1
  3. package/lib/files/gridfs/gridfs-webhook.d.ts +2 -1
  4. package/lib/files/gridfs/gridfs-webhook.js +3 -3
  5. package/lib/files/gridfs/gridfs-webhook.js.map +1 -1
  6. package/lib/files/minio/minio-webhook.d.ts +2 -1
  7. package/lib/files/minio/minio-webhook.js +31 -29
  8. package/lib/files/minio/minio-webhook.js.map +1 -1
  9. package/lib/payment/apple-iap/adapter.d.ts +2 -1
  10. package/lib/payment/apple-iap/adapter.js +94 -92
  11. package/lib/payment/apple-iap/adapter.js.map +1 -1
  12. package/lib/payment/apple-iap/db/AppleTransactionsCollection.d.ts +2 -2
  13. package/lib/payment/apple-iap/index.d.ts +2 -1
  14. package/lib/payment/apple-iap/index.js +2 -1
  15. package/lib/payment/apple-iap/index.js.map +1 -1
  16. package/lib/payment/bity/adapter.d.ts +2 -1
  17. package/lib/payment/bity/adapter.js +50 -48
  18. package/lib/payment/bity/adapter.js.map +1 -1
  19. package/lib/payment/bity/db/BityCredentialsCollection.d.ts +2 -2
  20. package/lib/payment/bity/index.d.ts +2 -1
  21. package/lib/payment/bity/index.js +2 -1
  22. package/lib/payment/bity/index.js.map +1 -1
  23. package/lib/payment/cryptopay.d.ts +2 -1
  24. package/lib/payment/cryptopay.js +60 -58
  25. package/lib/payment/cryptopay.js.map +1 -1
  26. package/lib/payment/datatrans-v2/index.d.ts +2 -1
  27. package/lib/payment/datatrans-v2/index.js +2 -1
  28. package/lib/payment/datatrans-v2/index.js.map +1 -1
  29. package/lib/payment/datatrans-v2/middleware.d.ts +2 -1
  30. package/lib/payment/datatrans-v2/middleware.js +100 -98
  31. package/lib/payment/datatrans-v2/middleware.js.map +1 -1
  32. package/lib/payment/datatrans-v2/roundedAmountFromOrder.d.ts +0 -2
  33. package/lib/payment/paypal-checkout.js +1 -1
  34. package/lib/payment/paypal-checkout.js.map +1 -1
  35. package/lib/payment/postfinance-checkout/index.d.ts +2 -1
  36. package/lib/payment/postfinance-checkout/index.js +2 -1
  37. package/lib/payment/postfinance-checkout/index.js.map +1 -1
  38. package/lib/payment/postfinance-checkout/middleware.d.ts +2 -1
  39. package/lib/payment/postfinance-checkout/middleware.js +36 -34
  40. package/lib/payment/postfinance-checkout/middleware.js.map +1 -1
  41. package/lib/payment/postfinance-checkout/utils.d.ts +0 -1
  42. package/lib/payment/stripe.d.ts +2 -1
  43. package/lib/payment/stripe.js +63 -60
  44. package/lib/payment/stripe.js.map +1 -1
  45. package/lib/pricing/product-price-cryptopay.d.ts +2 -1
  46. package/lib/pricing/product-price-cryptopay.js +20 -18
  47. package/lib/pricing/product-price-cryptopay.js.map +1 -1
  48. package/lib/pricing/utils/cache.d.ts +1 -2
  49. package/lib/worker/ZombieKillerWorker.js.map +1 -1
  50. package/license +274 -0
  51. package/package.json +20 -19
  52. package/src/files/gridfs/gridfs-adapter.ts +1 -1
  53. package/src/files/gridfs/gridfs-webhook.js +42 -41
  54. package/src/files/minio/minio-webhook.js +34 -31
  55. package/src/payment/apple-iap/adapter.ts +113 -110
  56. package/src/payment/apple-iap/index.ts +2 -1
  57. package/src/payment/bity/adapter.ts +51 -49
  58. package/src/payment/bity/index.ts +2 -1
  59. package/src/payment/cryptopay.ts +69 -67
  60. package/src/payment/datatrans-v2/index.ts +3 -1
  61. package/src/payment/datatrans-v2/middleware.ts +130 -124
  62. package/src/payment/paypal-checkout.ts +1 -1
  63. package/src/payment/postfinance-checkout/index.ts +3 -1
  64. package/src/payment/postfinance-checkout/middleware.ts +42 -40
  65. package/src/payment/stripe.ts +82 -74
  66. package/src/pricing/product-price-cryptopay.ts +20 -18
  67. package/src/worker/ZombieKillerWorker.ts +5 -5
  68. package/tsconfig.build.json +13 -5
  69. package/lib/worker/MessageWorker.d.ts +0 -10
@@ -6,7 +6,9 @@
6
6
  "esModuleInterop": true,
7
7
  "experimentalDecorators": true,
8
8
  "forceConsistentCasingInFileNames": true,
9
- "lib": ["esnext"],
9
+ "lib": [
10
+ "esnext"
11
+ ],
10
12
  "module": "esnext",
11
13
  "moduleResolution": "node",
12
14
  "noImplicitReturns": true,
@@ -16,11 +18,17 @@
16
18
  "skipLibCheck": true,
17
19
  "sourceMap": true,
18
20
  "target": "esnext",
19
- "types": ["node"],
21
+ "types": [
22
+ "node"
23
+ ],
20
24
  "baseUrl": ".", // This must be specified if "paths" is.
21
25
  "paths": {
22
- "meteor/unchained:*": ["node_modules/@unchainedshop/types/index.d.ts"]
26
+ "@unchainedshop/*": [
27
+ "node_modules/@unchainedshop/types/index.d.ts"
28
+ ]
23
29
  }
24
30
  },
25
- "include": ["src"]
26
- }
31
+ "include": [
32
+ "src"
33
+ ]
34
+ }
@@ -1,10 +0,0 @@
1
- import { IWorkerAdapter, Work } from '@unchainedshop/types/worker';
2
- export declare const messagingLogger: import("winston").Logger;
3
- export declare const MessageWorker: IWorkerAdapter<{
4
- template: string;
5
- _id?: string;
6
- [x: string]: any;
7
- }, {
8
- info?: string;
9
- forked?: Array<Work>;
10
- }>;