@getstrata/starter 2.0.1 → 2.0.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/dist/cli.js
CHANGED
|
@@ -3060,9 +3060,9 @@ function renderPackageJson(projectName, options = {}) {
|
|
|
3060
3060
|
"@getstrata/cli": "workspace:*",
|
|
3061
3061
|
"@getstrata/core": "workspace:*"
|
|
3062
3062
|
} : {
|
|
3063
|
-
"@getstrata/bootstrap": "^2.0.
|
|
3064
|
-
"@getstrata/cli": "^2.0.
|
|
3065
|
-
"@getstrata/core": "^2.0.
|
|
3063
|
+
"@getstrata/bootstrap": "^2.0.3",
|
|
3064
|
+
"@getstrata/cli": "^2.0.3",
|
|
3065
|
+
"@getstrata/core": "^2.0.3"
|
|
3066
3066
|
};
|
|
3067
3067
|
coreDeps.eta = "^4.6.0";
|
|
3068
3068
|
if (options.layers?.database === "mysql") {
|
|
@@ -3091,7 +3091,7 @@ function renderPackageJson(projectName, options = {}) {
|
|
|
3091
3091
|
dependencies: coreDeps,
|
|
3092
3092
|
devDependencies: {
|
|
3093
3093
|
"@types/bun": "^1.4.0",
|
|
3094
|
-
typescript: "^
|
|
3094
|
+
typescript: "^7.0.2"
|
|
3095
3095
|
}
|
|
3096
3096
|
}, null, 2)}
|
|
3097
3097
|
`;
|
|
@@ -5133,7 +5133,7 @@ function renderBillingModule(layers) {
|
|
|
5133
5133
|
"SELECT plan, status, stripe_subscription_id, current_period_end FROM subscription LIMIT 1",
|
|
5134
5134
|
);`;
|
|
5135
5135
|
return `import type { AppModule } from "@getstrata/bootstrap/contracts";
|
|
5136
|
-
import { jsonResponse,
|
|
5136
|
+
import { jsonResponse, withJsonErrorHandling } from "@getstrata/core/http/response";
|
|
5137
5137
|
import { verifyStripeWebhookSignature } from "@getstrata/core/security/stripeWebhook";
|
|
5138
5138
|
import { applyStripeWebhook } from "../../billing/applyStripeWebhook.ts";
|
|
5139
5139
|
${tenantImport}import { getSql } from "../../bootstrap/database.ts";
|
|
@@ -5150,7 +5150,7 @@ const billingModule: AppModule = {
|
|
|
5150
5150
|
"/billing/webhooks/stripe": {
|
|
5151
5151
|
POST: kernel.wrap(
|
|
5152
5152
|
"api",
|
|
5153
|
-
|
|
5153
|
+
withJsonErrorHandling(async (request) => {
|
|
5154
5154
|
if (!billingEnabled()) {
|
|
5155
5155
|
return new Response("Not found", { status: 404 });
|
|
5156
5156
|
}
|
|
@@ -5173,7 +5173,7 @@ const billingModule: AppModule = {
|
|
|
5173
5173
|
},
|
|
5174
5174
|
"/api/v1/billing/subscription": {
|
|
5175
5175
|
GET: kernel.wrapApi(
|
|
5176
|
-
|
|
5176
|
+
withJsonErrorHandling(async () => {
|
|
5177
5177
|
if (!billingEnabled()) {
|
|
5178
5178
|
return new Response("Not found", { status: 404 });
|
|
5179
5179
|
}
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"check": "tsc --noEmit"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@getstrata/bootstrap": "^2.0.
|
|
16
|
-
"@getstrata/cli": "^2.0.
|
|
17
|
-
"@getstrata/core": "^2.0.
|
|
15
|
+
"@getstrata/bootstrap": "^2.0.3",
|
|
16
|
+
"@getstrata/cli": "^2.0.3",
|
|
17
|
+
"@getstrata/core": "^2.0.3",
|
|
18
18
|
"eta": "^4.6.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/bun": "^1.4.0",
|
|
22
|
-
"typescript": "^
|
|
22
|
+
"typescript": "^7.0.2"
|
|
23
23
|
}
|
|
24
24
|
}
|