@netlify/dev 4.1.1 → 4.1.2
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/main.cjs +4 -1
- package/dist/main.d.cts +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +12 -2
- package/package.json +9 -9
package/dist/main.cjs
CHANGED
|
@@ -396,7 +396,7 @@ var NetlifyDev = class {
|
|
|
396
396
|
const { pathname } = new URL(matchRequest.url);
|
|
397
397
|
if (pathname.startsWith("/.netlify/images")) {
|
|
398
398
|
this.#logger.error(
|
|
399
|
-
|
|
399
|
+
`The Netlify Image CDN is currently only supported in the Netlify CLI. Run ${(0, import_dev_utils.netlifyCommand)("npx netlify dev")} to get started.`
|
|
400
400
|
);
|
|
401
401
|
return;
|
|
402
402
|
}
|
|
@@ -566,6 +566,9 @@ var NetlifyDev = class {
|
|
|
566
566
|
async stop() {
|
|
567
567
|
await Promise.allSettled(this.#cleanupJobs.map((task) => task()));
|
|
568
568
|
}
|
|
569
|
+
getEnabledFeatures() {
|
|
570
|
+
return Object.entries(this.#features).filter(([_, enabled]) => enabled).map(([feature]) => feature);
|
|
571
|
+
}
|
|
569
572
|
};
|
|
570
573
|
// Annotate the CommonJS export names for ESM import in node:
|
|
571
574
|
0 && (module.exports = {
|
package/dist/main.d.cts
CHANGED
package/dist/main.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -3,7 +3,14 @@ import { promises as fs2 } from "fs";
|
|
|
3
3
|
import path2 from "path";
|
|
4
4
|
import process2 from "process";
|
|
5
5
|
import { resolveConfig } from "@netlify/config";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
ensureNetlifyIgnore,
|
|
8
|
+
getAPIToken,
|
|
9
|
+
mockLocation,
|
|
10
|
+
LocalState,
|
|
11
|
+
HTTPServer,
|
|
12
|
+
netlifyCommand
|
|
13
|
+
} from "@netlify/dev-utils";
|
|
7
14
|
import { EdgeFunctionsHandler } from "@netlify/edge-functions/dev";
|
|
8
15
|
import { FunctionsHandler } from "@netlify/functions/dev";
|
|
9
16
|
import { HeadersHandler } from "@netlify/headers";
|
|
@@ -362,7 +369,7 @@ var NetlifyDev = class {
|
|
|
362
369
|
const { pathname } = new URL(matchRequest.url);
|
|
363
370
|
if (pathname.startsWith("/.netlify/images")) {
|
|
364
371
|
this.#logger.error(
|
|
365
|
-
|
|
372
|
+
`The Netlify Image CDN is currently only supported in the Netlify CLI. Run ${netlifyCommand("npx netlify dev")} to get started.`
|
|
366
373
|
);
|
|
367
374
|
return;
|
|
368
375
|
}
|
|
@@ -532,6 +539,9 @@ var NetlifyDev = class {
|
|
|
532
539
|
async stop() {
|
|
533
540
|
await Promise.allSettled(this.#cleanupJobs.map((task) => task()));
|
|
534
541
|
}
|
|
542
|
+
getEnabledFeatures() {
|
|
543
|
+
return Object.entries(this.#features).filter(([_, enabled]) => enabled).map(([feature]) => feature);
|
|
544
|
+
}
|
|
535
545
|
};
|
|
536
546
|
export {
|
|
537
547
|
NetlifyDev
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/dev",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"description": "Emulation of the Netlify environment for local development",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
"vitest": "^3.0.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@netlify/blobs": "9.1.
|
|
55
|
+
"@netlify/blobs": "9.1.5",
|
|
56
56
|
"@netlify/config": "^23.0.8",
|
|
57
|
-
"@netlify/dev-utils": "3.1.
|
|
58
|
-
"@netlify/edge-functions": "2.14.
|
|
59
|
-
"@netlify/functions": "4.1.
|
|
60
|
-
"@netlify/headers": "2.0.
|
|
61
|
-
"@netlify/redirects": "3.0.
|
|
62
|
-
"@netlify/runtime": "4.0.
|
|
63
|
-
"@netlify/static": "3.0.
|
|
57
|
+
"@netlify/dev-utils": "3.1.1",
|
|
58
|
+
"@netlify/edge-functions": "2.14.1",
|
|
59
|
+
"@netlify/functions": "4.1.2",
|
|
60
|
+
"@netlify/headers": "2.0.1",
|
|
61
|
+
"@netlify/redirects": "3.0.1",
|
|
62
|
+
"@netlify/runtime": "4.0.1",
|
|
63
|
+
"@netlify/static": "3.0.1",
|
|
64
64
|
"ulid": "^3.0.0"
|
|
65
65
|
}
|
|
66
66
|
}
|