@tsed/stripe 8.0.0-beta.3 → 8.0.0-beta.5

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.
Files changed (2) hide show
  1. package/package.json +14 -14
  2. package/readme.md +6 -4
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.0.0-beta.3",
5
+ "version": "8.0.0-beta.5",
6
6
  "keywords": [
7
7
  "Stripe",
8
8
  "Ts.ED",
@@ -34,25 +34,25 @@
34
34
  "tslib": "2.7.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@tsed/adapters": "8.0.0-beta.3",
38
- "@tsed/barrels": "8.0.0-beta.3",
39
- "@tsed/core": "8.0.0-beta.3",
40
- "@tsed/di": "8.0.0-beta.3",
41
- "@tsed/exceptions": "8.0.0-beta.3",
42
- "@tsed/platform-middlewares": "8.0.0-beta.3",
43
- "@tsed/platform-params": "8.0.0-beta.3",
44
- "@tsed/schema": "8.0.0-beta.3",
45
- "@tsed/typescript": "8.0.0-beta.3",
37
+ "@tsed/adapters": "8.0.0-beta.5",
38
+ "@tsed/barrels": "8.0.0-beta.5",
39
+ "@tsed/core": "8.0.0-beta.5",
40
+ "@tsed/di": "8.0.0-beta.5",
41
+ "@tsed/exceptions": "8.0.0-beta.5",
42
+ "@tsed/platform-middlewares": "8.0.0-beta.5",
43
+ "@tsed/platform-params": "8.0.0-beta.5",
44
+ "@tsed/schema": "8.0.0-beta.5",
45
+ "@tsed/typescript": "8.0.0-beta.5",
46
46
  "eslint": "9.12.0",
47
47
  "stripe": "^8.222.0",
48
48
  "typescript": "5.4.5",
49
49
  "vitest": "2.1.2"
50
50
  },
51
51
  "peerDependencies": {
52
- "@tsed/exceptions": "8.0.0-beta.3",
53
- "@tsed/platform-middlewares": "8.0.0-beta.3",
54
- "@tsed/platform-params": "8.0.0-beta.3",
55
- "@tsed/schema": "8.0.0-beta.3",
52
+ "@tsed/exceptions": "8.0.0-beta.5",
53
+ "@tsed/platform-middlewares": "8.0.0-beta.5",
54
+ "@tsed/platform-params": "8.0.0-beta.5",
55
+ "@tsed/schema": "8.0.0-beta.5",
56
56
  "@types/body-parser": "^1.19.0",
57
57
  "body-parser": "^1.19.0",
58
58
  "stripe": "^9.16.0"
package/readme.md CHANGED
@@ -49,7 +49,8 @@ npm install --save stripe
49
49
  Then import `@tsed/stripe` in your Server:
50
50
 
51
51
  ```typescript
52
- import {Configuration, PlatformApplication} from "@tsed/common";
52
+ import {PlatformApplication} from "@tsed/platform-http";
53
+ import {Configuration} from "@tsed/di";
53
54
  import "@tsed/stripe";
54
55
  import {Stripe} from "stripe";
55
56
 
@@ -129,7 +130,8 @@ Stripe can optionally sign the webhook events it sends to your endpoint, allowin
129
130
  To register a Stripe webhook with Ts.ED, just use the `@WebhookEvent` decorator. It'll call for you the `stripe.webhooks.constructEvent` with the right parameters:
130
131
 
131
132
  ```typescript
132
- import {RawBodyParams, HeaderParams, Controller, Context} from "@tsed/common";
133
+ import {RawBodyParams, HeaderParams, Context} from "@tsed/platform-params";
134
+ import {Controller} from "@tsed/di";
133
135
  import {Stripe} from "stripe";
134
136
 
135
137
  @Controller("/webhooks")
@@ -152,7 +154,7 @@ You can use stripe.webhooks.generateTestHeaderString to mock webhook events that
152
154
 
153
155
  ```typescript
154
156
  import {Stripe} from "stripe";
155
- import {PlatformTest} from "@tsed/common";
157
+ import {PlatformTest} from "@tsed/platform-http/testing";
156
158
  import {StripWebhookCtrl} from "./StripWebhookCtrl.js";
157
159
 
158
160
  describe("StripWebhookCtrl", () => {
@@ -197,7 +199,7 @@ describe("StripWebhookCtrl", () => {
197
199
  With SuperTest:
198
200
 
199
201
  ```typescript
200
- import {PlatformTest} from "@tsed/common";
202
+ import {PlatformTest} from "@tsed/platform-http/testing";
201
203
  import {PlatformExpress} from "@tsed/platform-express";
202
204
  import {PlatformTestUtils} from "@tsed/platform-test-utils";
203
205
  import {expect} from "chai";