@faire-auth/stripe 1.1.0 → 1.1.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.
@@ -1,4 +1,4 @@
1
- $ tsdown
1
+ $ tsc -b && tsdown
2
2
  ℹ tsdown v0.23.7 powered by rolldown v1.3.1
3
3
  ℹ config file: /home/runner/work/faire-auth/faire-auth/packages/stripe/tsdown.config.ts
4
4
  ℹ entry: ./src/index.ts, ./src/client.ts
@@ -14,16 +14,18 @@ $ tsdown
14
14
  ℹ [CJS] dist/index.cjs 41.76 kB │ gzip: 7.87 kB
15
15
  ℹ [CJS] dist/client.cjs 0.33 kB │ gzip: 0.24 kB
16
16
  ℹ [CJS] 2 files, total: 42.09 kB
17
- ℹ [CJS] dist/index.d.cts 8.10 kB │ gzip: 2.11 kB
18
- ℹ [CJS] dist/client.d.cts 0.11 kB │ gzip: 0.12 kB
19
- ℹ [CJS] 2 files, total: 8.22 kB
20
- ✔ Build complete in 2110ms
21
- ℹ [ESM] dist/index.mjs 38.34 kB │ gzip: 7.34 kB
22
- ℹ [ESM] dist/client.mjs 0.24 kB │ gzip: 0.19 kB
23
- ℹ [ESM] dist/index.d.mts 8.10 kB │ gzip: 2.10 kB
24
- ℹ [ESM] dist/client.d.mts 0.11 kB │ gzip: 0.12 kB
25
- ℹ [ESM] 4 files, total: 46.80 kB
26
- ✔ Build complete in 2118ms
17
+ ℹ [CJS] dist/client.d.cts 0.55 kB │ gzip: 0.31 kB
18
+ ℹ [CJS] dist/index.d.cts 0.17 kB │ gzip: 0.13 kB
19
+ ℹ [CJS] dist/index-CWz-G_AJ.d.cts 30.31 kB │ gzip: 3.87 kB
20
+ ℹ [CJS] 3 files, total: 31.04 kB
21
+ ✔ Build complete in 2243ms
22
+ ℹ [ESM] dist/index.mjs 38.34 kB │ gzip: 7.34 kB
23
+ ℹ [ESM] dist/client.mjs 0.24 kB │ gzip: 0.19 kB
24
+ ℹ [ESM] dist/client.d.mts 0.55 kB │ gzip: 0.31 kB
25
+ ℹ [ESM] dist/index.d.mts 0.17 kB │ gzip: 0.13 kB
26
+ ℹ [ESM] dist/index-D4yUrDJc.d.mts 30.31 kB │ gzip: 3.88 kB
27
+ ℹ [ESM] 5 files, total: 69.61 kB
28
+ ✔ Build complete in 2305ms
27
29
  ℹ [publint] The package does not specify the "engines.node" field. Consumers may install it on an unsupported Node.js version. Consider adding the field with your actual minimum supported Node.js version. (This may be a breaking change)
28
30
  ℹ [publint] The package appears to be consumed by bundlers but does not specify "sideEffects". Consider adding "sideEffects": false so bundlers can optimize tree-shaking if your package has no side effects.
29
31
  ℹ [publint] The package publishes internal tests or config files (/src/stripe.test.ts). You can use pkg.files to only publish certain files and save user bandwidth.
package/dist/client.d.cts CHANGED
@@ -1,3 +1,21 @@
1
+ import { n as stripe } from "./index-CWz-G_AJ.cjs";
1
2
  export declare const stripeClient: <O extends {
2
3
  subscription: boolean;
3
- }>(options?: O) => FaireAuthClientPlugin;
4
+ }>(options?: O) => {
5
+ id: "stripe-client";
6
+ $InferServerPlugin: ReturnType<typeof stripe<O["subscription"] extends true ? {
7
+ stripeClient: any;
8
+ stripeWebhookSecret: string;
9
+ subscription: {
10
+ enabled: true;
11
+ plans: [];
12
+ };
13
+ } : {
14
+ stripeClient: any;
15
+ stripeWebhookSecret: string;
16
+ }>>;
17
+ pathMethods: {
18
+ "/subscription/restore": "POST";
19
+ "/subscription/billing-portal": "POST";
20
+ };
21
+ };
package/dist/client.d.mts CHANGED
@@ -1,3 +1,21 @@
1
+ import { n as stripe } from "./index-D4yUrDJc.mjs";
1
2
  export declare const stripeClient: <O extends {
2
3
  subscription: boolean;
3
- }>(options?: O) => FaireAuthClientPlugin;
4
+ }>(options?: O) => {
5
+ id: "stripe-client";
6
+ $InferServerPlugin: ReturnType<typeof stripe<O["subscription"] extends true ? {
7
+ stripeClient: any;
8
+ stripeWebhookSecret: string;
9
+ subscription: {
10
+ enabled: true;
11
+ plans: [];
12
+ };
13
+ } : {
14
+ stripeClient: any;
15
+ stripeWebhookSecret: string;
16
+ }>>;
17
+ pathMethods: {
18
+ "/subscription/restore": "POST";
19
+ "/subscription/billing-portal": "POST";
20
+ };
21
+ };