@pithy-sh/payments 0.3.4 → 0.3.5
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/dist/capability.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../src/capability.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,UAAU,EAGhB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAI3E,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG3E,OAAO,KAAK,EAAE,uBAAuB,EAAuB,MAAM,2BAA2B,CAAC;AAU9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAK7C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG;IAClD;;;;OAIG;IACH,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC1C,CAAC;AAsMF,6FAA6F;AAC7F,MAAM,WAAW,kBACf,SAAQ,UAAU,CAAC,eAAe,EAAE,kBAAkB,EAAE,UAAU,EAAE,OAAO,iBAAiB,CAAC;IAC7F,4BAA4B;IAC5B,cAAc,EAAE,cAAc,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,kBAAkB,
|
|
1
|
+
{"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../src/capability.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,UAAU,EAGhB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAI3E,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG3E,OAAO,KAAK,EAAE,uBAAuB,EAAuB,MAAM,2BAA2B,CAAC;AAU9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAK7C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG;IAClD;;;;OAIG;IACH,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC1C,CAAC;AAsMF,6FAA6F;AAC7F,MAAM,WAAW,kBACf,SAAQ,UAAU,CAAC,eAAe,EAAE,kBAAkB,EAAE,UAAU,EAAE,OAAO,iBAAiB,CAAC;IAC7F,4BAA4B;IAC5B,cAAc,EAAE,cAAc,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,kBAAkB,CAsGrE;AAED,sFAAsF;AACtF,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,IAAI,kBAAkB,CAE7F"}
|
package/dist/capability.js
CHANGED
|
@@ -12,7 +12,7 @@ import { registerPaymentsRoutes } from "./http/routes.js";
|
|
|
12
12
|
import { payments_0001_purchases } from "./migrations/0001_purchases.js";
|
|
13
13
|
import { paymentsInapplicableSecrets, paymentsSecretBranches } from "./secret/branches.js";
|
|
14
14
|
import { paymentsExampleSeed } from "./seeds/example.js";
|
|
15
|
-
import { PACKAGE_VERSION } from "./version.generated.js";
|
|
15
|
+
import { PACKAGE_NAME, PACKAGE_VERSION } from "./version.generated.js";
|
|
16
16
|
import { defineCapability } from "@pithy-sh/core/src/capability/capability";
|
|
17
17
|
import { ValidationError } from "@pithy-sh/core/src/error/pithyError";
|
|
18
18
|
import { workflowBindings } from "@pithy-sh/core/src/workflow/bindings";
|
|
@@ -209,6 +209,7 @@ function payments(options) {
|
|
|
209
209
|
const capability = defineCapability({
|
|
210
210
|
name: "payments",
|
|
211
211
|
version: PACKAGE_VERSION,
|
|
212
|
+
package: PACKAGE_NAME,
|
|
212
213
|
dependsOn: ["secrets"],
|
|
213
214
|
providesEntitlements: true,
|
|
214
215
|
secretRegistry: paymentsSecretsRegistry,
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
/** This package's npm name — the join key against a release feed. */
|
|
4
4
|
export declare const PACKAGE_NAME = "@pithy-sh/payments";
|
|
5
5
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
6
|
-
export declare const PACKAGE_VERSION = "0.3.
|
|
6
|
+
export declare const PACKAGE_VERSION = "0.3.5";
|
|
7
7
|
//# sourceMappingURL=version.generated.d.ts.map
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
/** This package's npm name — the join key against a release feed. */
|
|
5
5
|
const PACKAGE_NAME = "@pithy-sh/payments";
|
|
6
6
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
7
|
-
const PACKAGE_VERSION = "0.3.
|
|
7
|
+
const PACKAGE_VERSION = "0.3.5";
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PACKAGE_NAME, PACKAGE_VERSION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pithy-sh/payments",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"@paddle/paddle-js": "^1.6.4"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@pithy-sh/core": "^0.7.
|
|
46
|
-
"@pithy-sh/ledger": "^0.2.
|
|
47
|
-
"@pithy-sh/secrets": "^0.2.
|
|
45
|
+
"@pithy-sh/core": "^0.7.3",
|
|
46
|
+
"@pithy-sh/ledger": "^0.2.5",
|
|
47
|
+
"@pithy-sh/secrets": "^0.2.6",
|
|
48
48
|
"hono": "^4.13.2",
|
|
49
49
|
"kysely": "^0.29.0",
|
|
50
50
|
"react": "^19.0.0",
|
package/src/capability.ts
CHANGED
|
@@ -25,7 +25,7 @@ import { payments_0001_purchases } from "./migrations/0001_purchases";
|
|
|
25
25
|
import { paymentsInapplicableSecrets, paymentsSecretBranches } from "./secret/branches";
|
|
26
26
|
import { paymentsSecretsRegistry } from "./secret/registry";
|
|
27
27
|
import { paymentsExampleSeed } from "./seeds/example";
|
|
28
|
-
import { PACKAGE_VERSION } from "./version.generated";
|
|
28
|
+
import { PACKAGE_NAME, PACKAGE_VERSION } from "./version.generated";
|
|
29
29
|
import { paymentsWorkflows } from "./workflows/specs";
|
|
30
30
|
|
|
31
31
|
/**
|
|
@@ -336,9 +336,12 @@ export function payments(options: PaymentsOptions): PaymentsCapability {
|
|
|
336
336
|
|
|
337
337
|
const capability = defineCapability({
|
|
338
338
|
name: "payments",
|
|
339
|
-
// The package
|
|
340
|
-
// cannot read its own package.json. Reported per capability by
|
|
339
|
+
// The package this capability ships in and the version it ships at, both stamped by
|
|
340
|
+
// `scripts/stampVersions.ts` — a Worker cannot read its own package.json. Reported per capability by
|
|
341
|
+
// the control-plane manifest, and reported together: a release feed is keyed by package name, so the
|
|
342
|
+
// version alone leaves a client guessing the key (#626).
|
|
341
343
|
version: PACKAGE_VERSION,
|
|
344
|
+
package: PACKAGE_NAME,
|
|
342
345
|
dependsOn: ["secrets"],
|
|
343
346
|
providesEntitlements: true,
|
|
344
347
|
// One secret holds every rail's credentials. Declaring the slice here is what lets `sharedSecretsStore`
|
package/src/version.generated.ts
CHANGED