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

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 (87) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/umd/verification.js +1 -340
  3. package/dist/umd/verification.js.map +1 -1
  4. package/package.json +3 -4
  5. package/node_modules/bytes/History.md +0 -97
  6. package/node_modules/bytes/LICENSE +0 -23
  7. package/node_modules/bytes/Readme.md +0 -152
  8. package/node_modules/bytes/index.js +0 -170
  9. package/node_modules/bytes/package.json +0 -42
  10. package/node_modules/depd/History.md +0 -103
  11. package/node_modules/depd/LICENSE +0 -22
  12. package/node_modules/depd/Readme.md +0 -280
  13. package/node_modules/depd/index.js +0 -538
  14. package/node_modules/depd/lib/browser/index.js +0 -77
  15. package/node_modules/depd/package.json +0 -45
  16. package/node_modules/http-errors/HISTORY.md +0 -180
  17. package/node_modules/http-errors/LICENSE +0 -23
  18. package/node_modules/http-errors/README.md +0 -169
  19. package/node_modules/http-errors/index.js +0 -289
  20. package/node_modules/http-errors/package.json +0 -50
  21. package/node_modules/iconv-lite/Changelog.md +0 -162
  22. package/node_modules/iconv-lite/LICENSE +0 -21
  23. package/node_modules/iconv-lite/README.md +0 -156
  24. package/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -555
  25. package/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
  26. package/node_modules/iconv-lite/encodings/index.js +0 -22
  27. package/node_modules/iconv-lite/encodings/internal.js +0 -188
  28. package/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  29. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  30. package/node_modules/iconv-lite/encodings/sbcs-data.js +0 -174
  31. package/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  32. package/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  33. package/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  34. package/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  35. package/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  36. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  37. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
  38. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  39. package/node_modules/iconv-lite/encodings/utf16.js +0 -177
  40. package/node_modules/iconv-lite/encodings/utf7.js +0 -290
  41. package/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  42. package/node_modules/iconv-lite/lib/extend-node.js +0 -217
  43. package/node_modules/iconv-lite/lib/index.d.ts +0 -24
  44. package/node_modules/iconv-lite/lib/index.js +0 -153
  45. package/node_modules/iconv-lite/lib/streams.js +0 -121
  46. package/node_modules/iconv-lite/package.json +0 -46
  47. package/node_modules/inherits/LICENSE +0 -16
  48. package/node_modules/inherits/README.md +0 -42
  49. package/node_modules/inherits/inherits.js +0 -9
  50. package/node_modules/inherits/inherits_browser.js +0 -27
  51. package/node_modules/inherits/package.json +0 -29
  52. package/node_modules/raw-body/HISTORY.md +0 -308
  53. package/node_modules/raw-body/LICENSE +0 -22
  54. package/node_modules/raw-body/README.md +0 -223
  55. package/node_modules/raw-body/SECURITY.md +0 -24
  56. package/node_modules/raw-body/index.d.ts +0 -87
  57. package/node_modules/raw-body/index.js +0 -336
  58. package/node_modules/raw-body/package.json +0 -49
  59. package/node_modules/safer-buffer/LICENSE +0 -21
  60. package/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  61. package/node_modules/safer-buffer/Readme.md +0 -156
  62. package/node_modules/safer-buffer/dangerous.js +0 -58
  63. package/node_modules/safer-buffer/package.json +0 -34
  64. package/node_modules/safer-buffer/safer.js +0 -77
  65. package/node_modules/safer-buffer/tests.js +0 -406
  66. package/node_modules/setprototypeof/LICENSE +0 -13
  67. package/node_modules/setprototypeof/README.md +0 -31
  68. package/node_modules/setprototypeof/index.d.ts +0 -2
  69. package/node_modules/setprototypeof/index.js +0 -17
  70. package/node_modules/setprototypeof/package.json +0 -38
  71. package/node_modules/setprototypeof/test/index.js +0 -24
  72. package/node_modules/statuses/HISTORY.md +0 -82
  73. package/node_modules/statuses/LICENSE +0 -23
  74. package/node_modules/statuses/README.md +0 -136
  75. package/node_modules/statuses/codes.json +0 -65
  76. package/node_modules/statuses/index.js +0 -146
  77. package/node_modules/statuses/package.json +0 -49
  78. package/node_modules/toidentifier/HISTORY.md +0 -9
  79. package/node_modules/toidentifier/LICENSE +0 -21
  80. package/node_modules/toidentifier/README.md +0 -61
  81. package/node_modules/toidentifier/index.js +0 -32
  82. package/node_modules/toidentifier/package.json +0 -38
  83. package/node_modules/unpipe/HISTORY.md +0 -4
  84. package/node_modules/unpipe/LICENSE +0 -22
  85. package/node_modules/unpipe/README.md +0 -43
  86. package/node_modules/unpipe/index.js +0 -69
  87. package/node_modules/unpipe/package.json +0 -27
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.15.0-beta.24](https://github.com/agnostack/next-shopify/compare/v1.15.0-beta.23...v1.15.0-beta.24) (2023-12-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * wip ([f74a297](https://github.com/agnostack/next-shopify/commit/f74a297d0339e301cf388fff707953ae4375a5bc))
7
+
1
8
  # [1.15.0-beta.23](https://github.com/agnostack/next-shopify/compare/v1.15.0-beta.22...v1.15.0-beta.23) (2023-12-09)
2
9
 
3
10
 
@@ -244,7 +244,7 @@
244
244
  }
245
245
 
246
246
  // TODO: move to req.text() after next 13.5: https://github.com/vercel/next.js/discussions/13405
247
- const getRawBody = await Promise.resolve().then(function () { return index; });
247
+ const getRawBody = await import('raw-body');
248
248
 
249
249
  return getRawBody(readable)
250
250
  };
@@ -868,345 +868,6 @@
868
868
  }
869
869
  };
870
870
 
871
- /*!
872
- * raw-body
873
- * Copyright(c) 2013-2014 Jonathan Ong
874
- * Copyright(c) 2014-2022 Douglas Christopher Wilson
875
- * MIT Licensed
876
- */
877
-
878
- /**
879
- * Module dependencies.
880
- * @private
881
- */
882
-
883
- var asyncHooks = tryRequireAsyncHooks();
884
- var bytes = require('bytes');
885
- var createError = require('http-errors');
886
- var iconv = require('iconv-lite');
887
- var unpipe = require('unpipe');
888
-
889
- /**
890
- * Module exports.
891
- * @public
892
- */
893
-
894
- module.exports = getRawBody;
895
-
896
- /**
897
- * Module variables.
898
- * @private
899
- */
900
-
901
- var ICONV_ENCODING_MESSAGE_REGEXP = /^Encoding not recognized: /;
902
-
903
- /**
904
- * Get the decoder for a given encoding.
905
- *
906
- * @param {string} encoding
907
- * @private
908
- */
909
-
910
- function getDecoder (encoding) {
911
- if (!encoding) return null
912
-
913
- try {
914
- return iconv.getDecoder(encoding)
915
- } catch (e) {
916
- // error getting decoder
917
- if (!ICONV_ENCODING_MESSAGE_REGEXP.test(e.message)) throw e
918
-
919
- // the encoding was not found
920
- throw createError(415, 'specified encoding unsupported', {
921
- encoding: encoding,
922
- type: 'encoding.unsupported'
923
- })
924
- }
925
- }
926
-
927
- /**
928
- * Get the raw body of a stream (typically HTTP).
929
- *
930
- * @param {object} stream
931
- * @param {object|string|function} [options]
932
- * @param {function} [callback]
933
- * @public
934
- */
935
-
936
- function getRawBody (stream, options, callback) {
937
- var done = callback;
938
- var opts = options || {};
939
-
940
- // light validation
941
- if (stream === undefined) {
942
- throw new TypeError('argument stream is required')
943
- } else if (typeof stream !== 'object' || stream === null || typeof stream.on !== 'function') {
944
- throw new TypeError('argument stream must be a stream')
945
- }
946
-
947
- if (options === true || typeof options === 'string') {
948
- // short cut for encoding
949
- opts = {
950
- encoding: options
951
- };
952
- }
953
-
954
- if (typeof options === 'function') {
955
- done = options;
956
- opts = {};
957
- }
958
-
959
- // validate callback is a function, if provided
960
- if (done !== undefined && typeof done !== 'function') {
961
- throw new TypeError('argument callback must be a function')
962
- }
963
-
964
- // require the callback without promises
965
- if (!done && !global.Promise) {
966
- throw new TypeError('argument callback is required')
967
- }
968
-
969
- // get encoding
970
- var encoding = opts.encoding !== true
971
- ? opts.encoding
972
- : 'utf-8';
973
-
974
- // convert the limit to an integer
975
- var limit = bytes.parse(opts.limit);
976
-
977
- // convert the expected length to an integer
978
- var length = opts.length != null && !isNaN(opts.length)
979
- ? parseInt(opts.length, 10)
980
- : null;
981
-
982
- if (done) {
983
- // classic callback style
984
- return readStream(stream, encoding, length, limit, wrap(done))
985
- }
986
-
987
- return new Promise(function executor (resolve, reject) {
988
- readStream(stream, encoding, length, limit, function onRead (err, buf) {
989
- if (err) return reject(err)
990
- resolve(buf);
991
- });
992
- })
993
- }
994
-
995
- /**
996
- * Halt a stream.
997
- *
998
- * @param {Object} stream
999
- * @private
1000
- */
1001
-
1002
- function halt (stream) {
1003
- // unpipe everything from the stream
1004
- unpipe(stream);
1005
-
1006
- // pause stream
1007
- if (typeof stream.pause === 'function') {
1008
- stream.pause();
1009
- }
1010
- }
1011
-
1012
- /**
1013
- * Read the data from the stream.
1014
- *
1015
- * @param {object} stream
1016
- * @param {string} encoding
1017
- * @param {number} length
1018
- * @param {number} limit
1019
- * @param {function} callback
1020
- * @public
1021
- */
1022
-
1023
- function readStream (stream, encoding, length, limit, callback) {
1024
- var complete = false;
1025
- var sync = true;
1026
-
1027
- // check the length and limit options.
1028
- // note: we intentionally leave the stream paused,
1029
- // so users should handle the stream themselves.
1030
- if (limit !== null && length !== null && length > limit) {
1031
- return done(createError(413, 'request entity too large', {
1032
- expected: length,
1033
- length: length,
1034
- limit: limit,
1035
- type: 'entity.too.large'
1036
- }))
1037
- }
1038
-
1039
- // streams1: assert request encoding is buffer.
1040
- // streams2+: assert the stream encoding is buffer.
1041
- // stream._decoder: streams1
1042
- // state.encoding: streams2
1043
- // state.decoder: streams2, specifically < 0.10.6
1044
- var state = stream._readableState;
1045
- if (stream._decoder || (state && (state.encoding || state.decoder))) {
1046
- // developer error
1047
- return done(createError(500, 'stream encoding should not be set', {
1048
- type: 'stream.encoding.set'
1049
- }))
1050
- }
1051
-
1052
- if (typeof stream.readable !== 'undefined' && !stream.readable) {
1053
- return done(createError(500, 'stream is not readable', {
1054
- type: 'stream.not.readable'
1055
- }))
1056
- }
1057
-
1058
- var received = 0;
1059
- var decoder;
1060
-
1061
- try {
1062
- decoder = getDecoder(encoding);
1063
- } catch (err) {
1064
- return done(err)
1065
- }
1066
-
1067
- var buffer = decoder
1068
- ? ''
1069
- : [];
1070
-
1071
- // attach listeners
1072
- stream.on('aborted', onAborted);
1073
- stream.on('close', cleanup);
1074
- stream.on('data', onData);
1075
- stream.on('end', onEnd);
1076
- stream.on('error', onEnd);
1077
-
1078
- // mark sync section complete
1079
- sync = false;
1080
-
1081
- function done () {
1082
- var args = new Array(arguments.length);
1083
-
1084
- // copy arguments
1085
- for (var i = 0; i < args.length; i++) {
1086
- args[i] = arguments[i];
1087
- }
1088
-
1089
- // mark complete
1090
- complete = true;
1091
-
1092
- if (sync) {
1093
- process.nextTick(invokeCallback);
1094
- } else {
1095
- invokeCallback();
1096
- }
1097
-
1098
- function invokeCallback () {
1099
- cleanup();
1100
-
1101
- if (args[0]) {
1102
- // halt the stream on error
1103
- halt(stream);
1104
- }
1105
-
1106
- callback.apply(null, args);
1107
- }
1108
- }
1109
-
1110
- function onAborted () {
1111
- if (complete) return
1112
-
1113
- done(createError(400, 'request aborted', {
1114
- code: 'ECONNABORTED',
1115
- expected: length,
1116
- length: length,
1117
- received: received,
1118
- type: 'request.aborted'
1119
- }));
1120
- }
1121
-
1122
- function onData (chunk) {
1123
- if (complete) return
1124
-
1125
- received += chunk.length;
1126
-
1127
- if (limit !== null && received > limit) {
1128
- done(createError(413, 'request entity too large', {
1129
- limit: limit,
1130
- received: received,
1131
- type: 'entity.too.large'
1132
- }));
1133
- } else if (decoder) {
1134
- buffer += decoder.write(chunk);
1135
- } else {
1136
- buffer.push(chunk);
1137
- }
1138
- }
1139
-
1140
- function onEnd (err) {
1141
- if (complete) return
1142
- if (err) return done(err)
1143
-
1144
- if (length !== null && received !== length) {
1145
- done(createError(400, 'request size did not match content length', {
1146
- expected: length,
1147
- length: length,
1148
- received: received,
1149
- type: 'request.size.invalid'
1150
- }));
1151
- } else {
1152
- var string = decoder
1153
- ? buffer + (decoder.end() || '')
1154
- : Buffer.concat(buffer);
1155
- done(null, string);
1156
- }
1157
- }
1158
-
1159
- function cleanup () {
1160
- buffer = null;
1161
-
1162
- stream.removeListener('aborted', onAborted);
1163
- stream.removeListener('data', onData);
1164
- stream.removeListener('end', onEnd);
1165
- stream.removeListener('error', onEnd);
1166
- stream.removeListener('close', cleanup);
1167
- }
1168
- }
1169
-
1170
- /**
1171
- * Try to require async_hooks
1172
- * @private
1173
- */
1174
-
1175
- function tryRequireAsyncHooks () {
1176
- try {
1177
- return require('async_hooks')
1178
- } catch (e) {
1179
- return {}
1180
- }
1181
- }
1182
-
1183
- /**
1184
- * Wrap function with async resource, if possible.
1185
- * AsyncResource.bind static method backported.
1186
- * @private
1187
- */
1188
-
1189
- function wrap (fn) {
1190
- var res;
1191
-
1192
- // create anonymous resource
1193
- if (asyncHooks.AsyncResource) {
1194
- res = new asyncHooks.AsyncResource(fn.name || 'bound-anonymous-fn');
1195
- }
1196
-
1197
- // incompatible node.js
1198
- if (!res || !res.runInAsyncScope) {
1199
- return fn
1200
- }
1201
-
1202
- // return bound function
1203
- return res.runInAsyncScope.bind(res, fn, null)
1204
- }
1205
-
1206
- var index = /*#__PURE__*/Object.freeze({
1207
- __proto__: null
1208
- });
1209
-
1210
871
  exports.API_ROUTE_NAMES = API_ROUTE_NAMES;
1211
872
  exports.API_WEBHOOK_TOPICS = API_WEBHOOK_TOPICS;
1212
873
  exports.AUTH_TYPES = AUTH_TYPES;