@tsed/stripe 8.17.3 → 8.18.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/package.json +10 -10
- package/readme.md +17 -7
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/stripe",
|
|
3
3
|
"description": "Stripe package for Ts.ED framework",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.
|
|
5
|
+
"version": "8.18.1",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"Stripe",
|
|
8
8
|
"Ts.ED",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"tslib": "2.7.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@tsed/adapters": "8.
|
|
39
|
-
"@tsed/barrels": "8.
|
|
40
|
-
"@tsed/core": "8.
|
|
41
|
-
"@tsed/di": "8.
|
|
42
|
-
"@tsed/exceptions": "8.
|
|
43
|
-
"@tsed/platform-middlewares": "8.
|
|
44
|
-
"@tsed/platform-params": "8.
|
|
45
|
-
"@tsed/schema": "8.
|
|
46
|
-
"@tsed/typescript": "8.
|
|
38
|
+
"@tsed/adapters": "8.18.1",
|
|
39
|
+
"@tsed/barrels": "8.18.1",
|
|
40
|
+
"@tsed/core": "8.18.1",
|
|
41
|
+
"@tsed/di": "8.18.1",
|
|
42
|
+
"@tsed/exceptions": "8.18.1",
|
|
43
|
+
"@tsed/platform-middlewares": "8.18.1",
|
|
44
|
+
"@tsed/platform-params": "8.18.1",
|
|
45
|
+
"@tsed/schema": "8.18.1",
|
|
46
|
+
"@tsed/typescript": "8.18.1",
|
|
47
47
|
"eslint": "9.12.0",
|
|
48
48
|
"stripe": "^17.7.0",
|
|
49
49
|
"typescript": "5.4.5",
|
package/readme.md
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<span> • </span>
|
|
21
21
|
<a href="https://tsed.dev/getting-started/">Getting started</a>
|
|
22
22
|
<span> • </span>
|
|
23
|
-
<a href="https://slack.tsed.
|
|
23
|
+
<a href="https://slack.tsed.dev">Slack</a>
|
|
24
24
|
<span> • </span>
|
|
25
25
|
<a href="https://twitter.com/TsED_io">Twitter</a>
|
|
26
26
|
</div>
|
|
@@ -125,9 +125,11 @@ class MyStripeService {
|
|
|
125
125
|
|
|
126
126
|
## Webhook signing
|
|
127
127
|
|
|
128
|
-
Stripe can optionally sign the webhook events it sends to your endpoint, allowing you to validate that they were not
|
|
128
|
+
Stripe can optionally sign the webhook events it sends to your endpoint, allowing you to validate that they were not
|
|
129
|
+
sent by a third-party. You can read more about it [here](https://stripe.com/docs/webhooks#signatures).
|
|
129
130
|
|
|
130
|
-
To register a Stripe webhook with Ts.ED, just use the `@WebhookEvent` decorator. It'll call for you the
|
|
131
|
+
To register a Stripe webhook with Ts.ED, just use the `@WebhookEvent` decorator. It'll call for you the
|
|
132
|
+
`stripe.webhooks.constructEvent` with the right parameters:
|
|
131
133
|
|
|
132
134
|
```typescript
|
|
133
135
|
import {RawBodyParams, HeaderParams, Context} from "@tsed/platform-params";
|
|
@@ -266,7 +268,8 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com
|
|
|
266
268
|
|
|
267
269
|
## Sponsors
|
|
268
270
|
|
|
269
|
-
Support this project by becoming a sponsor. Your logo will show up here with a link to your
|
|
271
|
+
Support this project by becoming a sponsor. Your logo will show up here with a link to your
|
|
272
|
+
website. [[Become a sponsor](https://opencollective.com/tsed#sponsor)]
|
|
270
273
|
|
|
271
274
|
## License
|
|
272
275
|
|
|
@@ -274,8 +277,15 @@ The MIT License (MIT)
|
|
|
274
277
|
|
|
275
278
|
Copyright (c) 2016 - 2022 Romain Lenzotti
|
|
276
279
|
|
|
277
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
280
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
281
|
+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
|
282
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
283
|
+
persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
278
284
|
|
|
279
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
|
285
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
|
286
|
+
Software.
|
|
280
287
|
|
|
281
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
288
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
289
|
+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
290
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
291
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|