netlify-cli 17.19.5 → 17.20.0
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/commands/serve/serve.d.ts.map +1 -1
- package/dist/commands/serve/serve.js +0 -1
- package/dist/lib/edge-functions/bootstrap.js +1 -1
- package/dist/lib/images/proxy.d.ts +2 -2
- package/dist/lib/images/proxy.d.ts.map +1 -1
- package/dist/lib/images/proxy.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/create-stream-promise.d.ts +3 -1
- package/dist/utils/create-stream-promise.d.ts.map +1 -1
- package/dist/utils/create-stream-promise.js +0 -11
- package/dist/utils/proxy-server.d.ts +31 -58
- package/dist/utils/proxy-server.d.ts.map +1 -1
- package/dist/utils/proxy-server.js +1 -77
- package/dist/utils/proxy.d.ts +7 -25
- package/dist/utils/proxy.d.ts.map +1 -1
- package/dist/utils/proxy.js +23 -106
- package/dist/utils/rules-proxy.d.ts +2 -1
- package/dist/utils/rules-proxy.d.ts.map +1 -1
- package/dist/utils/rules-proxy.js +8 -7
- package/dist/utils/run-build.d.ts +15 -20
- package/dist/utils/run-build.d.ts.map +1 -1
- package/dist/utils/run-build.js +2 -17
- package/dist/utils/types.d.ts +11 -0
- package/dist/utils/types.d.ts.map +1 -1
- package/npm-shrinkwrap.json +151 -159
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../src/commands/serve/serve.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAwBxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAG5C,eAAO,MAAM,KAAK,YAAmB,YAAY,WAAW,WAAW,
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../src/commands/serve/serve.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAwBxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAG5C,eAAO,MAAM,KAAK,YAAmB,YAAY,WAAW,WAAW,uBA+ItE,CAAA"}
|
|
@@ -107,7 +107,6 @@ export const serve = async (options, command) => {
|
|
|
107
107
|
return normalizedNewConfig;
|
|
108
108
|
};
|
|
109
109
|
const inspectSettings = generateInspectSettings(options.edgeInspect, options.edgeInspectBrk);
|
|
110
|
-
// @ts-expect-error TS(2345) FIXME: Argument of type '{ addonsUrls: { [k: string]: any... Remove this comment to see the full error message
|
|
111
110
|
const url = await startProxyServer({
|
|
112
111
|
addonsUrls,
|
|
113
112
|
command,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { env } from 'process';
|
|
2
|
-
const latestBootstrapURL = 'https://
|
|
2
|
+
const latestBootstrapURL = 'https://65f9b38dc160de0008d35515--edge.netlify.com/bootstrap/index-combined.ts';
|
|
3
3
|
export const getBootstrapURL = () => env.NETLIFY_EDGE_BOOTSTRAP || latestBootstrapURL;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { IncomingMessage } from 'http';
|
|
2
2
|
import { NetlifyConfig } from '@netlify/build';
|
|
3
3
|
import type { ServerSettings } from '../../utils/types.d.ts';
|
|
4
4
|
export declare const IMAGE_URL_PATTERN = "/.netlify/images";
|
|
@@ -24,7 +24,7 @@ export declare const handleRemoteImagesErrors: (errors: ErrorObject[]) => Promis
|
|
|
24
24
|
export declare const parseRemoteImages: ({ config }: {
|
|
25
25
|
config: any;
|
|
26
26
|
}) => Promise<RegExp[]>;
|
|
27
|
-
export declare const isImageRequest: (req:
|
|
27
|
+
export declare const isImageRequest: (req: IncomingMessage) => boolean;
|
|
28
28
|
export declare const transformImageParams: (query: QueryParams) => string;
|
|
29
29
|
export declare const initializeProxy: ({ config, settings, }: {
|
|
30
30
|
config: NetlifyConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../../src/lib/images/proxy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../../src/lib/images/proxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAM9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAE5D,eAAO,MAAM,iBAAiB,qBAAqB,CAAA;AAEnD,UAAU,WAAW;IACnB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAaD,eAAO,MAAM,oBAAoB;YAAgC,WAAW,EAAE;oBAAkB,MAAM,EAAE;CAqBvG,CAAA;AAED,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,CAAA;CAChB;AAMD,eAAO,MAAM,wBAAwB,WAA2B,WAAW,EAAE,kBAO5E,CAAA;AAGD,eAAO,MAAM,iBAAiB;;uBAS7B,CAAA;AAED,eAAO,MAAM,cAAc,QAAkB,eAAe,KAAG,OAE9D,CAAA;AAED,eAAO,MAAM,oBAAoB,UAAoB,WAAW,KAAG,MA4BlE,CAAA;AAED,eAAO,MAAM,eAAe;YAIlB,aAAa;cACX,cAAc;0DA4DzB,CAAA"}
|
package/dist/lib/images/proxy.js
CHANGED
|
@@ -43,7 +43,7 @@ export const parseRemoteImages = async function ({ config }) {
|
|
|
43
43
|
return remotePatterns;
|
|
44
44
|
};
|
|
45
45
|
export const isImageRequest = function (req) {
|
|
46
|
-
return req.url
|
|
46
|
+
return req.url?.startsWith(IMAGE_URL_PATTERN) ?? false;
|
|
47
47
|
};
|
|
48
48
|
export const transformImageParams = function (query) {
|
|
49
49
|
const params = {};
|