stripe 18.2.0 → 18.2.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/CHANGELOG.md +4 -0
- package/VERSION +1 -1
- package/cjs/RequestSender.js +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/RequestSender.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
## 18.2.1 - 2025-06-02
|
|
3
|
+
* [#2346](https://github.com/stripe/stripe-node/pull/2346) Allow data to be set in only `POST` rawRequests
|
|
4
|
+
* Fix bug where `rawRequest` incorrectly emits a warning when sending v2 GET requests
|
|
5
|
+
|
|
2
6
|
## 18.2.0 - 2025-05-29
|
|
3
7
|
This release changes the pinned API version to `2025-05-28.basil`.
|
|
4
8
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
18.2.
|
|
1
|
+
18.2.1
|
package/cjs/RequestSender.js
CHANGED
|
@@ -298,7 +298,7 @@ class RequestSender {
|
|
|
298
298
|
const args = [].slice.call([params, options]);
|
|
299
299
|
// Pull request data and options (headers, auth) from args.
|
|
300
300
|
const dataFromArgs = (0, utils_js_1.getDataFromArgs)(args);
|
|
301
|
-
const data = Object.assign({}, dataFromArgs);
|
|
301
|
+
const data = requestMethod === 'POST' ? Object.assign({}, dataFromArgs) : null;
|
|
302
302
|
const calculatedOptions = (0, utils_js_1.getOptionsFromArgs)(args);
|
|
303
303
|
const headers = calculatedOptions.headers;
|
|
304
304
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
package/cjs/stripe.core.js
CHANGED
|
@@ -36,7 +36,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
36
36
|
];
|
|
37
37
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
38
38
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
39
|
-
Stripe.PACKAGE_VERSION = '18.2.
|
|
39
|
+
Stripe.PACKAGE_VERSION = '18.2.1';
|
|
40
40
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
41
41
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
42
42
|
Stripe.resources = resources;
|
package/esm/RequestSender.js
CHANGED
|
@@ -295,7 +295,7 @@ export class RequestSender {
|
|
|
295
295
|
const args = [].slice.call([params, options]);
|
|
296
296
|
// Pull request data and options (headers, auth) from args.
|
|
297
297
|
const dataFromArgs = getDataFromArgs(args);
|
|
298
|
-
const data = Object.assign({}, dataFromArgs);
|
|
298
|
+
const data = requestMethod === 'POST' ? Object.assign({}, dataFromArgs) : null;
|
|
299
299
|
const calculatedOptions = getOptionsFromArgs(args);
|
|
300
300
|
const headers = calculatedOptions.headers;
|
|
301
301
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
package/esm/stripe.core.js
CHANGED
|
@@ -33,7 +33,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
33
33
|
];
|
|
34
34
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
35
35
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
36
|
-
Stripe.PACKAGE_VERSION = '18.2.
|
|
36
|
+
Stripe.PACKAGE_VERSION = '18.2.1';
|
|
37
37
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
38
38
|
Stripe.StripeResource = StripeResource;
|
|
39
39
|
Stripe.resources = resources;
|