@faire-auth/stripe 1.0.4 → 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.
- package/.turbo/turbo-build.log +27 -22
- package/dist/client.cjs +3 -5
- package/dist/client.d.cts +2 -24
- package/dist/client.d.mts +2 -24
- package/dist/client.mjs +2 -4
- package/dist/index.cjs +192 -124
- package/dist/index.d.cts +315 -2
- package/dist/index.d.mts +315 -2
- package/dist/index.mjs +128 -59
- package/package.json +12 -12
- package/tsdown.config.ts +10 -8
- package/.turbo/turbo-test.log +0 -1578
- package/.turbo/turbo-typecheck.log +0 -4
- package/dist/index-6UTHxaqg.d.cts +0 -1110
- package/dist/index-CYV4awaB.d.mts +0 -1110
package/.turbo/turbo-build.log
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
[
|
|
24
|
-
[
|
|
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 [1m"engines.node"[22m 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 [1m"sideEffects"[22m. Consider adding [1m"sideEffects"[22m: [1mfalse[22m so bundlers can optimize tree-shaking if your package has no side effects.
|
|
29
|
+
ℹ [publint] The package [1mpublishes internal tests or config files[22m ([1m/src/stripe.test.ts[22m). You can use [1mpkg.files[22m to only publish certain files and save user bandwidth.
|
package/dist/client.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|