@pelcro/react-pelcro-js 4.0.0-alpha.111 → 4.0.0-alpha.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -29137,11 +29137,7 @@ function findKey(obj, key) {
29137
29137
  return null;
29138
29138
  }
29139
29139
 
29140
- const _global = (() => {
29141
- /*eslint no-undef:0*/
29142
- if (typeof globalThis !== "undefined") return globalThis;
29143
- return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
29144
- })();
29140
+ const _global = typeof self === "undefined" ? typeof global === "undefined" ? undefined : global : self;
29145
29141
 
29146
29142
  const isContextDefined = (context) => !isUndefined(context) && context !== _global;
29147
29143
 
@@ -44605,7 +44601,7 @@ var followRedirects = wrap({ http: http__default['default'], https: https__defau
44605
44601
  var wrap_1 = wrap;
44606
44602
  followRedirects.wrap = wrap_1;
44607
44603
 
44608
- const VERSION = "1.2.2";
44604
+ const VERSION = "1.2.1";
44609
44605
 
44610
44606
  function parseProtocol(url) {
44611
44607
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -44930,11 +44926,6 @@ const zlibOptions = {
44930
44926
  finishFlush: zlib__default['default'].constants.Z_SYNC_FLUSH
44931
44927
  };
44932
44928
 
44933
- const brotliOptions = {
44934
- flush: zlib__default['default'].constants.BROTLI_OPERATION_FLUSH,
44935
- finishFlush: zlib__default['default'].constants.BROTLI_OPERATION_FLUSH
44936
- };
44937
-
44938
44929
  const isBrotliSupported = utils.isFunction(zlib__default['default'].createBrotliDecompress);
44939
44930
 
44940
44931
  const {http: httpFollow, https: httpsFollow} = followRedirects;
@@ -45325,9 +45316,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
45325
45316
  switch (res.headers['content-encoding']) {
45326
45317
  /*eslint default-case:0*/
45327
45318
  case 'gzip':
45328
- case 'x-gzip':
45329
45319
  case 'compress':
45330
- case 'x-compress':
45331
45320
  case 'deflate':
45332
45321
  // add the unzipper to the body stream processing pipeline
45333
45322
  streams.push(zlib__default['default'].createUnzip(zlibOptions));
@@ -45337,7 +45326,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
45337
45326
  break;
45338
45327
  case 'br':
45339
45328
  if (isBrotliSupported) {
45340
- streams.push(zlib__default['default'].createBrotliDecompress(brotliOptions));
45329
+ streams.push(zlib__default['default'].createBrotliDecompress(zlibOptions));
45341
45330
  delete res.headers['content-encoding'];
45342
45331
  }
45343
45332
  }
@@ -46384,76 +46373,6 @@ function isAxiosError(payload) {
46384
46373
  return utils.isObject(payload) && (payload.isAxiosError === true);
46385
46374
  }
46386
46375
 
46387
- const HttpStatusCode = {
46388
- Continue: 100,
46389
- SwitchingProtocols: 101,
46390
- Processing: 102,
46391
- EarlyHints: 103,
46392
- Ok: 200,
46393
- Created: 201,
46394
- Accepted: 202,
46395
- NonAuthoritativeInformation: 203,
46396
- NoContent: 204,
46397
- ResetContent: 205,
46398
- PartialContent: 206,
46399
- MultiStatus: 207,
46400
- AlreadyReported: 208,
46401
- ImUsed: 226,
46402
- MultipleChoices: 300,
46403
- MovedPermanently: 301,
46404
- Found: 302,
46405
- SeeOther: 303,
46406
- NotModified: 304,
46407
- UseProxy: 305,
46408
- Unused: 306,
46409
- TemporaryRedirect: 307,
46410
- PermanentRedirect: 308,
46411
- BadRequest: 400,
46412
- Unauthorized: 401,
46413
- PaymentRequired: 402,
46414
- Forbidden: 403,
46415
- NotFound: 404,
46416
- MethodNotAllowed: 405,
46417
- NotAcceptable: 406,
46418
- ProxyAuthenticationRequired: 407,
46419
- RequestTimeout: 408,
46420
- Conflict: 409,
46421
- Gone: 410,
46422
- LengthRequired: 411,
46423
- PreconditionFailed: 412,
46424
- PayloadTooLarge: 413,
46425
- UriTooLong: 414,
46426
- UnsupportedMediaType: 415,
46427
- RangeNotSatisfiable: 416,
46428
- ExpectationFailed: 417,
46429
- ImATeapot: 418,
46430
- MisdirectedRequest: 421,
46431
- UnprocessableEntity: 422,
46432
- Locked: 423,
46433
- FailedDependency: 424,
46434
- TooEarly: 425,
46435
- UpgradeRequired: 426,
46436
- PreconditionRequired: 428,
46437
- TooManyRequests: 429,
46438
- RequestHeaderFieldsTooLarge: 431,
46439
- UnavailableForLegalReasons: 451,
46440
- InternalServerError: 500,
46441
- NotImplemented: 501,
46442
- BadGateway: 502,
46443
- ServiceUnavailable: 503,
46444
- GatewayTimeout: 504,
46445
- HttpVersionNotSupported: 505,
46446
- VariantAlsoNegotiates: 506,
46447
- InsufficientStorage: 507,
46448
- LoopDetected: 508,
46449
- NotExtended: 510,
46450
- NetworkAuthenticationRequired: 511,
46451
- };
46452
-
46453
- Object.entries(HttpStatusCode).forEach(([key, value]) => {
46454
- HttpStatusCode[value] = key;
46455
- });
46456
-
46457
46376
  /**
46458
46377
  * Create an instance of Axios
46459
46378
  *
@@ -46515,8 +46434,6 @@ axios.AxiosHeaders = AxiosHeaders;
46515
46434
 
46516
46435
  axios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
46517
46436
 
46518
- axios.HttpStatusCode = HttpStatusCode;
46519
-
46520
46437
  axios.default = axios;
46521
46438
 
46522
46439
  const OrderCreateView = props => {
package/dist/index.esm.js CHANGED
@@ -29095,11 +29095,7 @@ function findKey(obj, key) {
29095
29095
  return null;
29096
29096
  }
29097
29097
 
29098
- const _global = (() => {
29099
- /*eslint no-undef:0*/
29100
- if (typeof globalThis !== "undefined") return globalThis;
29101
- return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
29102
- })();
29098
+ const _global = typeof self === "undefined" ? typeof global === "undefined" ? undefined : global : self;
29103
29099
 
29104
29100
  const isContextDefined = (context) => !isUndefined(context) && context !== _global;
29105
29101
 
@@ -44563,7 +44559,7 @@ var followRedirects = wrap({ http: http, https: https });
44563
44559
  var wrap_1 = wrap;
44564
44560
  followRedirects.wrap = wrap_1;
44565
44561
 
44566
- const VERSION = "1.2.2";
44562
+ const VERSION = "1.2.1";
44567
44563
 
44568
44564
  function parseProtocol(url) {
44569
44565
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -44888,11 +44884,6 @@ const zlibOptions = {
44888
44884
  finishFlush: zlib.constants.Z_SYNC_FLUSH
44889
44885
  };
44890
44886
 
44891
- const brotliOptions = {
44892
- flush: zlib.constants.BROTLI_OPERATION_FLUSH,
44893
- finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
44894
- };
44895
-
44896
44887
  const isBrotliSupported = utils.isFunction(zlib.createBrotliDecompress);
44897
44888
 
44898
44889
  const {http: httpFollow, https: httpsFollow} = followRedirects;
@@ -45283,9 +45274,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
45283
45274
  switch (res.headers['content-encoding']) {
45284
45275
  /*eslint default-case:0*/
45285
45276
  case 'gzip':
45286
- case 'x-gzip':
45287
45277
  case 'compress':
45288
- case 'x-compress':
45289
45278
  case 'deflate':
45290
45279
  // add the unzipper to the body stream processing pipeline
45291
45280
  streams.push(zlib.createUnzip(zlibOptions));
@@ -45295,7 +45284,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
45295
45284
  break;
45296
45285
  case 'br':
45297
45286
  if (isBrotliSupported) {
45298
- streams.push(zlib.createBrotliDecompress(brotliOptions));
45287
+ streams.push(zlib.createBrotliDecompress(zlibOptions));
45299
45288
  delete res.headers['content-encoding'];
45300
45289
  }
45301
45290
  }
@@ -46342,76 +46331,6 @@ function isAxiosError(payload) {
46342
46331
  return utils.isObject(payload) && (payload.isAxiosError === true);
46343
46332
  }
46344
46333
 
46345
- const HttpStatusCode = {
46346
- Continue: 100,
46347
- SwitchingProtocols: 101,
46348
- Processing: 102,
46349
- EarlyHints: 103,
46350
- Ok: 200,
46351
- Created: 201,
46352
- Accepted: 202,
46353
- NonAuthoritativeInformation: 203,
46354
- NoContent: 204,
46355
- ResetContent: 205,
46356
- PartialContent: 206,
46357
- MultiStatus: 207,
46358
- AlreadyReported: 208,
46359
- ImUsed: 226,
46360
- MultipleChoices: 300,
46361
- MovedPermanently: 301,
46362
- Found: 302,
46363
- SeeOther: 303,
46364
- NotModified: 304,
46365
- UseProxy: 305,
46366
- Unused: 306,
46367
- TemporaryRedirect: 307,
46368
- PermanentRedirect: 308,
46369
- BadRequest: 400,
46370
- Unauthorized: 401,
46371
- PaymentRequired: 402,
46372
- Forbidden: 403,
46373
- NotFound: 404,
46374
- MethodNotAllowed: 405,
46375
- NotAcceptable: 406,
46376
- ProxyAuthenticationRequired: 407,
46377
- RequestTimeout: 408,
46378
- Conflict: 409,
46379
- Gone: 410,
46380
- LengthRequired: 411,
46381
- PreconditionFailed: 412,
46382
- PayloadTooLarge: 413,
46383
- UriTooLong: 414,
46384
- UnsupportedMediaType: 415,
46385
- RangeNotSatisfiable: 416,
46386
- ExpectationFailed: 417,
46387
- ImATeapot: 418,
46388
- MisdirectedRequest: 421,
46389
- UnprocessableEntity: 422,
46390
- Locked: 423,
46391
- FailedDependency: 424,
46392
- TooEarly: 425,
46393
- UpgradeRequired: 426,
46394
- PreconditionRequired: 428,
46395
- TooManyRequests: 429,
46396
- RequestHeaderFieldsTooLarge: 431,
46397
- UnavailableForLegalReasons: 451,
46398
- InternalServerError: 500,
46399
- NotImplemented: 501,
46400
- BadGateway: 502,
46401
- ServiceUnavailable: 503,
46402
- GatewayTimeout: 504,
46403
- HttpVersionNotSupported: 505,
46404
- VariantAlsoNegotiates: 506,
46405
- InsufficientStorage: 507,
46406
- LoopDetected: 508,
46407
- NotExtended: 510,
46408
- NetworkAuthenticationRequired: 511,
46409
- };
46410
-
46411
- Object.entries(HttpStatusCode).forEach(([key, value]) => {
46412
- HttpStatusCode[value] = key;
46413
- });
46414
-
46415
46334
  /**
46416
46335
  * Create an instance of Axios
46417
46336
  *
@@ -46473,8 +46392,6 @@ axios.AxiosHeaders = AxiosHeaders;
46473
46392
 
46474
46393
  axios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
46475
46394
 
46476
- axios.HttpStatusCode = HttpStatusCode;
46477
-
46478
46395
  axios.default = axios;
46479
46396
 
46480
46397
  const OrderCreateView = props => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "4.0.0-alpha.111",
4
+ "version": "4.0.0-alpha.112",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",
@@ -103,7 +103,7 @@
103
103
  "@headlessui/react": "^0.3.0",
104
104
  "@stripe/react-stripe-js": "^2.8.1",
105
105
  "@stripe/stripe-js": "^3.5.0",
106
- "axios": "1.2.2",
106
+ "axios": "1.2.1",
107
107
  "gapi-script": "^1.2.0",
108
108
  "i18next": "^19.1.0",
109
109
  "react-easy-crop": "^3.3.2",