@faire-auth/stripe 1.0.3 → 1.1.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,24 +1,29 @@
1
+ $ tsdown
2
+ ℹ tsdown v0.23.7 powered by rolldown v1.3.1
3
+ ℹ config file: /home/runner/work/faire-auth/faire-auth/packages/stripe/tsdown.config.ts
4
+ ℹ entry: ./src/index.ts, ./src/client.ts
5
+ ℹ tsconfig: tsconfig.json
6
+ ℹ Build start
1
7
 
2
- > @faire-auth/stripe@1.0.2 build /home/runner/work/faire-auth/faire-auth/packages/stripe
3
- > tsdown
8
+ WARN The `tsgo` generator on TypeScript 7.0 is deprecated and will be removed in the next minor. Upgrade to TypeScript 7.1 or later.
4
9
 
5
- ℹ tsdown v0.16.1 powered by rolldown v1.0.0-beta.47
6
- ℹ Using tsdown config: /home/runner/work/faire-auth/faire-auth/packages/stripe/tsdown.config.ts
7
- ℹ entry: src/client.ts, src/index.ts
8
- ℹ tsconfig: tsconfig.json
9
- ℹ Build start
10
- ℹ [CJS] dist/index.cjs 40.22 kB │ gzip: 7.48 kB
11
- ℹ [CJS] dist/client.cjs  0.28 kB │ gzip: 0.20 kB
12
- ℹ [CJS] 2 files, total: 40.49 kB
13
- ℹ [ESM] dist/index.mjs 36.84 kB │ gzip: 7.01 kB
14
- ℹ [ESM] dist/client.mjs  0.26 kB │ gzip: 0.20 kB
15
- ℹ [ESM] dist/client.d.mts  0.61 kB │ gzip: 0.34 kB
16
- ℹ [ESM] dist/index.d.mts  0.17 kB │ gzip: 0.13 kB
17
- ℹ [ESM] dist/index-CYV4awaB.d.mts 32.50 kB │ gzip: 4.04 kB
18
- ℹ [ESM] 5 files, total: 70.38 kB
19
- ℹ [CJS] dist/client.d.cts  0.61 kB │ gzip: 0.34 kB
20
- ℹ [CJS] dist/index.d.cts  0.17 kB │ gzip: 0.13 kB
21
- ℹ [CJS] dist/index-6UTHxaqg.d.cts 32.50 kB │ gzip: 4.04 kB
22
- ℹ [CJS] 3 files, total: 33.27 kB
23
- ✔ No publint issues found (373ms)
24
- ✔ Build complete in 28035ms
10
+ ℹ Emit types with typescript@7.0.2
11
+
12
+ WARN The `tsgo` generator on TypeScript 7.0 is deprecated and will be removed in the next minor. Upgrade to TypeScript 7.1 or later.
13
+
14
+ ℹ [CJS] dist/index.cjs 41.76 kB │ gzip: 7.87 kB
15
+ ℹ [CJS] dist/client.cjs 0.33 kB │ gzip: 0.24 kB
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
27
+ ℹ [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
+ ℹ [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
+ ℹ [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.cjs CHANGED
@@ -1,5 +1,5 @@
1
-
2
- //#region src/client.ts
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ // src/client.ts
3
3
  const stripeClient = (options) => {
4
4
  return {
5
5
  id: "stripe-client",
@@ -10,6 +10,4 @@ const stripeClient = (options) => {
10
10
  }
11
11
  };
12
12
  };
13
-
14
- //#endregion
15
- exports.stripeClient = stripeClient;
13
+ exports.stripeClient = stripeClient;
package/dist/client.d.cts CHANGED
@@ -1,25 +1,3 @@
1
- import { n as stripe } from "./index-6UTHxaqg.cjs";
2
-
3
- //#region src/client.d.ts
4
- declare const stripeClient: <O extends {
1
+ export declare const stripeClient: <O extends {
5
2
  subscription: boolean;
6
- }>(options?: O) => {
7
- id: "stripe-client";
8
- $InferServerPlugin: ReturnType<typeof stripe<O["subscription"] extends true ? {
9
- stripeClient: any;
10
- stripeWebhookSecret: string;
11
- subscription: {
12
- enabled: true;
13
- plans: [];
14
- };
15
- } : {
16
- stripeClient: any;
17
- stripeWebhookSecret: string;
18
- }>>;
19
- pathMethods: {
20
- "/subscription/restore": "POST";
21
- "/subscription/billing-portal": "POST";
22
- };
23
- };
24
- //#endregion
25
- export { stripeClient };
3
+ }>(options?: O) => FaireAuthClientPlugin;
package/dist/client.d.mts CHANGED
@@ -1,25 +1,3 @@
1
- import { n as stripe } from "./index-CYV4awaB.mjs";
2
-
3
- //#region src/client.d.ts
4
- declare const stripeClient: <O extends {
1
+ export declare const stripeClient: <O extends {
5
2
  subscription: boolean;
6
- }>(options?: O) => {
7
- id: "stripe-client";
8
- $InferServerPlugin: ReturnType<typeof stripe<O["subscription"] extends true ? {
9
- stripeClient: any;
10
- stripeWebhookSecret: string;
11
- subscription: {
12
- enabled: true;
13
- plans: [];
14
- };
15
- } : {
16
- stripeClient: any;
17
- stripeWebhookSecret: string;
18
- }>>;
19
- pathMethods: {
20
- "/subscription/restore": "POST";
21
- "/subscription/billing-portal": "POST";
22
- };
23
- };
24
- //#endregion
25
- export { stripeClient };
3
+ }>(options?: O) => FaireAuthClientPlugin;
package/dist/client.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/client.ts
1
+ // src/client.ts
2
2
  const stripeClient = (options) => {
3
3
  return {
4
4
  id: "stripe-client",
@@ -9,6 +9,4 @@ const stripeClient = (options) => {
9
9
  }
10
10
  };
11
11
  };
12
-
13
- //#endregion
14
- export { stripeClient };
12
+ export { stripeClient };