@voxepay/checkout 0.3.0 → 0.3.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.
package/dist/index.esm.js CHANGED
@@ -1,5 +1,3 @@
1
- import require$$4 from 'crypto';
2
-
3
1
  /**
4
2
  * Card validation utilities for VoxePay Checkout
5
3
  */
@@ -217,6 +215,31 @@ function getDefaultExportFromCjs (x) {
217
215
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
218
216
  }
219
217
 
218
+ function getAugmentedNamespace(n) {
219
+ if (n.__esModule) return n;
220
+ var f = n.default;
221
+ if (typeof f == "function") {
222
+ var a = function a () {
223
+ if (this instanceof a) {
224
+ return Reflect.construct(f, arguments, this.constructor);
225
+ }
226
+ return f.apply(this, arguments);
227
+ };
228
+ a.prototype = f.prototype;
229
+ } else a = {};
230
+ Object.defineProperty(a, '__esModule', {value: true});
231
+ Object.keys(n).forEach(function (k) {
232
+ var d = Object.getOwnPropertyDescriptor(n, k);
233
+ Object.defineProperty(a, k, d.get ? d : {
234
+ enumerable: true,
235
+ get: function () {
236
+ return n[k];
237
+ }
238
+ });
239
+ });
240
+ return a;
241
+ }
242
+
220
243
  /**
221
244
  * Node.js module for Forge.
222
245
  *
@@ -8273,6 +8296,15 @@ function _createCipher(options) {
8273
8296
  return cipher;
8274
8297
  }
8275
8298
 
8299
+ var crypto$1 = {};
8300
+
8301
+ var crypto$2 = /*#__PURE__*/Object.freeze({
8302
+ __proto__: null,
8303
+ default: crypto$1
8304
+ });
8305
+
8306
+ var require$$8 = /*@__PURE__*/getAugmentedNamespace(crypto$2);
8307
+
8276
8308
  /**
8277
8309
  * Password-Based Key-Derivation Function #2 implementation.
8278
8310
  *
@@ -8292,7 +8324,7 @@ var pkcs5 = forge$r.pkcs5 = forge$r.pkcs5 || {};
8292
8324
 
8293
8325
  var crypto;
8294
8326
  if(forge$r.util.isNodejs && !forge$r.options.usePureJavaScript) {
8295
- crypto = require$$4;
8327
+ crypto = require$$8;
8296
8328
  }
8297
8329
 
8298
8330
  /**
@@ -8833,7 +8865,7 @@ var forge$p = forge$D;
8833
8865
  var _crypto$1 = null;
8834
8866
  if(forge$p.util.isNodejs && !forge$p.options.usePureJavaScript &&
8835
8867
  !process.versions['node-webkit']) {
8836
- _crypto$1 = require$$4;
8868
+ _crypto$1 = require$$8;
8837
8869
  }
8838
8870
 
8839
8871
  /* PRNG API */
@@ -12060,7 +12092,7 @@ if(typeof BigInteger$3 === 'undefined') {
12060
12092
  var BigInteger$3 = forge$i.jsbn.BigInteger;
12061
12093
  }
12062
12094
 
12063
- var _crypto = forge$i.util.isNodejs ? require$$4 : null;
12095
+ var _crypto = forge$i.util.isNodejs ? require$$8 : null;
12064
12096
 
12065
12097
  // shortcut for asn.1 API
12066
12098
  var asn1$7 = forge$i.asn1;