stripe 17.2.0 → 17.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 +6 -0
- package/VERSION +1 -1
- package/cjs/Webhooks.js +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/Webhooks.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/V2/Billing/MeterEventAdjustments.d.ts +1 -1
- package/types/V2/Billing/MeterEventSessions.d.ts +1 -1
- package/types/V2/Billing/MeterEvents.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
## 17.2.1 - 2024-10-18
|
|
3
|
+
* [#2210](https://github.com/stripe/stripe-node/pull/2210) update object tags for meter-related classes
|
|
4
|
+
|
|
5
|
+
- fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server.
|
|
6
|
+
* [#2208](https://github.com/stripe/stripe-node/pull/2208) Update signature verification docs link
|
|
7
|
+
|
|
2
8
|
## 17.2.0 - 2024-10-09
|
|
3
9
|
* [#2201](https://github.com/stripe/stripe-node/pull/2201) Add fetchRelatedObject to V2 Events if needed
|
|
4
10
|
* `fetchRelatedObject` is added to events retrieved using `stripe.v2.core.events` and can be used to easily fetch the Stripe object related to a retrieved event
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
17.2.
|
|
1
|
+
17.2.1
|
package/cjs/Webhooks.js
CHANGED
|
@@ -124,7 +124,7 @@ function createWebhooks(platformFunctions) {
|
|
|
124
124
|
function validateComputedSignature(payload, header, details, expectedSignature, tolerance, suspectPayloadType, secretContainsWhitespace, receivedAt) {
|
|
125
125
|
const signatureFound = !!details.signatures.filter(platformFunctions.secureCompare.bind(platformFunctions, expectedSignature)).length;
|
|
126
126
|
const docsLocation = '\nLearn more about webhook signing and explore webhook integration examples for various frameworks at ' +
|
|
127
|
-
'https://
|
|
127
|
+
'https://docs.stripe.com/webhooks/signature';
|
|
128
128
|
const whitespaceMessage = secretContainsWhitespace
|
|
129
129
|
? '\n\nNote: The provided signing secret contains whitespace. This often indicates an extra newline or space is in the value'
|
|
130
130
|
: '';
|
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 = '17.2.
|
|
39
|
+
Stripe.PACKAGE_VERSION = '17.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/Webhooks.js
CHANGED
|
@@ -121,7 +121,7 @@ export function createWebhooks(platformFunctions) {
|
|
|
121
121
|
function validateComputedSignature(payload, header, details, expectedSignature, tolerance, suspectPayloadType, secretContainsWhitespace, receivedAt) {
|
|
122
122
|
const signatureFound = !!details.signatures.filter(platformFunctions.secureCompare.bind(platformFunctions, expectedSignature)).length;
|
|
123
123
|
const docsLocation = '\nLearn more about webhook signing and explore webhook integration examples for various frameworks at ' +
|
|
124
|
-
'https://
|
|
124
|
+
'https://docs.stripe.com/webhooks/signature';
|
|
125
125
|
const whitespaceMessage = secretContainsWhitespace
|
|
126
126
|
? '\n\nNote: The provided signing secret contains whitespace. This often indicates an extra newline or space is in the value'
|
|
127
127
|
: '';
|
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 = '17.2.
|
|
36
|
+
Stripe.PACKAGE_VERSION = '17.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;
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ declare module 'stripe' {
|
|
|
16
16
|
/**
|
|
17
17
|
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
18
18
|
*/
|
|
19
|
-
object: 'billing.meter_event_adjustment';
|
|
19
|
+
object: 'v2.billing.meter_event_adjustment';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Specifies which event to cancel.
|
|
@@ -16,7 +16,7 @@ declare module 'stripe' {
|
|
|
16
16
|
/**
|
|
17
17
|
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
18
18
|
*/
|
|
19
|
-
object: 'billing.meter_event_session';
|
|
19
|
+
object: 'v2.billing.meter_event_session';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* The authentication token for this session. Use this token when calling the
|
|
@@ -11,7 +11,7 @@ declare module 'stripe' {
|
|
|
11
11
|
/**
|
|
12
12
|
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
13
13
|
*/
|
|
14
|
-
object: 'billing.meter_event';
|
|
14
|
+
object: 'v2.billing.meter_event';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* The creation time of this meter event.
|