@midsummer-ai/sdk 0.1.0-staging.4354 → 0.1.0-staging.4360
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/billing/index.mjs +1 -1
- package/here-C2jhTheQ.mjs +1 -1
- package/package.json +1 -1
package/billing/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { a as processEnv, n as here, r as late } from "../here-C2jhTheQ.mjs";
|
|
|
9
9
|
* if (!(await billing.has(user.id, "Pro"))) return Response.redirect(await billing.checkout(user, "Pro", { successUrl: "https://shop.acme.dev/thanks" }))
|
|
10
10
|
* const { subscriptions, benefits } = await billing.state(user.id)
|
|
11
11
|
*
|
|
12
|
-
* In a deployment, in any framework, `billing` sells through what the environment binds (`midsummer
|
|
12
|
+
* In a deployment, in any framework, `billing` sells through what the environment binds (`midsummer payments set`): the
|
|
13
13
|
* live store in production, the sandbox in previews, where nothing is charged. `state` and `has` read what Midsummer
|
|
14
14
|
* keeps of each customer, updated by the store as it changes, so they cost no call to the store and return as fast as
|
|
15
15
|
* any read; a checkout is the one call that reaches it. A product and a benefit are named by their name or id;
|
package/here-C2jhTheQ.mjs
CHANGED
|
@@ -12,7 +12,7 @@ function processEnv() {
|
|
|
12
12
|
* This package's version: `0.0.0-dev` here, and in a published package the version it was published at, which the
|
|
13
13
|
* release writes in its place as it stages the package (`stampSdk` in `scripts/release/packages.ts`).
|
|
14
14
|
*/
|
|
15
|
-
const SDK_VERSION = "0.1.0-staging.
|
|
15
|
+
const SDK_VERSION = "0.1.0-staging.4360";
|
|
16
16
|
/**
|
|
17
17
|
* The header that tells Midsummer which client made each of this package's calls: `Midsummer-Client: sdk/<version>
|
|
18
18
|
* <part>`, `part` the product whose client it is (`database`, `storage`, `queues`, ...), so the platform counts which
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midsummer-ai/sdk",
|
|
3
|
-
"version": "0.1.0-staging.
|
|
3
|
+
"version": "0.1.0-staging.4360",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Midsummer's handles for an app's code: its Database, Storage, Queues, Vector DB, AI, Email and Agents, with stand-ins for tests.",
|