@fantastic.dev/better-stripe 0.50.1 → 0.50.3
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/CHANGELOG.md +13 -0
- package/README.md +38 -1747
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.js +12 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.js.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.js +12 -1
- package/dist/client/connect/payoutExecutionTestHelpers.js.map +1 -1
- package/docs/README.md +53 -0
- package/docs/architecture.md +80 -0
- package/docs/client-api.md +586 -0
- package/docs/configuration.md +51 -0
- package/docs/development.md +96 -0
- package/docs/marketplace.md +165 -0
- package/docs/metered-usage.md +123 -0
- package/docs/overview.md +140 -0
- package/docs/react-api.md +284 -0
- package/docs/releasing.md +19 -0
- package/docs/testing.md +52 -0
- package/docs/webhooks.md +259 -0
- package/package.json +13 -2
- package/src/client/connect/payoutAdoptionTestHelpers.ts +17 -1
- package/src/client/connect/payoutExecutionTestHelpers.ts +17 -1
- package/src/test.ts +17 -1
- package/src/vite-env.d.ts +5 -1
|
@@ -7,7 +7,23 @@ import schema from "../../component/schema.js";
|
|
|
7
7
|
import type { Component, RunCtx } from "../helpers.js";
|
|
8
8
|
import { releaseRecipientPayout } from "./payoutExecution.js";
|
|
9
9
|
import { adoptRecipientPayouts } from "./payoutAdoption.js";
|
|
10
|
-
|
|
10
|
+
// Load Convex functions during fixture import so the first action does not
|
|
11
|
+
// spend its execution timeout compiling the function graph.
|
|
12
|
+
const functionModules = import.meta.glob(
|
|
13
|
+
[
|
|
14
|
+
"../../component/**/*.*s",
|
|
15
|
+
"!../../component/**/*.test.*",
|
|
16
|
+
"!../../component/**/*.fixtures.ts",
|
|
17
|
+
"!../../component/**/convex.config.*",
|
|
18
|
+
],
|
|
19
|
+
{ eager: true },
|
|
20
|
+
);
|
|
21
|
+
const modules = Object.fromEntries(
|
|
22
|
+
Object.entries(functionModules).map(([path, module]) => [
|
|
23
|
+
path,
|
|
24
|
+
() => Promise.resolve(module),
|
|
25
|
+
]),
|
|
26
|
+
);
|
|
11
27
|
const symbol = Symbol.for("toReferencePath");
|
|
12
28
|
export const component = {
|
|
13
29
|
payoutPolicy: {
|
|
@@ -6,7 +6,23 @@ import type Stripe from "stripe";
|
|
|
6
6
|
import schema from "../../component/schema.js";
|
|
7
7
|
import type { Component, RunCtx } from "../helpers.js";
|
|
8
8
|
import { releaseRecipientPayout } from "./payoutExecution.js";
|
|
9
|
-
|
|
9
|
+
// Load Convex functions during fixture import so the first action does not
|
|
10
|
+
// spend its execution timeout compiling the function graph.
|
|
11
|
+
const functionModules = import.meta.glob(
|
|
12
|
+
[
|
|
13
|
+
"../../component/**/*.*s",
|
|
14
|
+
"!../../component/**/*.test.*",
|
|
15
|
+
"!../../component/**/*.fixtures.ts",
|
|
16
|
+
"!../../component/**/convex.config.*",
|
|
17
|
+
],
|
|
18
|
+
{ eager: true },
|
|
19
|
+
);
|
|
20
|
+
const modules = Object.fromEntries(
|
|
21
|
+
Object.entries(functionModules).map(([path, module]) => [
|
|
22
|
+
path,
|
|
23
|
+
() => Promise.resolve(module),
|
|
24
|
+
]),
|
|
25
|
+
);
|
|
10
26
|
const symbol = Symbol.for("toReferencePath");
|
|
11
27
|
export const component = {
|
|
12
28
|
payoutPolicy: {
|
package/src/test.ts
CHANGED
|
@@ -2,4 +2,20 @@ import schema from "./component/schema";
|
|
|
2
2
|
|
|
3
3
|
export { schema };
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// Load Convex functions during fixture import so the first action does not
|
|
6
|
+
// spend its execution timeout compiling the function graph.
|
|
7
|
+
const functionModules = import.meta.glob(
|
|
8
|
+
[
|
|
9
|
+
"./component/**/*.ts",
|
|
10
|
+
"!./component/**/*.test.*",
|
|
11
|
+
"!./component/**/*.fixtures.ts",
|
|
12
|
+
"!./component/**/convex.config.*",
|
|
13
|
+
],
|
|
14
|
+
{ eager: true },
|
|
15
|
+
);
|
|
16
|
+
export const modules = Object.fromEntries(
|
|
17
|
+
Object.entries(functionModules).map(([path, module]) => [
|
|
18
|
+
path,
|
|
19
|
+
() => Promise.resolve(module),
|
|
20
|
+
]),
|
|
21
|
+
);
|
package/src/vite-env.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// Ambient type for import.meta.glob (provided by Vite at runtime in convex-test consumers)
|
|
2
2
|
interface ImportMeta {
|
|
3
|
-
glob(pattern: string): Record<string, () => Promise<unknown>>;
|
|
3
|
+
glob(pattern: string | string[]): Record<string, () => Promise<unknown>>;
|
|
4
|
+
glob(
|
|
5
|
+
pattern: string | string[],
|
|
6
|
+
options: { eager: true },
|
|
7
|
+
): Record<string, unknown>;
|
|
4
8
|
}
|