@shware/purchase 5.2.0 → 5.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/README.md +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -50,8 +50,8 @@ import {
|
|
|
50
50
|
The constants are `as const` arrays, so they can back database enums directly:
|
|
51
51
|
|
|
52
52
|
```ts
|
|
53
|
-
import { pgEnum } from 'drizzle-orm/pg-core';
|
|
54
53
|
import { PLATFORMS, SUBSCRIPTION_STATUSES } from '@shware/purchase';
|
|
54
|
+
import { pgEnum } from 'drizzle-orm/pg-core';
|
|
55
55
|
|
|
56
56
|
export const platform = pgEnum('platform', PLATFORMS);
|
|
57
57
|
export const subscriptionStatus = pgEnum('subscription_status', SUBSCRIPTION_STATUSES);
|
|
@@ -136,7 +136,6 @@ per event, so each handler receives the right `event.data.object`; `process` thr
|
|
|
136
136
|
type with no handler.
|
|
137
137
|
|
|
138
138
|
```ts
|
|
139
|
-
import Stripe from 'stripe';
|
|
140
139
|
import {
|
|
141
140
|
METADATA_KEYS,
|
|
142
141
|
StripeEventHandler,
|
|
@@ -144,6 +143,7 @@ import {
|
|
|
144
143
|
mapSubscriptionStatus,
|
|
145
144
|
mapTime,
|
|
146
145
|
} from '@shware/purchase/stripe';
|
|
146
|
+
import Stripe from 'stripe';
|
|
147
147
|
|
|
148
148
|
const stripe = new Stripe(env.STRIPE_SECRET_KEY);
|
|
149
149
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shware/purchase",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@shware/utils": "^1.
|
|
59
|
+
"@shware/utils": "^1.7.0",
|
|
60
60
|
"@types/ms": "^2.1.0",
|
|
61
61
|
"ms": "^2.1.3"
|
|
62
62
|
},
|