@agnostack/next-shopify 1.15.0-beta.21 → 1.15.0-beta.23

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 (102) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +9 -8
  3. package/dist/lib/index.d.ts +0 -1
  4. package/dist/lib/index.d.ts.map +1 -1
  5. package/dist/lib/index.js +0 -1
  6. package/dist/lib/index.js.map +1 -1
  7. package/dist/shared/WebCrypto.d.ts.map +1 -1
  8. package/dist/shared/WebCrypto.js +0 -6
  9. package/dist/shared/WebCrypto.js.map +1 -1
  10. package/dist/umd/lib/index.d.ts +0 -1
  11. package/dist/umd/lib/index.d.ts.map +1 -1
  12. package/dist/umd/shared/WebCrypto.d.ts.map +1 -1
  13. package/dist/umd/verification/utils/rawbody.d.ts.map +1 -1
  14. package/dist/umd/verification.js +342 -18
  15. package/dist/umd/verification.js.map +1 -1
  16. package/dist/verification/utils/rawbody.d.ts.map +1 -1
  17. package/dist/verification/utils/rawbody.js +26 -29
  18. package/dist/verification/utils/rawbody.js.map +1 -1
  19. package/node_modules/bytes/History.md +97 -0
  20. package/node_modules/bytes/LICENSE +23 -0
  21. package/node_modules/bytes/Readme.md +152 -0
  22. package/node_modules/bytes/index.js +170 -0
  23. package/node_modules/bytes/package.json +42 -0
  24. package/node_modules/depd/History.md +103 -0
  25. package/node_modules/depd/LICENSE +22 -0
  26. package/node_modules/depd/Readme.md +280 -0
  27. package/node_modules/depd/index.js +538 -0
  28. package/node_modules/depd/lib/browser/index.js +77 -0
  29. package/node_modules/depd/package.json +45 -0
  30. package/node_modules/http-errors/HISTORY.md +180 -0
  31. package/node_modules/http-errors/LICENSE +23 -0
  32. package/node_modules/http-errors/README.md +169 -0
  33. package/node_modules/http-errors/index.js +289 -0
  34. package/node_modules/http-errors/package.json +50 -0
  35. package/node_modules/iconv-lite/Changelog.md +162 -0
  36. package/node_modules/iconv-lite/LICENSE +21 -0
  37. package/node_modules/iconv-lite/README.md +156 -0
  38. package/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
  39. package/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
  40. package/node_modules/iconv-lite/encodings/index.js +22 -0
  41. package/node_modules/iconv-lite/encodings/internal.js +188 -0
  42. package/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
  43. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  44. package/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
  45. package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  46. package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  47. package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  48. package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  49. package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  50. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  51. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
  52. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  53. package/node_modules/iconv-lite/encodings/utf16.js +177 -0
  54. package/node_modules/iconv-lite/encodings/utf7.js +290 -0
  55. package/node_modules/iconv-lite/lib/bom-handling.js +52 -0
  56. package/node_modules/iconv-lite/lib/extend-node.js +217 -0
  57. package/node_modules/iconv-lite/lib/index.d.ts +24 -0
  58. package/node_modules/iconv-lite/lib/index.js +153 -0
  59. package/node_modules/iconv-lite/lib/streams.js +121 -0
  60. package/node_modules/iconv-lite/package.json +46 -0
  61. package/node_modules/inherits/LICENSE +16 -0
  62. package/node_modules/inherits/README.md +42 -0
  63. package/node_modules/inherits/inherits.js +9 -0
  64. package/node_modules/inherits/inherits_browser.js +27 -0
  65. package/node_modules/inherits/package.json +29 -0
  66. package/node_modules/raw-body/HISTORY.md +308 -0
  67. package/node_modules/raw-body/LICENSE +22 -0
  68. package/node_modules/raw-body/README.md +223 -0
  69. package/node_modules/raw-body/SECURITY.md +24 -0
  70. package/node_modules/raw-body/index.d.ts +87 -0
  71. package/node_modules/raw-body/index.js +336 -0
  72. package/node_modules/raw-body/package.json +49 -0
  73. package/node_modules/safer-buffer/LICENSE +21 -0
  74. package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  75. package/node_modules/safer-buffer/Readme.md +156 -0
  76. package/node_modules/safer-buffer/dangerous.js +58 -0
  77. package/node_modules/safer-buffer/package.json +34 -0
  78. package/node_modules/safer-buffer/safer.js +77 -0
  79. package/node_modules/safer-buffer/tests.js +406 -0
  80. package/node_modules/setprototypeof/LICENSE +13 -0
  81. package/node_modules/setprototypeof/README.md +31 -0
  82. package/node_modules/setprototypeof/index.d.ts +2 -0
  83. package/node_modules/setprototypeof/index.js +17 -0
  84. package/node_modules/setprototypeof/package.json +38 -0
  85. package/node_modules/setprototypeof/test/index.js +24 -0
  86. package/node_modules/statuses/HISTORY.md +82 -0
  87. package/node_modules/statuses/LICENSE +23 -0
  88. package/node_modules/statuses/README.md +136 -0
  89. package/node_modules/statuses/codes.json +65 -0
  90. package/node_modules/statuses/index.js +146 -0
  91. package/node_modules/statuses/package.json +49 -0
  92. package/node_modules/toidentifier/HISTORY.md +9 -0
  93. package/node_modules/toidentifier/LICENSE +21 -0
  94. package/node_modules/toidentifier/README.md +61 -0
  95. package/node_modules/toidentifier/index.js +32 -0
  96. package/node_modules/toidentifier/package.json +38 -0
  97. package/node_modules/unpipe/HISTORY.md +4 -0
  98. package/node_modules/unpipe/LICENSE +22 -0
  99. package/node_modules/unpipe/README.md +43 -0
  100. package/node_modules/unpipe/index.js +69 -0
  101. package/node_modules/unpipe/package.json +27 -0
  102. package/package.json +11 -9
@@ -0,0 +1,69 @@
1
+ /*!
2
+ * unpipe
3
+ * Copyright(c) 2015 Douglas Christopher Wilson
4
+ * MIT Licensed
5
+ */
6
+
7
+ 'use strict'
8
+
9
+ /**
10
+ * Module exports.
11
+ * @public
12
+ */
13
+
14
+ module.exports = unpipe
15
+
16
+ /**
17
+ * Determine if there are Node.js pipe-like data listeners.
18
+ * @private
19
+ */
20
+
21
+ function hasPipeDataListeners(stream) {
22
+ var listeners = stream.listeners('data')
23
+
24
+ for (var i = 0; i < listeners.length; i++) {
25
+ if (listeners[i].name === 'ondata') {
26
+ return true
27
+ }
28
+ }
29
+
30
+ return false
31
+ }
32
+
33
+ /**
34
+ * Unpipe a stream from all destinations.
35
+ *
36
+ * @param {object} stream
37
+ * @public
38
+ */
39
+
40
+ function unpipe(stream) {
41
+ if (!stream) {
42
+ throw new TypeError('argument stream is required')
43
+ }
44
+
45
+ if (typeof stream.unpipe === 'function') {
46
+ // new-style
47
+ stream.unpipe()
48
+ return
49
+ }
50
+
51
+ // Node.js 0.8 hack
52
+ if (!hasPipeDataListeners(stream)) {
53
+ return
54
+ }
55
+
56
+ var listener
57
+ var listeners = stream.listeners('close')
58
+
59
+ for (var i = 0; i < listeners.length; i++) {
60
+ listener = listeners[i]
61
+
62
+ if (listener.name !== 'cleanup' && listener.name !== 'onclose') {
63
+ continue
64
+ }
65
+
66
+ // invoke the listener
67
+ listener.call(stream)
68
+ }
69
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "unpipe",
3
+ "description": "Unpipe a stream from all destinations",
4
+ "version": "1.0.0",
5
+ "author": "Douglas Christopher Wilson <doug@somethingdoug.com>",
6
+ "license": "MIT",
7
+ "repository": "stream-utils/unpipe",
8
+ "devDependencies": {
9
+ "istanbul": "0.3.15",
10
+ "mocha": "2.2.5",
11
+ "readable-stream": "1.1.13"
12
+ },
13
+ "files": [
14
+ "HISTORY.md",
15
+ "LICENSE",
16
+ "README.md",
17
+ "index.js"
18
+ ],
19
+ "engines": {
20
+ "node": ">= 0.8"
21
+ },
22
+ "scripts": {
23
+ "test": "mocha --reporter spec --bail --check-leaks test/",
24
+ "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
25
+ "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
26
+ }
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agnostack/next-shopify",
3
- "version": "1.15.0-beta.21",
3
+ "version": "1.15.0-beta.23",
4
4
  "author": "agnoStack Dev <developers@agnostack.com> (https://agnostack.com)",
5
5
  "owner": "agnoStack",
6
6
  "description": "Please contact agnoStack via info@agnostack.com for any questions",
@@ -16,19 +16,19 @@
16
16
  "agnostack"
17
17
  ],
18
18
  "license": "MIT",
19
- "main": "./dist/lib/index.js",
20
- "types": "./dist/lib/index.d.ts",
19
+ "main": "./dist/plugins/index.js",
20
+ "types": "./dist/plugins/index.d.ts",
21
21
  "exports": {
22
22
  ".": {
23
- "types": "./dist/lib/index.d.ts",
24
- "require": "./dist/lib/index.js",
25
- "default": "./dist/lib/index.js"
26
- },
27
- "./plugins": {
28
23
  "types": "./dist/plugins/index.d.ts",
29
24
  "require": "./dist/plugins/index.js",
30
25
  "default": "./dist/plugins/index.js"
31
26
  },
27
+ "./lib": {
28
+ "types": "./dist/lib/index.d.ts",
29
+ "require": "./dist/lib/index.js",
30
+ "import": "./dist/lib/index.js"
31
+ },
32
32
  "./react": {
33
33
  "types": "./dist/react/index.d.ts",
34
34
  "require": "./dist/react/index.js",
@@ -95,6 +95,7 @@
95
95
  "mustache": "4.2.0",
96
96
  "nextjs-cors": "2.1.1",
97
97
  "node-http-proxy-json": "0.1.9",
98
+ "raw-body": "2.5.2",
98
99
  "uuid": "8.3.2"
99
100
  },
100
101
  "devDependencies": {
@@ -132,7 +133,8 @@
132
133
  "typescript": "4.7.4"
133
134
  },
134
135
  "bundledDependencies": [
135
- "browser-monads-ts"
136
+ "browser-monads-ts",
137
+ "raw-body"
136
138
  ],
137
139
  "resolutions": {
138
140
  "**/npm": "6.14.11"