@stacksjs/payments 0.58.51 → 0.58.53
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.js +22 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -26,6 +26,21 @@ var __export = (target, all) => {
|
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
// /home/runner/work/stacks/stacks/node_modules/es-errors/range.js
|
|
30
|
+
var require_range = __commonJS((exports, module) => {
|
|
31
|
+
module.exports = RangeError;
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// /home/runner/work/stacks/stacks/node_modules/es-errors/syntax.js
|
|
35
|
+
var require_syntax = __commonJS((exports, module) => {
|
|
36
|
+
module.exports = SyntaxError;
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
// /home/runner/work/stacks/stacks/node_modules/es-errors/type.js
|
|
40
|
+
var require_type = __commonJS((exports, module) => {
|
|
41
|
+
module.exports = TypeError;
|
|
42
|
+
});
|
|
43
|
+
|
|
29
44
|
// /home/runner/work/stacks/stacks/node_modules/has-symbols/shams.js
|
|
30
45
|
var require_shams = __commonJS((exports, module) => {
|
|
31
46
|
module.exports = function hasSymbols() {
|
|
@@ -191,9 +206,10 @@ var require_hasown = __commonJS((exports, module) => {
|
|
|
191
206
|
// /home/runner/work/stacks/stacks/node_modules/get-intrinsic/index.js
|
|
192
207
|
var require_get_intrinsic = __commonJS((exports, module) => {
|
|
193
208
|
var undefined2;
|
|
194
|
-
var $
|
|
209
|
+
var $RangeError = require_range();
|
|
210
|
+
var $SyntaxError = require_syntax();
|
|
211
|
+
var $TypeError = require_type();
|
|
195
212
|
var $Function = Function;
|
|
196
|
-
var $TypeError = TypeError;
|
|
197
213
|
var getEvalledConstructor = function(expressionSyntax) {
|
|
198
214
|
try {
|
|
199
215
|
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
@@ -231,6 +247,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
231
247
|
var needsEval = {};
|
|
232
248
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
|
|
233
249
|
var INTRINSICS = {
|
|
250
|
+
__proto__: null,
|
|
234
251
|
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
235
252
|
"%Array%": Array,
|
|
236
253
|
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
@@ -275,7 +292,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
275
292
|
"%parseInt%": parseInt,
|
|
276
293
|
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
277
294
|
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
278
|
-
"%RangeError%": RangeError,
|
|
295
|
+
"%RangeError%": $RangeError,
|
|
279
296
|
"%ReferenceError%": ReferenceError,
|
|
280
297
|
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
281
298
|
"%RegExp%": RegExp,
|
|
@@ -330,6 +347,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
330
347
|
return value;
|
|
331
348
|
};
|
|
332
349
|
var LEGACY_ALIASES = {
|
|
350
|
+
__proto__: null,
|
|
333
351
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
334
352
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
335
353
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -5938,7 +5956,7 @@ function createWebhooks(platformFunctions) {
|
|
|
5938
5956
|
|
|
5939
5957
|
// /home/runner/work/stacks/stacks/node_modules/stripe/esm/stripe.core.js
|
|
5940
5958
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
5941
|
-
Stripe.PACKAGE_VERSION = "14.
|
|
5959
|
+
Stripe.PACKAGE_VERSION = "14.15.0";
|
|
5942
5960
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: "node", publisher: "stripe", uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
5943
5961
|
Stripe.StripeResource = StripeResource;
|
|
5944
5962
|
Stripe.resources = exports_resources;
|
|
@@ -5965,9 +5983,6 @@ function createStripe(platformFunctions, requestSender = defaultRequestSenderFac
|
|
|
5965
5983
|
this.on = this._emitter.on.bind(this._emitter);
|
|
5966
5984
|
this.once = this._emitter.once.bind(this._emitter);
|
|
5967
5985
|
this.off = this._emitter.removeListener.bind(this._emitter);
|
|
5968
|
-
if (props.protocol && props.protocol !== "https" && (!props.host || /\.stripe\.com$/.test(props.host))) {
|
|
5969
|
-
throw new Error("The `https` protocol must be used when sending requests to `*.stripe.com`");
|
|
5970
|
-
}
|
|
5971
5986
|
const agent = props.httpAgent || null;
|
|
5972
5987
|
this._api = {
|
|
5973
5988
|
auth: null,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/payments",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.53",
|
|
5
5
|
"description": "The Stacks payments package. Currently supporting Stripe.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@stacksjs/utils": "latest",
|
|
54
54
|
"@stripe/stripe-js": "^2.4.0",
|
|
55
|
-
"stripe": "^14.
|
|
55
|
+
"stripe": "^14.15.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@stacksjs/config": "latest",
|