@tsed/stripe 8.34.0 → 8.36.0
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { StoreSet, useDecorators, useMethodDecorators } from "@tsed/core";
|
|
2
|
-
import {
|
|
2
|
+
import { WebhookEventMiddleware } from "../middlewares/WebhookEventMiddleware.js";
|
|
3
3
|
import { Context } from "@tsed/platform-params";
|
|
4
4
|
import { In } from "@tsed/schema";
|
|
5
5
|
import { STRIPE_WEBHOOK_EVENT } from "../constants/constants.js";
|
|
6
|
-
import {
|
|
6
|
+
import { UseBefore } from "@tsed/platform-middlewares";
|
|
7
7
|
/**
|
|
8
8
|
* Get the stripe webhook event.
|
|
9
9
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var WebhookEventMiddleware_1;
|
|
2
2
|
import { __decorate, __metadata, __param } from "tslib";
|
|
3
3
|
import "../services/StripeFactory.js";
|
|
4
|
-
import { Constant, Inject } from "@tsed/di";
|
|
5
4
|
import { BadRequest, InternalServerError } from "@tsed/exceptions";
|
|
6
|
-
import {
|
|
5
|
+
import { Constant, Inject } from "@tsed/di";
|
|
7
6
|
import { Context, HeaderParams, RawBodyParams } from "@tsed/platform-params";
|
|
8
|
-
import {
|
|
7
|
+
import { Middleware } from "@tsed/platform-middlewares";
|
|
9
8
|
import { STRIPE_WEBHOOK_EVENT, STRIPE_WEBHOOK_SIGNATURE } from "../constants/constants.js";
|
|
9
|
+
import { Stripe } from "stripe";
|
|
10
10
|
let WebhookEventMiddleware = WebhookEventMiddleware_1 = class WebhookEventMiddleware {
|
|
11
11
|
use(signature, body, ctx) {
|
|
12
12
|
const { secret, tolerance } = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../services/StripeFactory.js";
|
|
2
|
-
import { MiddlewareMethods } from "@tsed/platform-middlewares";
|
|
3
2
|
import { Context } from "@tsed/platform-params";
|
|
3
|
+
import { MiddlewareMethods } from "@tsed/platform-middlewares";
|
|
4
4
|
import { Stripe } from "stripe";
|
|
5
5
|
export interface WebhookEventOptions {
|
|
6
6
|
secret: string;
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/stripe",
|
|
3
|
+
"version": "8.36.0",
|
|
3
4
|
"description": "Stripe package for Ts.ED framework",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"version": "8.34.0",
|
|
6
5
|
"keywords": [
|
|
7
6
|
"Stripe",
|
|
8
7
|
"Ts.ED",
|
|
9
|
-
"tsed",
|
|
10
8
|
"TypeScript",
|
|
11
9
|
"decorators",
|
|
12
10
|
"express",
|
|
13
|
-
"koa"
|
|
11
|
+
"koa",
|
|
12
|
+
"tsed"
|
|
14
13
|
],
|
|
15
14
|
"source": "./src/index.ts",
|
|
15
|
+
"type": "module",
|
|
16
16
|
"main": "./lib/esm/index.js",
|
|
17
17
|
"module": "./lib/esm/index.js",
|
|
18
18
|
"typings": "./lib/types/index.d.ts",
|
|
@@ -35,16 +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.
|
|
47
|
-
"eslint": "9.12.0",
|
|
38
|
+
"@tsed/adapters": "8.36.0",
|
|
39
|
+
"@tsed/barrels": "8.36.0",
|
|
40
|
+
"@tsed/core": "8.36.0",
|
|
41
|
+
"@tsed/di": "8.36.0",
|
|
42
|
+
"@tsed/exceptions": "8.36.0",
|
|
43
|
+
"@tsed/platform-middlewares": "8.36.0",
|
|
44
|
+
"@tsed/platform-params": "8.36.0",
|
|
45
|
+
"@tsed/schema": "8.36.0",
|
|
46
|
+
"@tsed/typescript": "8.36.0",
|
|
48
47
|
"stripe": "^17.7.0",
|
|
49
48
|
"typescript": "6.0.2",
|
|
50
49
|
"vitest": "4.1.4"
|