Skip to content

Commit bf5bc3a

Browse files
committed
fix: plugin-stripe
1 parent 373d31b commit bf5bc3a

File tree

5 files changed

+101
-565
lines changed

5 files changed

+101
-565
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18.17.1
1+
v22.6.0

packages/mzinga/src/fields/hooks/afterChange/promise.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const promise = async ({
108108
previousSiblingDoc: previousDoc?.[field.name]?.[i] || ({} as Record<string, unknown>),
109109
req,
110110
siblingData: siblingData?.[field.name]?.[i] || {},
111-
siblingDoc: { ...row } || {},
111+
siblingDoc: { ...row },
112112
}),
113113
)
114114
})
@@ -140,7 +140,7 @@ export const promise = async ({
140140
previousDoc?.[field.name]?.[i] || ({} as Record<string, unknown>),
141141
req,
142142
siblingData: siblingData?.[field.name]?.[i] || {},
143-
siblingDoc: { ...row } || {},
143+
siblingDoc: { ...row },
144144
}),
145145
)
146146
}

packages/plugin-stripe/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"main": "dist/index.js",
1212
"types": "dist/index.d.ts",
1313
"scripts": {
14-
"_build": "pnpm build:swc && pnpm build:types",
14+
"build": "pnpm build:swc && pnpm build:types",
1515
"build:swc": "swc ./src -d ./dist --config-file .swcrc",
1616
"build:types": "tsc --emitDeclarationOnly --outDir dist",
1717
"clean": "rimraf {dist,*.tsbuildinfo}",
1818
"test": "echo 'No tests available.'",
19-
"prepublishOnly": "yarn clean && yarn build",
19+
"prepublishOnly": "pnpm clean && pnpm build",
2020
"version": "npm version"
2121
},
2222
"keywords": [
@@ -33,7 +33,7 @@
3333
"author": "[email protected]",
3434
"license": "MIT",
3535
"peerDependencies": {
36-
"payload": "^1.1.8 || ^2.0.0",
36+
"mzinga": "^1.1.8 || ^2.0.0",
3737
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
3838
},
3939
"dependencies": {
@@ -56,4 +56,4 @@
5656
"types.js",
5757
"types.d.ts"
5858
]
59-
}
59+
}

packages/plugin-stripe/src/routes/webhooks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Response } from 'express'
22
import type { Config as PayloadConfig } from 'mzinga/config'
3-
import type { PayloadRequest } from 'mzinga/dist/types'
3+
import type { PayloadRequest } from 'mzinga/dist/types/index'
44

55
import Stripe from 'stripe'
66

@@ -23,8 +23,8 @@ export const stripeWebhooks = async (args: {
2323
const stripe = new Stripe(stripeSecretKey, {
2424
apiVersion: '2022-08-01',
2525
appInfo: {
26-
name: 'Stripe Payload Plugin',
27-
url: 'https://payloadcms.com',
26+
name: 'Stripe MZinga Plugin',
27+
url: 'https://mzinga.io',
2828
},
2929
})
3030

0 commit comments

Comments
 (0)