@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.cjs.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var require$$4 = require('crypto');
|
|
6
|
-
|
|
7
5
|
/**
|
|
8
6
|
* Card validation utilities for VoxePay Checkout
|
|
9
7
|
*/
|
|
@@ -221,6 +219,31 @@ function getDefaultExportFromCjs (x) {
|
|
|
221
219
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
222
220
|
}
|
|
223
221
|
|
|
222
|
+
function getAugmentedNamespace(n) {
|
|
223
|
+
if (n.__esModule) return n;
|
|
224
|
+
var f = n.default;
|
|
225
|
+
if (typeof f == "function") {
|
|
226
|
+
var a = function a () {
|
|
227
|
+
if (this instanceof a) {
|
|
228
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
229
|
+
}
|
|
230
|
+
return f.apply(this, arguments);
|
|
231
|
+
};
|
|
232
|
+
a.prototype = f.prototype;
|
|
233
|
+
} else a = {};
|
|
234
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
235
|
+
Object.keys(n).forEach(function (k) {
|
|
236
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
237
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
238
|
+
enumerable: true,
|
|
239
|
+
get: function () {
|
|
240
|
+
return n[k];
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
return a;
|
|
245
|
+
}
|
|
246
|
+
|
|
224
247
|
/**
|
|
225
248
|
* Node.js module for Forge.
|
|
226
249
|
*
|
|
@@ -8277,6 +8300,15 @@ function _createCipher(options) {
|
|
|
8277
8300
|
return cipher;
|
|
8278
8301
|
}
|
|
8279
8302
|
|
|
8303
|
+
var crypto$1 = {};
|
|
8304
|
+
|
|
8305
|
+
var crypto$2 = /*#__PURE__*/Object.freeze({
|
|
8306
|
+
__proto__: null,
|
|
8307
|
+
default: crypto$1
|
|
8308
|
+
});
|
|
8309
|
+
|
|
8310
|
+
var require$$8 = /*@__PURE__*/getAugmentedNamespace(crypto$2);
|
|
8311
|
+
|
|
8280
8312
|
/**
|
|
8281
8313
|
* Password-Based Key-Derivation Function #2 implementation.
|
|
8282
8314
|
*
|
|
@@ -8296,7 +8328,7 @@ var pkcs5 = forge$r.pkcs5 = forge$r.pkcs5 || {};
|
|
|
8296
8328
|
|
|
8297
8329
|
var crypto;
|
|
8298
8330
|
if(forge$r.util.isNodejs && !forge$r.options.usePureJavaScript) {
|
|
8299
|
-
crypto = require$$
|
|
8331
|
+
crypto = require$$8;
|
|
8300
8332
|
}
|
|
8301
8333
|
|
|
8302
8334
|
/**
|
|
@@ -8837,7 +8869,7 @@ var forge$p = forge$D;
|
|
|
8837
8869
|
var _crypto$1 = null;
|
|
8838
8870
|
if(forge$p.util.isNodejs && !forge$p.options.usePureJavaScript &&
|
|
8839
8871
|
!process.versions['node-webkit']) {
|
|
8840
|
-
_crypto$1 = require$$
|
|
8872
|
+
_crypto$1 = require$$8;
|
|
8841
8873
|
}
|
|
8842
8874
|
|
|
8843
8875
|
/* PRNG API */
|
|
@@ -12064,7 +12096,7 @@ if(typeof BigInteger$3 === 'undefined') {
|
|
|
12064
12096
|
var BigInteger$3 = forge$i.jsbn.BigInteger;
|
|
12065
12097
|
}
|
|
12066
12098
|
|
|
12067
|
-
var _crypto = forge$i.util.isNodejs ? require$$
|
|
12099
|
+
var _crypto = forge$i.util.isNodejs ? require$$8 : null;
|
|
12068
12100
|
|
|
12069
12101
|
// shortcut for asn.1 API
|
|
12070
12102
|
var asn1$7 = forge$i.asn1;
|