create-svc 0.1.43 → 0.1.44
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/package.json
CHANGED
package/src/scaffold.test.ts
CHANGED
|
@@ -316,7 +316,7 @@ test("scaffolds the workers target with wrangler lifecycle commands", async () =
|
|
|
316
316
|
const wranglerConfig = await Bun.file(join(generatedRoot, "wrangler.toml")).text();
|
|
317
317
|
expect(wranglerConfig).toContain('name = "dns-api"');
|
|
318
318
|
expect(wranglerConfig).toContain('compatibility_flags = ["nodejs_compat"]');
|
|
319
|
-
expect(wranglerConfig).toContain('pattern = "api.dns-api.anmho.com
|
|
319
|
+
expect(wranglerConfig).toContain('pattern = "api.dns-api.anmho.com"');
|
|
320
320
|
expect(wranglerConfig).toContain('binding = "HYPERDRIVE"');
|
|
321
321
|
expect(wranglerConfig).toContain('AUTH_ENABLED = "true"');
|
|
322
322
|
expect(wranglerConfig).toContain('AUTH_AUDIENCE = "api://dns-api"');
|
|
@@ -452,7 +452,7 @@ async function runDoctor() {
|
|
|
452
452
|
if (!text.includes(`name = "${config.serviceName}"`)) {
|
|
453
453
|
throw new Error(`wrangler.toml does not name ${config.serviceName}`);
|
|
454
454
|
}
|
|
455
|
-
if (!text.includes(`pattern = "${config.hostname}
|
|
455
|
+
if (!text.includes(`pattern = "${config.hostname}"`)) {
|
|
456
456
|
throw new Error(`wrangler.toml does not route ${config.hostname}`);
|
|
457
457
|
}
|
|
458
458
|
return "name and custom domain route configured";
|