@plentymarkets/shop-api 0.148.0 → 0.148.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"email.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/email.helper.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,UA+B5B,CAAC;AACF,eAAO,MAAM,aAAa,qBAIzB,CAAC;AA+BF,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,OAgB7C,CAAC"}
1
+ {"version":3,"file":"email.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/email.helper.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,UA+B5B,CAAC;AACF,eAAO,MAAM,aAAa,qBAIzB,CAAC;AA+BF,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,OAgB7C,CAAC"}
package/lib/index.cjs.js CHANGED
@@ -3,27 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('consola');
6
- var validator = require('validator');
7
-
8
- function _interopNamespace(e) {
9
- if (e && e.__esModule) return e;
10
- var n = Object.create(null);
11
- if (e) {
12
- Object.keys(e).forEach(function (k) {
13
- if (k !== 'default') {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () { return e[k]; }
18
- });
19
- }
20
- });
21
- }
22
- n["default"] = e;
23
- return Object.freeze(n);
24
- }
25
-
26
- var validator__namespace = /*#__PURE__*/_interopNamespace(validator);
27
6
 
28
7
  exports.AddressType = void 0;
29
8
  (function (AddressType) {
@@ -184,8 +163,8 @@ const getProductsByIds = async (context, params) => {
184
163
  const url = new URL('/rest/storefront/items', context.config.api.url);
185
164
  if (params.variationIds) {
186
165
  url.searchParams.set('type', 'variation-list');
187
- for (const itemId of params.variationIds) {
188
- url.searchParams.append('variationIds[]', itemId.toString());
166
+ for (const variationId of params.variationIds) {
167
+ url.searchParams.append('variationIds[]', variationId.toString());
189
168
  }
190
169
  }
191
170
  else {
@@ -6086,8 +6065,339 @@ const reviewGetters = {
6086
6065
  getReviewCounts,
6087
6066
  };
6088
6067
 
6068
+ function assertString(input) {
6069
+ if (input === undefined || input === null) throw new TypeError("Expected a string but received a ".concat(input));
6070
+ if (input.constructor.name !== 'String') throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
6071
+ }
6072
+
6073
+ function isRegExp(obj) {
6074
+ return Object.prototype.toString.call(obj) === '[object RegExp]';
6075
+ }
6076
+ function checkHost(host, matches) {
6077
+ for (var i = 0; i < matches.length; i++) {
6078
+ var match = matches[i];
6079
+ if (host === match || isRegExp(match) && match.test(host)) {
6080
+ return true;
6081
+ }
6082
+ }
6083
+ return false;
6084
+ }
6085
+
6086
+ function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
6087
+
6088
+ /* eslint-disable prefer-rest-params */
6089
+ function isByteLength(str, options) {
6090
+ assertString(str);
6091
+ var min;
6092
+ var max;
6093
+ if (_typeof$1(options) === 'object') {
6094
+ min = options.min || 0;
6095
+ max = options.max;
6096
+ } else {
6097
+ // backwards compatibility: isByteLength(str, min [, max])
6098
+ min = arguments[1];
6099
+ max = arguments[2];
6100
+ }
6101
+ var len = encodeURI(str).split(/%..|./).length - 1;
6102
+ return len >= min && (typeof max === 'undefined' || len <= max);
6103
+ }
6104
+
6105
+ function merge() {
6106
+ var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
6107
+ var defaults = arguments.length > 1 ? arguments[1] : undefined;
6108
+ for (var key in defaults) {
6109
+ if (typeof obj[key] === 'undefined') {
6110
+ obj[key] = defaults[key];
6111
+ }
6112
+ }
6113
+ return obj;
6114
+ }
6115
+
6116
+ var default_fqdn_options = {
6117
+ require_tld: true,
6118
+ allow_underscores: false,
6119
+ allow_trailing_dot: false,
6120
+ allow_numeric_tld: false,
6121
+ allow_wildcard: false,
6122
+ ignore_max_length: false
6123
+ };
6124
+ function isFQDN(str, options) {
6125
+ assertString(str);
6126
+ options = merge(options, default_fqdn_options);
6127
+
6128
+ /* Remove the optional trailing dot before checking validity */
6129
+ if (options.allow_trailing_dot && str[str.length - 1] === '.') {
6130
+ str = str.substring(0, str.length - 1);
6131
+ }
6132
+
6133
+ /* Remove the optional wildcard before checking validity */
6134
+ if (options.allow_wildcard === true && str.indexOf('*.') === 0) {
6135
+ str = str.substring(2);
6136
+ }
6137
+ var parts = str.split('.');
6138
+ var tld = parts[parts.length - 1];
6139
+ if (options.require_tld) {
6140
+ // disallow fqdns without tld
6141
+ if (parts.length < 2) {
6142
+ return false;
6143
+ }
6144
+ if (!options.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
6145
+ return false;
6146
+ }
6147
+
6148
+ // disallow spaces
6149
+ if (/\s/.test(tld)) {
6150
+ return false;
6151
+ }
6152
+ }
6153
+
6154
+ // reject numeric TLDs
6155
+ if (!options.allow_numeric_tld && /^\d+$/.test(tld)) {
6156
+ return false;
6157
+ }
6158
+ return parts.every(function (part) {
6159
+ if (part.length > 63 && !options.ignore_max_length) {
6160
+ return false;
6161
+ }
6162
+ if (!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(part)) {
6163
+ return false;
6164
+ }
6165
+
6166
+ // disallow full-width chars
6167
+ if (/[\uff01-\uff5e]/.test(part)) {
6168
+ return false;
6169
+ }
6170
+
6171
+ // disallow parts starting or ending with hyphen
6172
+ if (/^-|-$/.test(part)) {
6173
+ return false;
6174
+ }
6175
+ if (!options.allow_underscores && /_/.test(part)) {
6176
+ return false;
6177
+ }
6178
+ return true;
6179
+ });
6180
+ }
6181
+
6182
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
6183
+ /**
6184
+ 11.3. Examples
6185
+
6186
+ The following addresses
6187
+
6188
+ fe80::1234 (on the 1st link of the node)
6189
+ ff02::5678 (on the 5th link of the node)
6190
+ ff08::9abc (on the 10th organization of the node)
6191
+
6192
+ would be represented as follows:
6193
+
6194
+ fe80::1234%1
6195
+ ff02::5678%5
6196
+ ff08::9abc%10
6197
+
6198
+ (Here we assume a natural translation from a zone index to the
6199
+ <zone_id> part, where the Nth zone of any scope is translated into
6200
+ "N".)
6201
+
6202
+ If we use interface names as <zone_id>, those addresses could also be
6203
+ represented as follows:
6204
+
6205
+ fe80::1234%ne0
6206
+ ff02::5678%pvc1.3
6207
+ ff08::9abc%interface10
6208
+
6209
+ where the interface "ne0" belongs to the 1st link, "pvc1.3" belongs
6210
+ to the 5th link, and "interface10" belongs to the 10th organization.
6211
+ * * */
6212
+ var IPv4SegmentFormat = '(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';
6213
+ var IPv4AddressFormat = "(".concat(IPv4SegmentFormat, "[.]){3}").concat(IPv4SegmentFormat);
6214
+ var IPv4AddressRegExp = new RegExp("^".concat(IPv4AddressFormat, "$"));
6215
+ var IPv6SegmentFormat = '(?:[0-9a-fA-F]{1,4})';
6216
+ var IPv6AddressRegExp = new RegExp('^(' + "(?:".concat(IPv6SegmentFormat, ":){7}(?:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){6}(?:").concat(IPv4AddressFormat, "|:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){5}(?::").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,2}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){4}(?:(:").concat(IPv6SegmentFormat, "){0,1}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,3}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){3}(?:(:").concat(IPv6SegmentFormat, "){0,2}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,4}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){2}(?:(:").concat(IPv6SegmentFormat, "){0,3}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,5}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){1}(?:(:").concat(IPv6SegmentFormat, "){0,4}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,6}|:)|") + "(?::((?::".concat(IPv6SegmentFormat, "){0,5}:").concat(IPv4AddressFormat, "|(?::").concat(IPv6SegmentFormat, "){1,7}|:))") + ')(%[0-9a-zA-Z.]{1,})?$');
6217
+ function isIP(ipAddress) {
6218
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6219
+ assertString(ipAddress);
6220
+
6221
+ // accessing 'arguments' for backwards compatibility: isIP(ipAddress [, version])
6222
+ // eslint-disable-next-line prefer-rest-params
6223
+ var version = (_typeof(options) === 'object' ? options.version : arguments[1]) || '';
6224
+ if (!version) {
6225
+ return isIP(ipAddress, {
6226
+ version: 4
6227
+ }) || isIP(ipAddress, {
6228
+ version: 6
6229
+ });
6230
+ }
6231
+ if (version.toString() === '4') {
6232
+ return IPv4AddressRegExp.test(ipAddress);
6233
+ }
6234
+ if (version.toString() === '6') {
6235
+ return IPv6AddressRegExp.test(ipAddress);
6236
+ }
6237
+ return false;
6238
+ }
6239
+
6240
+ var default_email_options = {
6241
+ allow_display_name: false,
6242
+ allow_underscores: false,
6243
+ require_display_name: false,
6244
+ allow_utf8_local_part: true,
6245
+ require_tld: true,
6246
+ blacklisted_chars: '',
6247
+ ignore_max_length: false,
6248
+ host_blacklist: [],
6249
+ host_whitelist: []
6250
+ };
6251
+
6252
+ /* eslint-disable max-len */
6253
+ /* eslint-disable no-control-regex */
6254
+ var splitNameAddress = /^([^\x00-\x1F\x7F-\x9F\cX]+)</i;
6255
+ var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
6256
+ var gmailUserPart = /^[a-z\d]+$/;
6257
+ var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i;
6258
+ var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i;
6259
+ var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;
6260
+ var defaultMaxEmailLength = 254;
6261
+ /* eslint-enable max-len */
6262
+ /* eslint-enable no-control-regex */
6263
+
6264
+ /**
6265
+ * Validate display name according to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2
6266
+ * @param {String} display_name
6267
+ */
6268
+ function validateDisplayName(display_name) {
6269
+ var display_name_without_quotes = display_name.replace(/^"(.+)"$/, '$1');
6270
+ // display name with only spaces is not valid
6271
+ if (!display_name_without_quotes.trim()) {
6272
+ return false;
6273
+ }
6274
+
6275
+ // check whether display name contains illegal character
6276
+ var contains_illegal = /[\.";<>]/.test(display_name_without_quotes);
6277
+ if (contains_illegal) {
6278
+ // if contains illegal characters,
6279
+ // must to be enclosed in double-quotes, otherwise it's not a valid display name
6280
+ if (display_name_without_quotes === display_name) {
6281
+ return false;
6282
+ }
6283
+
6284
+ // the quotes in display name must start with character symbol \
6285
+ var all_start_with_back_slash = display_name_without_quotes.split('"').length === display_name_without_quotes.split('\\"').length;
6286
+ if (!all_start_with_back_slash) {
6287
+ return false;
6288
+ }
6289
+ }
6290
+ return true;
6291
+ }
6292
+ function isEmail(str, options) {
6293
+ assertString(str);
6294
+ options = merge(options, default_email_options);
6295
+ if (options.require_display_name || options.allow_display_name) {
6296
+ var display_email = str.match(splitNameAddress);
6297
+ if (display_email) {
6298
+ var display_name = display_email[1];
6299
+
6300
+ // Remove display name and angle brackets to get email address
6301
+ // Can be done in the regex but will introduce a ReDOS (See #1597 for more info)
6302
+ str = str.replace(display_name, '').replace(/(^<|>$)/g, '');
6303
+
6304
+ // sometimes need to trim the last space to get the display name
6305
+ // because there may be a space between display name and email address
6306
+ // eg. myname <address@gmail.com>
6307
+ // the display name is `myname` instead of `myname `, so need to trim the last space
6308
+ if (display_name.endsWith(' ')) {
6309
+ display_name = display_name.slice(0, -1);
6310
+ }
6311
+ if (!validateDisplayName(display_name)) {
6312
+ return false;
6313
+ }
6314
+ } else if (options.require_display_name) {
6315
+ return false;
6316
+ }
6317
+ }
6318
+ if (!options.ignore_max_length && str.length > defaultMaxEmailLength) {
6319
+ return false;
6320
+ }
6321
+ var parts = str.split('@');
6322
+ var domain = parts.pop();
6323
+ var lower_domain = domain.toLowerCase();
6324
+ if (options.host_blacklist.length > 0 && checkHost(lower_domain, options.host_blacklist)) {
6325
+ return false;
6326
+ }
6327
+ if (options.host_whitelist.length > 0 && !checkHost(lower_domain, options.host_whitelist)) {
6328
+ return false;
6329
+ }
6330
+ var user = parts.join('@');
6331
+ if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) {
6332
+ /*
6333
+ Previously we removed dots for gmail addresses before validating.
6334
+ This was removed because it allows `multiple..dots@gmail.com`
6335
+ to be reported as valid, but it is not.
6336
+ Gmail only normalizes single dots, removing them from here is pointless,
6337
+ should be done in normalizeEmail
6338
+ */
6339
+ user = user.toLowerCase();
6340
+
6341
+ // Removing sub-address from username before gmail validation
6342
+ var username = user.split('+')[0];
6343
+
6344
+ // Dots are not included in gmail length restriction
6345
+ if (!isByteLength(username.replace(/\./g, ''), {
6346
+ min: 6,
6347
+ max: 30
6348
+ })) {
6349
+ return false;
6350
+ }
6351
+ var _user_parts = username.split('.');
6352
+ for (var i = 0; i < _user_parts.length; i++) {
6353
+ if (!gmailUserPart.test(_user_parts[i])) {
6354
+ return false;
6355
+ }
6356
+ }
6357
+ }
6358
+ if (options.ignore_max_length === false && (!isByteLength(user, {
6359
+ max: 64
6360
+ }) || !isByteLength(domain, {
6361
+ max: 254
6362
+ }))) {
6363
+ return false;
6364
+ }
6365
+ if (!isFQDN(domain, {
6366
+ require_tld: options.require_tld,
6367
+ ignore_max_length: options.ignore_max_length,
6368
+ allow_underscores: options.allow_underscores
6369
+ })) {
6370
+ if (!options.allow_ip_domain) {
6371
+ return false;
6372
+ }
6373
+ if (!isIP(domain)) {
6374
+ if (!domain.startsWith('[') || !domain.endsWith(']')) {
6375
+ return false;
6376
+ }
6377
+ var noBracketdomain = domain.slice(1, -1);
6378
+ if (noBracketdomain.length === 0 || !isIP(noBracketdomain)) {
6379
+ return false;
6380
+ }
6381
+ }
6382
+ }
6383
+ if (options.blacklisted_chars) {
6384
+ if (user.search(new RegExp("[".concat(options.blacklisted_chars, "]+"), 'g')) !== -1) return false;
6385
+ }
6386
+ if (user[0] === '"' && user[user.length - 1] === '"') {
6387
+ user = user.slice(1, user.length - 1);
6388
+ return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);
6389
+ }
6390
+ var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;
6391
+ var user_parts = user.split('.');
6392
+ for (var _i = 0; _i < user_parts.length; _i++) {
6393
+ if (!pattern.test(user_parts[_i])) {
6394
+ return false;
6395
+ }
6396
+ }
6397
+ return true;
6398
+ }
6399
+
6089
6400
  /* eslint-disable camelcase */
6090
- const isEmail = validator__namespace.isEmail;
6091
6401
  const blacklistedChars = [
6092
6402
  '!',
6093
6403
  '@',
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../node_modules/validator/es/lib/util/assertString.js","../../../node_modules/validator/es/lib/util/checkHost.js","../../../node_modules/validator/es/lib/isByteLength.js","../../../node_modules/validator/es/lib/util/merge.js","../../../node_modules/validator/es/lib/isFQDN.js","../../../node_modules/validator/es/lib/isIP.js","../../../node_modules/validator/es/lib/isEmail.js"],"sourcesContent":["export default function assertString(input) {\n if (input === undefined || input === null) throw new TypeError(\"Expected a string but received a \".concat(input));\n if (input.constructor.name !== 'String') throw new TypeError(\"Expected a string but received a \".concat(input.constructor.name));\n}","function isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n}\nexport default function checkHost(host, matches) {\n for (var i = 0; i < matches.length; i++) {\n var match = matches[i];\n if (host === match || isRegExp(match) && match.test(host)) {\n return true;\n }\n }\n return false;\n}","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nimport assertString from './util/assertString';\n\n/* eslint-disable prefer-rest-params */\nexport default function isByteLength(str, options) {\n assertString(str);\n var min;\n var max;\n if (_typeof(options) === 'object') {\n min = options.min || 0;\n max = options.max;\n } else {\n // backwards compatibility: isByteLength(str, min [, max])\n min = arguments[1];\n max = arguments[2];\n }\n var len = encodeURI(str).split(/%..|./).length - 1;\n return len >= min && (typeof max === 'undefined' || len <= max);\n}","export default function merge() {\n var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var defaults = arguments.length > 1 ? arguments[1] : undefined;\n for (var key in defaults) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = defaults[key];\n }\n }\n return obj;\n}","import assertString from './util/assertString';\nimport merge from './util/merge';\nvar default_fqdn_options = {\n require_tld: true,\n allow_underscores: false,\n allow_trailing_dot: false,\n allow_numeric_tld: false,\n allow_wildcard: false,\n ignore_max_length: false\n};\nexport default function isFQDN(str, options) {\n assertString(str);\n options = merge(options, default_fqdn_options);\n\n /* Remove the optional trailing dot before checking validity */\n if (options.allow_trailing_dot && str[str.length - 1] === '.') {\n str = str.substring(0, str.length - 1);\n }\n\n /* Remove the optional wildcard before checking validity */\n if (options.allow_wildcard === true && str.indexOf('*.') === 0) {\n str = str.substring(2);\n }\n var parts = str.split('.');\n var tld = parts[parts.length - 1];\n if (options.require_tld) {\n // disallow fqdns without tld\n if (parts.length < 2) {\n return false;\n }\n if (!options.allow_numeric_tld && !/^([a-z\\u00A1-\\u00A8\\u00AA-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {\n return false;\n }\n\n // disallow spaces\n if (/\\s/.test(tld)) {\n return false;\n }\n }\n\n // reject numeric TLDs\n if (!options.allow_numeric_tld && /^\\d+$/.test(tld)) {\n return false;\n }\n return parts.every(function (part) {\n if (part.length > 63 && !options.ignore_max_length) {\n return false;\n }\n if (!/^[a-z_\\u00a1-\\uffff0-9-]+$/i.test(part)) {\n return false;\n }\n\n // disallow full-width chars\n if (/[\\uff01-\\uff5e]/.test(part)) {\n return false;\n }\n\n // disallow parts starting or ending with hyphen\n if (/^-|-$/.test(part)) {\n return false;\n }\n if (!options.allow_underscores && /_/.test(part)) {\n return false;\n }\n return true;\n });\n}","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nimport assertString from './util/assertString';\n/**\n11.3. Examples\n\n The following addresses\n\n fe80::1234 (on the 1st link of the node)\n ff02::5678 (on the 5th link of the node)\n ff08::9abc (on the 10th organization of the node)\n\n would be represented as follows:\n\n fe80::1234%1\n ff02::5678%5\n ff08::9abc%10\n\n (Here we assume a natural translation from a zone index to the\n <zone_id> part, where the Nth zone of any scope is translated into\n \"N\".)\n\n If we use interface names as <zone_id>, those addresses could also be\n represented as follows:\n\n fe80::1234%ne0\n ff02::5678%pvc1.3\n ff08::9abc%interface10\n\n where the interface \"ne0\" belongs to the 1st link, \"pvc1.3\" belongs\n to the 5th link, and \"interface10\" belongs to the 10th organization.\n * * */\nvar IPv4SegmentFormat = '(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';\nvar IPv4AddressFormat = \"(\".concat(IPv4SegmentFormat, \"[.]){3}\").concat(IPv4SegmentFormat);\nvar IPv4AddressRegExp = new RegExp(\"^\".concat(IPv4AddressFormat, \"$\"));\nvar IPv6SegmentFormat = '(?:[0-9a-fA-F]{1,4})';\nvar IPv6AddressRegExp = new RegExp('^(' + \"(?:\".concat(IPv6SegmentFormat, \":){7}(?:\").concat(IPv6SegmentFormat, \"|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){6}(?:\").concat(IPv4AddressFormat, \"|:\").concat(IPv6SegmentFormat, \"|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){5}(?::\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,2}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){4}(?:(:\").concat(IPv6SegmentFormat, \"){0,1}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,3}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){3}(?:(:\").concat(IPv6SegmentFormat, \"){0,2}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,4}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){2}(?:(:\").concat(IPv6SegmentFormat, \"){0,3}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,5}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){1}(?:(:\").concat(IPv6SegmentFormat, \"){0,4}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,6}|:)|\") + \"(?::((?::\".concat(IPv6SegmentFormat, \"){0,5}:\").concat(IPv4AddressFormat, \"|(?::\").concat(IPv6SegmentFormat, \"){1,7}|:))\") + ')(%[0-9a-zA-Z.]{1,})?$');\nexport default function isIP(ipAddress) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n assertString(ipAddress);\n\n // accessing 'arguments' for backwards compatibility: isIP(ipAddress [, version])\n // eslint-disable-next-line prefer-rest-params\n var version = (_typeof(options) === 'object' ? options.version : arguments[1]) || '';\n if (!version) {\n return isIP(ipAddress, {\n version: 4\n }) || isIP(ipAddress, {\n version: 6\n });\n }\n if (version.toString() === '4') {\n return IPv4AddressRegExp.test(ipAddress);\n }\n if (version.toString() === '6') {\n return IPv6AddressRegExp.test(ipAddress);\n }\n return false;\n}","import assertString from './util/assertString';\nimport checkHost from './util/checkHost';\nimport isByteLength from './isByteLength';\nimport isFQDN from './isFQDN';\nimport isIP from './isIP';\nimport merge from './util/merge';\nvar default_email_options = {\n allow_display_name: false,\n allow_underscores: false,\n require_display_name: false,\n allow_utf8_local_part: true,\n require_tld: true,\n blacklisted_chars: '',\n ignore_max_length: false,\n host_blacklist: [],\n host_whitelist: []\n};\n\n/* eslint-disable max-len */\n/* eslint-disable no-control-regex */\nvar splitNameAddress = /^([^\\x00-\\x1F\\x7F-\\x9F\\cX]+)</i;\nvar emailUserPart = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]+$/i;\nvar gmailUserPart = /^[a-z\\d]+$/;\nvar quotedEmailUser = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]))*$/i;\nvar emailUserUtf8Part = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\u00A1-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+$/i;\nvar quotedEmailUserUtf8 = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))*$/i;\nvar defaultMaxEmailLength = 254;\n/* eslint-enable max-len */\n/* eslint-enable no-control-regex */\n\n/**\n * Validate display name according to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2\n * @param {String} display_name\n */\nfunction validateDisplayName(display_name) {\n var display_name_without_quotes = display_name.replace(/^\"(.+)\"$/, '$1');\n // display name with only spaces is not valid\n if (!display_name_without_quotes.trim()) {\n return false;\n }\n\n // check whether display name contains illegal character\n var contains_illegal = /[\\.\";<>]/.test(display_name_without_quotes);\n if (contains_illegal) {\n // if contains illegal characters,\n // must to be enclosed in double-quotes, otherwise it's not a valid display name\n if (display_name_without_quotes === display_name) {\n return false;\n }\n\n // the quotes in display name must start with character symbol \\\n var all_start_with_back_slash = display_name_without_quotes.split('\"').length === display_name_without_quotes.split('\\\\\"').length;\n if (!all_start_with_back_slash) {\n return false;\n }\n }\n return true;\n}\nexport default function isEmail(str, options) {\n assertString(str);\n options = merge(options, default_email_options);\n if (options.require_display_name || options.allow_display_name) {\n var display_email = str.match(splitNameAddress);\n if (display_email) {\n var display_name = display_email[1];\n\n // Remove display name and angle brackets to get email address\n // Can be done in the regex but will introduce a ReDOS (See #1597 for more info)\n str = str.replace(display_name, '').replace(/(^<|>$)/g, '');\n\n // sometimes need to trim the last space to get the display name\n // because there may be a space between display name and email address\n // eg. myname <address@gmail.com>\n // the display name is `myname` instead of `myname `, so need to trim the last space\n if (display_name.endsWith(' ')) {\n display_name = display_name.slice(0, -1);\n }\n if (!validateDisplayName(display_name)) {\n return false;\n }\n } else if (options.require_display_name) {\n return false;\n }\n }\n if (!options.ignore_max_length && str.length > defaultMaxEmailLength) {\n return false;\n }\n var parts = str.split('@');\n var domain = parts.pop();\n var lower_domain = domain.toLowerCase();\n if (options.host_blacklist.length > 0 && checkHost(lower_domain, options.host_blacklist)) {\n return false;\n }\n if (options.host_whitelist.length > 0 && !checkHost(lower_domain, options.host_whitelist)) {\n return false;\n }\n var user = parts.join('@');\n if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) {\n /*\n Previously we removed dots for gmail addresses before validating.\n This was removed because it allows `multiple..dots@gmail.com`\n to be reported as valid, but it is not.\n Gmail only normalizes single dots, removing them from here is pointless,\n should be done in normalizeEmail\n */\n user = user.toLowerCase();\n\n // Removing sub-address from username before gmail validation\n var username = user.split('+')[0];\n\n // Dots are not included in gmail length restriction\n if (!isByteLength(username.replace(/\\./g, ''), {\n min: 6,\n max: 30\n })) {\n return false;\n }\n var _user_parts = username.split('.');\n for (var i = 0; i < _user_parts.length; i++) {\n if (!gmailUserPart.test(_user_parts[i])) {\n return false;\n }\n }\n }\n if (options.ignore_max_length === false && (!isByteLength(user, {\n max: 64\n }) || !isByteLength(domain, {\n max: 254\n }))) {\n return false;\n }\n if (!isFQDN(domain, {\n require_tld: options.require_tld,\n ignore_max_length: options.ignore_max_length,\n allow_underscores: options.allow_underscores\n })) {\n if (!options.allow_ip_domain) {\n return false;\n }\n if (!isIP(domain)) {\n if (!domain.startsWith('[') || !domain.endsWith(']')) {\n return false;\n }\n var noBracketdomain = domain.slice(1, -1);\n if (noBracketdomain.length === 0 || !isIP(noBracketdomain)) {\n return false;\n }\n }\n }\n if (options.blacklisted_chars) {\n if (user.search(new RegExp(\"[\".concat(options.blacklisted_chars, \"]+\"), 'g')) !== -1) return false;\n }\n if (user[0] === '\"' && user[user.length - 1] === '\"') {\n user = user.slice(1, user.length - 1);\n return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);\n }\n var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;\n var user_parts = user.split('.');\n for (var _i = 0; _i < user_parts.length; _i++) {\n if (!pattern.test(user_parts[_i])) {\n return false;\n }\n }\n return true;\n}"],"names":["_typeof"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/index.es.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import 'consola';
2
- import * as validator from 'validator';
3
2
 
4
3
  var AddressType;
5
4
  (function (AddressType) {
@@ -160,8 +159,8 @@ const getProductsByIds = async (context, params) => {
160
159
  const url = new URL('/rest/storefront/items', context.config.api.url);
161
160
  if (params.variationIds) {
162
161
  url.searchParams.set('type', 'variation-list');
163
- for (const itemId of params.variationIds) {
164
- url.searchParams.append('variationIds[]', itemId.toString());
162
+ for (const variationId of params.variationIds) {
163
+ url.searchParams.append('variationIds[]', variationId.toString());
165
164
  }
166
165
  }
167
166
  else {
@@ -6062,8 +6061,339 @@ const reviewGetters = {
6062
6061
  getReviewCounts,
6063
6062
  };
6064
6063
 
6064
+ function assertString(input) {
6065
+ if (input === undefined || input === null) throw new TypeError("Expected a string but received a ".concat(input));
6066
+ if (input.constructor.name !== 'String') throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
6067
+ }
6068
+
6069
+ function isRegExp(obj) {
6070
+ return Object.prototype.toString.call(obj) === '[object RegExp]';
6071
+ }
6072
+ function checkHost(host, matches) {
6073
+ for (var i = 0; i < matches.length; i++) {
6074
+ var match = matches[i];
6075
+ if (host === match || isRegExp(match) && match.test(host)) {
6076
+ return true;
6077
+ }
6078
+ }
6079
+ return false;
6080
+ }
6081
+
6082
+ function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
6083
+
6084
+ /* eslint-disable prefer-rest-params */
6085
+ function isByteLength(str, options) {
6086
+ assertString(str);
6087
+ var min;
6088
+ var max;
6089
+ if (_typeof$1(options) === 'object') {
6090
+ min = options.min || 0;
6091
+ max = options.max;
6092
+ } else {
6093
+ // backwards compatibility: isByteLength(str, min [, max])
6094
+ min = arguments[1];
6095
+ max = arguments[2];
6096
+ }
6097
+ var len = encodeURI(str).split(/%..|./).length - 1;
6098
+ return len >= min && (typeof max === 'undefined' || len <= max);
6099
+ }
6100
+
6101
+ function merge() {
6102
+ var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
6103
+ var defaults = arguments.length > 1 ? arguments[1] : undefined;
6104
+ for (var key in defaults) {
6105
+ if (typeof obj[key] === 'undefined') {
6106
+ obj[key] = defaults[key];
6107
+ }
6108
+ }
6109
+ return obj;
6110
+ }
6111
+
6112
+ var default_fqdn_options = {
6113
+ require_tld: true,
6114
+ allow_underscores: false,
6115
+ allow_trailing_dot: false,
6116
+ allow_numeric_tld: false,
6117
+ allow_wildcard: false,
6118
+ ignore_max_length: false
6119
+ };
6120
+ function isFQDN(str, options) {
6121
+ assertString(str);
6122
+ options = merge(options, default_fqdn_options);
6123
+
6124
+ /* Remove the optional trailing dot before checking validity */
6125
+ if (options.allow_trailing_dot && str[str.length - 1] === '.') {
6126
+ str = str.substring(0, str.length - 1);
6127
+ }
6128
+
6129
+ /* Remove the optional wildcard before checking validity */
6130
+ if (options.allow_wildcard === true && str.indexOf('*.') === 0) {
6131
+ str = str.substring(2);
6132
+ }
6133
+ var parts = str.split('.');
6134
+ var tld = parts[parts.length - 1];
6135
+ if (options.require_tld) {
6136
+ // disallow fqdns without tld
6137
+ if (parts.length < 2) {
6138
+ return false;
6139
+ }
6140
+ if (!options.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
6141
+ return false;
6142
+ }
6143
+
6144
+ // disallow spaces
6145
+ if (/\s/.test(tld)) {
6146
+ return false;
6147
+ }
6148
+ }
6149
+
6150
+ // reject numeric TLDs
6151
+ if (!options.allow_numeric_tld && /^\d+$/.test(tld)) {
6152
+ return false;
6153
+ }
6154
+ return parts.every(function (part) {
6155
+ if (part.length > 63 && !options.ignore_max_length) {
6156
+ return false;
6157
+ }
6158
+ if (!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(part)) {
6159
+ return false;
6160
+ }
6161
+
6162
+ // disallow full-width chars
6163
+ if (/[\uff01-\uff5e]/.test(part)) {
6164
+ return false;
6165
+ }
6166
+
6167
+ // disallow parts starting or ending with hyphen
6168
+ if (/^-|-$/.test(part)) {
6169
+ return false;
6170
+ }
6171
+ if (!options.allow_underscores && /_/.test(part)) {
6172
+ return false;
6173
+ }
6174
+ return true;
6175
+ });
6176
+ }
6177
+
6178
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
6179
+ /**
6180
+ 11.3. Examples
6181
+
6182
+ The following addresses
6183
+
6184
+ fe80::1234 (on the 1st link of the node)
6185
+ ff02::5678 (on the 5th link of the node)
6186
+ ff08::9abc (on the 10th organization of the node)
6187
+
6188
+ would be represented as follows:
6189
+
6190
+ fe80::1234%1
6191
+ ff02::5678%5
6192
+ ff08::9abc%10
6193
+
6194
+ (Here we assume a natural translation from a zone index to the
6195
+ <zone_id> part, where the Nth zone of any scope is translated into
6196
+ "N".)
6197
+
6198
+ If we use interface names as <zone_id>, those addresses could also be
6199
+ represented as follows:
6200
+
6201
+ fe80::1234%ne0
6202
+ ff02::5678%pvc1.3
6203
+ ff08::9abc%interface10
6204
+
6205
+ where the interface "ne0" belongs to the 1st link, "pvc1.3" belongs
6206
+ to the 5th link, and "interface10" belongs to the 10th organization.
6207
+ * * */
6208
+ var IPv4SegmentFormat = '(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';
6209
+ var IPv4AddressFormat = "(".concat(IPv4SegmentFormat, "[.]){3}").concat(IPv4SegmentFormat);
6210
+ var IPv4AddressRegExp = new RegExp("^".concat(IPv4AddressFormat, "$"));
6211
+ var IPv6SegmentFormat = '(?:[0-9a-fA-F]{1,4})';
6212
+ var IPv6AddressRegExp = new RegExp('^(' + "(?:".concat(IPv6SegmentFormat, ":){7}(?:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){6}(?:").concat(IPv4AddressFormat, "|:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){5}(?::").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,2}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){4}(?:(:").concat(IPv6SegmentFormat, "){0,1}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,3}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){3}(?:(:").concat(IPv6SegmentFormat, "){0,2}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,4}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){2}(?:(:").concat(IPv6SegmentFormat, "){0,3}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,5}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){1}(?:(:").concat(IPv6SegmentFormat, "){0,4}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,6}|:)|") + "(?::((?::".concat(IPv6SegmentFormat, "){0,5}:").concat(IPv4AddressFormat, "|(?::").concat(IPv6SegmentFormat, "){1,7}|:))") + ')(%[0-9a-zA-Z.]{1,})?$');
6213
+ function isIP(ipAddress) {
6214
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6215
+ assertString(ipAddress);
6216
+
6217
+ // accessing 'arguments' for backwards compatibility: isIP(ipAddress [, version])
6218
+ // eslint-disable-next-line prefer-rest-params
6219
+ var version = (_typeof(options) === 'object' ? options.version : arguments[1]) || '';
6220
+ if (!version) {
6221
+ return isIP(ipAddress, {
6222
+ version: 4
6223
+ }) || isIP(ipAddress, {
6224
+ version: 6
6225
+ });
6226
+ }
6227
+ if (version.toString() === '4') {
6228
+ return IPv4AddressRegExp.test(ipAddress);
6229
+ }
6230
+ if (version.toString() === '6') {
6231
+ return IPv6AddressRegExp.test(ipAddress);
6232
+ }
6233
+ return false;
6234
+ }
6235
+
6236
+ var default_email_options = {
6237
+ allow_display_name: false,
6238
+ allow_underscores: false,
6239
+ require_display_name: false,
6240
+ allow_utf8_local_part: true,
6241
+ require_tld: true,
6242
+ blacklisted_chars: '',
6243
+ ignore_max_length: false,
6244
+ host_blacklist: [],
6245
+ host_whitelist: []
6246
+ };
6247
+
6248
+ /* eslint-disable max-len */
6249
+ /* eslint-disable no-control-regex */
6250
+ var splitNameAddress = /^([^\x00-\x1F\x7F-\x9F\cX]+)</i;
6251
+ var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
6252
+ var gmailUserPart = /^[a-z\d]+$/;
6253
+ var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i;
6254
+ var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i;
6255
+ var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;
6256
+ var defaultMaxEmailLength = 254;
6257
+ /* eslint-enable max-len */
6258
+ /* eslint-enable no-control-regex */
6259
+
6260
+ /**
6261
+ * Validate display name according to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2
6262
+ * @param {String} display_name
6263
+ */
6264
+ function validateDisplayName(display_name) {
6265
+ var display_name_without_quotes = display_name.replace(/^"(.+)"$/, '$1');
6266
+ // display name with only spaces is not valid
6267
+ if (!display_name_without_quotes.trim()) {
6268
+ return false;
6269
+ }
6270
+
6271
+ // check whether display name contains illegal character
6272
+ var contains_illegal = /[\.";<>]/.test(display_name_without_quotes);
6273
+ if (contains_illegal) {
6274
+ // if contains illegal characters,
6275
+ // must to be enclosed in double-quotes, otherwise it's not a valid display name
6276
+ if (display_name_without_quotes === display_name) {
6277
+ return false;
6278
+ }
6279
+
6280
+ // the quotes in display name must start with character symbol \
6281
+ var all_start_with_back_slash = display_name_without_quotes.split('"').length === display_name_without_quotes.split('\\"').length;
6282
+ if (!all_start_with_back_slash) {
6283
+ return false;
6284
+ }
6285
+ }
6286
+ return true;
6287
+ }
6288
+ function isEmail(str, options) {
6289
+ assertString(str);
6290
+ options = merge(options, default_email_options);
6291
+ if (options.require_display_name || options.allow_display_name) {
6292
+ var display_email = str.match(splitNameAddress);
6293
+ if (display_email) {
6294
+ var display_name = display_email[1];
6295
+
6296
+ // Remove display name and angle brackets to get email address
6297
+ // Can be done in the regex but will introduce a ReDOS (See #1597 for more info)
6298
+ str = str.replace(display_name, '').replace(/(^<|>$)/g, '');
6299
+
6300
+ // sometimes need to trim the last space to get the display name
6301
+ // because there may be a space between display name and email address
6302
+ // eg. myname <address@gmail.com>
6303
+ // the display name is `myname` instead of `myname `, so need to trim the last space
6304
+ if (display_name.endsWith(' ')) {
6305
+ display_name = display_name.slice(0, -1);
6306
+ }
6307
+ if (!validateDisplayName(display_name)) {
6308
+ return false;
6309
+ }
6310
+ } else if (options.require_display_name) {
6311
+ return false;
6312
+ }
6313
+ }
6314
+ if (!options.ignore_max_length && str.length > defaultMaxEmailLength) {
6315
+ return false;
6316
+ }
6317
+ var parts = str.split('@');
6318
+ var domain = parts.pop();
6319
+ var lower_domain = domain.toLowerCase();
6320
+ if (options.host_blacklist.length > 0 && checkHost(lower_domain, options.host_blacklist)) {
6321
+ return false;
6322
+ }
6323
+ if (options.host_whitelist.length > 0 && !checkHost(lower_domain, options.host_whitelist)) {
6324
+ return false;
6325
+ }
6326
+ var user = parts.join('@');
6327
+ if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) {
6328
+ /*
6329
+ Previously we removed dots for gmail addresses before validating.
6330
+ This was removed because it allows `multiple..dots@gmail.com`
6331
+ to be reported as valid, but it is not.
6332
+ Gmail only normalizes single dots, removing them from here is pointless,
6333
+ should be done in normalizeEmail
6334
+ */
6335
+ user = user.toLowerCase();
6336
+
6337
+ // Removing sub-address from username before gmail validation
6338
+ var username = user.split('+')[0];
6339
+
6340
+ // Dots are not included in gmail length restriction
6341
+ if (!isByteLength(username.replace(/\./g, ''), {
6342
+ min: 6,
6343
+ max: 30
6344
+ })) {
6345
+ return false;
6346
+ }
6347
+ var _user_parts = username.split('.');
6348
+ for (var i = 0; i < _user_parts.length; i++) {
6349
+ if (!gmailUserPart.test(_user_parts[i])) {
6350
+ return false;
6351
+ }
6352
+ }
6353
+ }
6354
+ if (options.ignore_max_length === false && (!isByteLength(user, {
6355
+ max: 64
6356
+ }) || !isByteLength(domain, {
6357
+ max: 254
6358
+ }))) {
6359
+ return false;
6360
+ }
6361
+ if (!isFQDN(domain, {
6362
+ require_tld: options.require_tld,
6363
+ ignore_max_length: options.ignore_max_length,
6364
+ allow_underscores: options.allow_underscores
6365
+ })) {
6366
+ if (!options.allow_ip_domain) {
6367
+ return false;
6368
+ }
6369
+ if (!isIP(domain)) {
6370
+ if (!domain.startsWith('[') || !domain.endsWith(']')) {
6371
+ return false;
6372
+ }
6373
+ var noBracketdomain = domain.slice(1, -1);
6374
+ if (noBracketdomain.length === 0 || !isIP(noBracketdomain)) {
6375
+ return false;
6376
+ }
6377
+ }
6378
+ }
6379
+ if (options.blacklisted_chars) {
6380
+ if (user.search(new RegExp("[".concat(options.blacklisted_chars, "]+"), 'g')) !== -1) return false;
6381
+ }
6382
+ if (user[0] === '"' && user[user.length - 1] === '"') {
6383
+ user = user.slice(1, user.length - 1);
6384
+ return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);
6385
+ }
6386
+ var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;
6387
+ var user_parts = user.split('.');
6388
+ for (var _i = 0; _i < user_parts.length; _i++) {
6389
+ if (!pattern.test(user_parts[_i])) {
6390
+ return false;
6391
+ }
6392
+ }
6393
+ return true;
6394
+ }
6395
+
6065
6396
  /* eslint-disable camelcase */
6066
- const isEmail = validator.isEmail;
6067
6397
  const blacklistedChars = [
6068
6398
  '!',
6069
6399
  '@',
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.es.js","sources":["../../../node_modules/validator/es/lib/util/assertString.js","../../../node_modules/validator/es/lib/util/checkHost.js","../../../node_modules/validator/es/lib/isByteLength.js","../../../node_modules/validator/es/lib/util/merge.js","../../../node_modules/validator/es/lib/isFQDN.js","../../../node_modules/validator/es/lib/isIP.js","../../../node_modules/validator/es/lib/isEmail.js"],"sourcesContent":["export default function assertString(input) {\n if (input === undefined || input === null) throw new TypeError(\"Expected a string but received a \".concat(input));\n if (input.constructor.name !== 'String') throw new TypeError(\"Expected a string but received a \".concat(input.constructor.name));\n}","function isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n}\nexport default function checkHost(host, matches) {\n for (var i = 0; i < matches.length; i++) {\n var match = matches[i];\n if (host === match || isRegExp(match) && match.test(host)) {\n return true;\n }\n }\n return false;\n}","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nimport assertString from './util/assertString';\n\n/* eslint-disable prefer-rest-params */\nexport default function isByteLength(str, options) {\n assertString(str);\n var min;\n var max;\n if (_typeof(options) === 'object') {\n min = options.min || 0;\n max = options.max;\n } else {\n // backwards compatibility: isByteLength(str, min [, max])\n min = arguments[1];\n max = arguments[2];\n }\n var len = encodeURI(str).split(/%..|./).length - 1;\n return len >= min && (typeof max === 'undefined' || len <= max);\n}","export default function merge() {\n var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var defaults = arguments.length > 1 ? arguments[1] : undefined;\n for (var key in defaults) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = defaults[key];\n }\n }\n return obj;\n}","import assertString from './util/assertString';\nimport merge from './util/merge';\nvar default_fqdn_options = {\n require_tld: true,\n allow_underscores: false,\n allow_trailing_dot: false,\n allow_numeric_tld: false,\n allow_wildcard: false,\n ignore_max_length: false\n};\nexport default function isFQDN(str, options) {\n assertString(str);\n options = merge(options, default_fqdn_options);\n\n /* Remove the optional trailing dot before checking validity */\n if (options.allow_trailing_dot && str[str.length - 1] === '.') {\n str = str.substring(0, str.length - 1);\n }\n\n /* Remove the optional wildcard before checking validity */\n if (options.allow_wildcard === true && str.indexOf('*.') === 0) {\n str = str.substring(2);\n }\n var parts = str.split('.');\n var tld = parts[parts.length - 1];\n if (options.require_tld) {\n // disallow fqdns without tld\n if (parts.length < 2) {\n return false;\n }\n if (!options.allow_numeric_tld && !/^([a-z\\u00A1-\\u00A8\\u00AA-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {\n return false;\n }\n\n // disallow spaces\n if (/\\s/.test(tld)) {\n return false;\n }\n }\n\n // reject numeric TLDs\n if (!options.allow_numeric_tld && /^\\d+$/.test(tld)) {\n return false;\n }\n return parts.every(function (part) {\n if (part.length > 63 && !options.ignore_max_length) {\n return false;\n }\n if (!/^[a-z_\\u00a1-\\uffff0-9-]+$/i.test(part)) {\n return false;\n }\n\n // disallow full-width chars\n if (/[\\uff01-\\uff5e]/.test(part)) {\n return false;\n }\n\n // disallow parts starting or ending with hyphen\n if (/^-|-$/.test(part)) {\n return false;\n }\n if (!options.allow_underscores && /_/.test(part)) {\n return false;\n }\n return true;\n });\n}","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nimport assertString from './util/assertString';\n/**\n11.3. Examples\n\n The following addresses\n\n fe80::1234 (on the 1st link of the node)\n ff02::5678 (on the 5th link of the node)\n ff08::9abc (on the 10th organization of the node)\n\n would be represented as follows:\n\n fe80::1234%1\n ff02::5678%5\n ff08::9abc%10\n\n (Here we assume a natural translation from a zone index to the\n <zone_id> part, where the Nth zone of any scope is translated into\n \"N\".)\n\n If we use interface names as <zone_id>, those addresses could also be\n represented as follows:\n\n fe80::1234%ne0\n ff02::5678%pvc1.3\n ff08::9abc%interface10\n\n where the interface \"ne0\" belongs to the 1st link, \"pvc1.3\" belongs\n to the 5th link, and \"interface10\" belongs to the 10th organization.\n * * */\nvar IPv4SegmentFormat = '(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';\nvar IPv4AddressFormat = \"(\".concat(IPv4SegmentFormat, \"[.]){3}\").concat(IPv4SegmentFormat);\nvar IPv4AddressRegExp = new RegExp(\"^\".concat(IPv4AddressFormat, \"$\"));\nvar IPv6SegmentFormat = '(?:[0-9a-fA-F]{1,4})';\nvar IPv6AddressRegExp = new RegExp('^(' + \"(?:\".concat(IPv6SegmentFormat, \":){7}(?:\").concat(IPv6SegmentFormat, \"|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){6}(?:\").concat(IPv4AddressFormat, \"|:\").concat(IPv6SegmentFormat, \"|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){5}(?::\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,2}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){4}(?:(:\").concat(IPv6SegmentFormat, \"){0,1}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,3}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){3}(?:(:\").concat(IPv6SegmentFormat, \"){0,2}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,4}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){2}(?:(:\").concat(IPv6SegmentFormat, \"){0,3}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,5}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){1}(?:(:\").concat(IPv6SegmentFormat, \"){0,4}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,6}|:)|\") + \"(?::((?::\".concat(IPv6SegmentFormat, \"){0,5}:\").concat(IPv4AddressFormat, \"|(?::\").concat(IPv6SegmentFormat, \"){1,7}|:))\") + ')(%[0-9a-zA-Z.]{1,})?$');\nexport default function isIP(ipAddress) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n assertString(ipAddress);\n\n // accessing 'arguments' for backwards compatibility: isIP(ipAddress [, version])\n // eslint-disable-next-line prefer-rest-params\n var version = (_typeof(options) === 'object' ? options.version : arguments[1]) || '';\n if (!version) {\n return isIP(ipAddress, {\n version: 4\n }) || isIP(ipAddress, {\n version: 6\n });\n }\n if (version.toString() === '4') {\n return IPv4AddressRegExp.test(ipAddress);\n }\n if (version.toString() === '6') {\n return IPv6AddressRegExp.test(ipAddress);\n }\n return false;\n}","import assertString from './util/assertString';\nimport checkHost from './util/checkHost';\nimport isByteLength from './isByteLength';\nimport isFQDN from './isFQDN';\nimport isIP from './isIP';\nimport merge from './util/merge';\nvar default_email_options = {\n allow_display_name: false,\n allow_underscores: false,\n require_display_name: false,\n allow_utf8_local_part: true,\n require_tld: true,\n blacklisted_chars: '',\n ignore_max_length: false,\n host_blacklist: [],\n host_whitelist: []\n};\n\n/* eslint-disable max-len */\n/* eslint-disable no-control-regex */\nvar splitNameAddress = /^([^\\x00-\\x1F\\x7F-\\x9F\\cX]+)</i;\nvar emailUserPart = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]+$/i;\nvar gmailUserPart = /^[a-z\\d]+$/;\nvar quotedEmailUser = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]))*$/i;\nvar emailUserUtf8Part = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\u00A1-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+$/i;\nvar quotedEmailUserUtf8 = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))*$/i;\nvar defaultMaxEmailLength = 254;\n/* eslint-enable max-len */\n/* eslint-enable no-control-regex */\n\n/**\n * Validate display name according to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2\n * @param {String} display_name\n */\nfunction validateDisplayName(display_name) {\n var display_name_without_quotes = display_name.replace(/^\"(.+)\"$/, '$1');\n // display name with only spaces is not valid\n if (!display_name_without_quotes.trim()) {\n return false;\n }\n\n // check whether display name contains illegal character\n var contains_illegal = /[\\.\";<>]/.test(display_name_without_quotes);\n if (contains_illegal) {\n // if contains illegal characters,\n // must to be enclosed in double-quotes, otherwise it's not a valid display name\n if (display_name_without_quotes === display_name) {\n return false;\n }\n\n // the quotes in display name must start with character symbol \\\n var all_start_with_back_slash = display_name_without_quotes.split('\"').length === display_name_without_quotes.split('\\\\\"').length;\n if (!all_start_with_back_slash) {\n return false;\n }\n }\n return true;\n}\nexport default function isEmail(str, options) {\n assertString(str);\n options = merge(options, default_email_options);\n if (options.require_display_name || options.allow_display_name) {\n var display_email = str.match(splitNameAddress);\n if (display_email) {\n var display_name = display_email[1];\n\n // Remove display name and angle brackets to get email address\n // Can be done in the regex but will introduce a ReDOS (See #1597 for more info)\n str = str.replace(display_name, '').replace(/(^<|>$)/g, '');\n\n // sometimes need to trim the last space to get the display name\n // because there may be a space between display name and email address\n // eg. myname <address@gmail.com>\n // the display name is `myname` instead of `myname `, so need to trim the last space\n if (display_name.endsWith(' ')) {\n display_name = display_name.slice(0, -1);\n }\n if (!validateDisplayName(display_name)) {\n return false;\n }\n } else if (options.require_display_name) {\n return false;\n }\n }\n if (!options.ignore_max_length && str.length > defaultMaxEmailLength) {\n return false;\n }\n var parts = str.split('@');\n var domain = parts.pop();\n var lower_domain = domain.toLowerCase();\n if (options.host_blacklist.length > 0 && checkHost(lower_domain, options.host_blacklist)) {\n return false;\n }\n if (options.host_whitelist.length > 0 && !checkHost(lower_domain, options.host_whitelist)) {\n return false;\n }\n var user = parts.join('@');\n if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) {\n /*\n Previously we removed dots for gmail addresses before validating.\n This was removed because it allows `multiple..dots@gmail.com`\n to be reported as valid, but it is not.\n Gmail only normalizes single dots, removing them from here is pointless,\n should be done in normalizeEmail\n */\n user = user.toLowerCase();\n\n // Removing sub-address from username before gmail validation\n var username = user.split('+')[0];\n\n // Dots are not included in gmail length restriction\n if (!isByteLength(username.replace(/\\./g, ''), {\n min: 6,\n max: 30\n })) {\n return false;\n }\n var _user_parts = username.split('.');\n for (var i = 0; i < _user_parts.length; i++) {\n if (!gmailUserPart.test(_user_parts[i])) {\n return false;\n }\n }\n }\n if (options.ignore_max_length === false && (!isByteLength(user, {\n max: 64\n }) || !isByteLength(domain, {\n max: 254\n }))) {\n return false;\n }\n if (!isFQDN(domain, {\n require_tld: options.require_tld,\n ignore_max_length: options.ignore_max_length,\n allow_underscores: options.allow_underscores\n })) {\n if (!options.allow_ip_domain) {\n return false;\n }\n if (!isIP(domain)) {\n if (!domain.startsWith('[') || !domain.endsWith(']')) {\n return false;\n }\n var noBracketdomain = domain.slice(1, -1);\n if (noBracketdomain.length === 0 || !isIP(noBracketdomain)) {\n return false;\n }\n }\n }\n if (options.blacklisted_chars) {\n if (user.search(new RegExp(\"[\".concat(options.blacklisted_chars, \"]+\"), 'g')) !== -1) return false;\n }\n if (user[0] === '\"' && user[user.length - 1] === '\"') {\n user = user.slice(1, user.length - 1);\n return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);\n }\n var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;\n var user_parts = user.split('.');\n for (var _i = 0; _i < user_parts.length; _i++) {\n if (!pattern.test(user_parts[_i])) {\n return false;\n }\n }\n return true;\n}"],"names":["_typeof"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plentymarkets/shop-api",
3
- "version": "0.148.0",
3
+ "version": "0.148.1",
4
4
  "sideEffects": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -47,5 +47,5 @@
47
47
  "lib/**/*",
48
48
  "server/**/*"
49
49
  ],
50
- "gitHead": "8b9c11df28aa265830ed9333fb9f8985edd78d52"
50
+ "gitHead": "21dd32b60911de7ef1bc60490bc16e4c956ec78c"
51
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"email.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/email.helper.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,UA+B5B,CAAC;AACF,eAAO,MAAM,aAAa,qBAIzB,CAAC;AA+BF,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,OAgB7C,CAAC"}
1
+ {"version":3,"file":"email.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/email.helper.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,UA+B5B,CAAC;AACF,eAAO,MAAM,aAAa,qBAIzB,CAAC;AA+BF,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,OAgB7C,CAAC"}
package/server/index.js CHANGED
@@ -169,8 +169,8 @@ const getProductsByIds = async (context, params) => {
169
169
  const url = new URL('/rest/storefront/items', context.config.api.url);
170
170
  if (params.variationIds) {
171
171
  url.searchParams.set('type', 'variation-list');
172
- for (const itemId of params.variationIds) {
173
- url.searchParams.append('variationIds[]', itemId.toString());
172
+ for (const variationId of params.variationIds) {
173
+ url.searchParams.append('variationIds[]', variationId.toString());
174
174
  }
175
175
  }
176
176
  else {