netlify-cli 18.1.0 → 19.0.0-pre.4b63f12
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/base-command.d.ts.map +1 -1
- package/dist/commands/base-command.js +2 -13
- package/dist/commands/blobs/blobs.js +2 -2
- package/dist/commands/build/build.d.ts +4 -11
- package/dist/commands/build/build.d.ts.map +1 -1
- package/dist/commands/build/build.js +1 -7
- package/dist/commands/build/index.js +1 -1
- package/dist/commands/completion/completion.d.ts +4 -4
- package/dist/commands/completion/completion.d.ts.map +1 -1
- package/dist/commands/completion/completion.js +4 -5
- package/dist/commands/deploy/index.d.ts.map +1 -1
- package/dist/commands/deploy/index.js +5 -6
- package/dist/commands/dev/dev.d.ts.map +1 -1
- package/dist/commands/dev/dev.js +1 -15
- package/dist/commands/env/env-list.d.ts +2 -2
- package/dist/commands/env/env-list.d.ts.map +1 -1
- package/dist/commands/env/env.d.ts.map +1 -1
- package/dist/commands/env/env.js +5 -4
- package/dist/commands/functions/functions.d.ts +1 -1
- package/dist/commands/functions/functions.d.ts.map +1 -1
- package/dist/commands/functions/functions.js +4 -2
- package/dist/commands/init/index.d.ts.map +1 -1
- package/dist/commands/init/index.js +0 -2
- package/dist/commands/link/index.d.ts.map +1 -1
- package/dist/commands/link/index.js +0 -2
- package/dist/commands/main.d.ts.map +1 -1
- package/dist/commands/main.js +0 -3
- package/dist/commands/serve/index.d.ts.map +1 -1
- package/dist/commands/serve/index.js +1 -4
- package/dist/commands/status/index.d.ts +1 -1
- package/dist/commands/status/index.d.ts.map +1 -1
- package/dist/commands/status/index.js +2 -1
- package/dist/lib/build.d.ts +36 -67
- package/dist/lib/build.d.ts.map +1 -1
- package/dist/lib/build.js +6 -41
- package/dist/lib/completion/script.js +3 -13
- package/dist/lib/functions/form-submissions-handler.d.ts.map +1 -1
- package/dist/lib/functions/form-submissions-handler.js +0 -2
- package/dist/lib/functions/runtimes/js/builders/netlify-lambda.d.ts.map +1 -1
- package/dist/lib/functions/runtimes/js/builders/netlify-lambda.js +8 -7
- package/dist/lib/functions/runtimes/js/builders/zisi.d.ts.map +1 -1
- package/dist/lib/functions/runtimes/js/builders/zisi.js +0 -1
- package/dist/lib/functions/runtimes/js/worker.js +0 -1
- package/dist/recipes/vscode/settings.d.ts.map +1 -1
- package/dist/recipes/vscode/settings.js +5 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/command-helpers.d.ts +2 -2
- package/dist/utils/command-helpers.js +1 -1
- package/dist/utils/deploy/hash-files.js +3 -3
- package/dist/utils/deploy/hash-fns.d.ts.map +1 -1
- package/dist/utils/deploy/hash-fns.js +3 -2
- package/dist/utils/deploy/hasher-segments.d.ts +3 -3
- package/dist/utils/deploy/hasher-segments.d.ts.map +1 -1
- package/dist/utils/deploy/hasher-segments.js +2 -9
- package/dist/utils/get-global-config.d.ts.map +1 -1
- package/dist/utils/get-global-config.js +2 -2
- package/dist/utils/get-repo-data.d.ts +4 -4
- package/dist/utils/get-repo-data.d.ts.map +1 -1
- package/dist/utils/get-repo-data.js +7 -6
- package/dist/utils/open-browser.d.ts.map +1 -1
- package/dist/utils/open-browser.js +1 -2
- package/dist/utils/proxy.d.ts.map +1 -1
- package/dist/utils/proxy.js +3 -5
- package/dist/utils/rules-proxy.d.ts.map +1 -1
- package/dist/utils/rules-proxy.js +0 -1
- package/dist/utils/run-build.d.ts.map +1 -1
- package/dist/utils/run-build.js +7 -2
- package/dist/utils/sites/create-template.d.ts.map +1 -1
- package/dist/utils/sites/create-template.js +2 -3
- package/dist/utils/state-config.d.ts.map +1 -1
- package/dist/utils/state-config.js +0 -1
- package/dist/utils/types.d.ts +7 -0
- package/dist/utils/types.d.ts.map +1 -1
- package/npm-shrinkwrap.json +29926 -12308
- package/package.json +11 -15
- package/scripts/prepare-for-publish.js +48 -34
- package/dist/commands/integration/deploy.d.ts +0 -8
- package/dist/commands/integration/deploy.d.ts.map +0 -1
- package/dist/commands/integration/deploy.js +0 -353
- package/dist/commands/integration/index.d.ts +0 -4
- package/dist/commands/integration/index.d.ts.map +0 -1
- package/dist/commands/integration/index.js +0 -26
|
@@ -48,8 +48,8 @@ export declare const pollForToken: ({ api, ticket, }: {
|
|
|
48
48
|
* @param {string} [tokenFromOptions] optional token from the provided --auth options
|
|
49
49
|
* @returns {Promise<[null|string, 'flag' | 'env' |'config' |'not found']>}
|
|
50
50
|
*/
|
|
51
|
-
export type
|
|
52
|
-
export declare const getToken: (tokenFromOptions?: string) => Promise<
|
|
51
|
+
export type TokenTuple = [string | null, TokenLocation];
|
|
52
|
+
export declare const getToken: (tokenFromOptions?: string) => Promise<TokenTuple>;
|
|
53
53
|
/**
|
|
54
54
|
* logs a json message
|
|
55
55
|
*/
|
|
@@ -45,7 +45,7 @@ const { name, version: packageVersion } = await getPackageJson();
|
|
|
45
45
|
export const version = packageVersion;
|
|
46
46
|
export const USER_AGENT = `${name}/${version} ${platform}-${arch} node-${process.version}`;
|
|
47
47
|
/** A list of base command flags that needs to be sorted down on documentation and on help pages */
|
|
48
|
-
const BASE_FLAGS = new Set(['--debug', '--
|
|
48
|
+
const BASE_FLAGS = new Set(['--debug', '--http-proxy', '--http-proxy-certificate-filename']);
|
|
49
49
|
export const NETLIFY_CYAN = chalk.rgb(40, 180, 170);
|
|
50
50
|
export const NETLIFYDEV = `${chalk.greenBright('◈')} ${NETLIFY_CYAN('Netlify Dev')} ${chalk.greenBright('◈')}`;
|
|
51
51
|
export const NETLIFYDEVLOG = `${chalk.greenBright('◈')}`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { promisify } from 'util';
|
|
2
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'fold... Remove this comment to see the full error message
|
|
3
2
|
import walker from 'folder-walker';
|
|
4
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'pump... Remove this comment to see the full error message
|
|
5
3
|
import pumpModule from 'pump';
|
|
6
4
|
import { fileFilterCtor, fileNormalizerCtor, hasherCtor, manifestCollectorCtor } from './hasher-segments.js';
|
|
5
|
+
// Explicitly passing type parameter because inference isn't playing nicely with incompatible patterns for typing
|
|
6
|
+
// function spread parameters + function overloading
|
|
7
7
|
const pump = promisify(pumpModule);
|
|
8
8
|
const hashFiles = async ({ assetType = 'file',
|
|
9
9
|
// @ts-expect-error TS(7031) FIXME: Binding element 'concurrentHash' implicitly has an... Remove this comment to see the full error message
|
|
@@ -28,7 +28,7 @@ statusCb, }) => {
|
|
|
28
28
|
// hash: [fileObj, fileObj, fileObj]
|
|
29
29
|
const filesShaMap = {};
|
|
30
30
|
const manifestCollector = manifestCollectorCtor(files, filesShaMap, { statusCb, assetType });
|
|
31
|
-
await pump(fileStream, fileFilter, hasher, fileNormalizer, manifestCollector);
|
|
31
|
+
await pump([fileStream, fileFilter, hasher, fileNormalizer, manifestCollector]);
|
|
32
32
|
return { files, filesShaMap };
|
|
33
33
|
};
|
|
34
34
|
export default hashFiles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hash-fns.d.ts","sourceRoot":"","sources":["../../../src/utils/deploy/hash-fns.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hash-fns.d.ts","sourceRoot":"","sources":["../../../src/utils/deploy/hash-fns.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,gCAAgC,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAsGlD,QAAA,MAAM,OAAO,YACF,WAAW,eACP,MAAM,EAAE,UACb;IACN,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,QAAQ,CAAA;IACzB,wBAAwB;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,QAAQ,CAAA;IACtB,OAAO,EAAE,QAAQ,CAAA;IACjB,kBAAkB,EAAE,QAAQ,CAAA;IAC5B,QAAQ,EAAE,QAAQ,CAAA;IAClB,MAAM,EAAE,QAAQ,CAAA;CACjB,KACA,OAAO,CAAC,QAAQ,CAuGlB,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -4,10 +4,11 @@ import { promisify } from 'util';
|
|
|
4
4
|
import { zipFunctions } from '@netlify/zip-it-and-ship-it';
|
|
5
5
|
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'from... Remove this comment to see the full error message
|
|
6
6
|
import fromArray from 'from2-array';
|
|
7
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'pump... Remove this comment to see the full error message
|
|
8
7
|
import pumpModule from 'pump';
|
|
9
8
|
import { INTERNAL_FUNCTIONS_FOLDER } from '../functions/functions.js';
|
|
10
9
|
import { hasherCtor, manifestCollectorCtor } from './hasher-segments.js';
|
|
10
|
+
// Explicitly passing type parameter because inference isn't playing nicely with incompatible patterns for typing
|
|
11
|
+
// function spread parameters + function overloading
|
|
11
12
|
const pump = promisify(pumpModule);
|
|
12
13
|
// Maximum age of functions manifest (2 minutes).
|
|
13
14
|
const MANIFEST_FILE_TTL = 12e4;
|
|
@@ -139,7 +140,7 @@ const hashFns = async (command, directories, config) => {
|
|
|
139
140
|
// hash: [fileObj, fileObj, fileObj]
|
|
140
141
|
const fnShaMap = {};
|
|
141
142
|
const manifestCollector = manifestCollectorCtor(functions, fnShaMap, { statusCb, assetType });
|
|
142
|
-
await pump(functionStream, hasher, manifestCollector);
|
|
143
|
+
await pump([functionStream, hasher, manifestCollector]);
|
|
143
144
|
return { functionSchedules, functions, functionsWithNativeModules, fnShaMap, fnConfig };
|
|
144
145
|
};
|
|
145
146
|
export default hashFns;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare const hasherCtor: ({ concurrentHash, hashAlgorithm }: {
|
|
2
2
|
concurrentHash: any;
|
|
3
3
|
hashAlgorithm: any;
|
|
4
|
-
}) =>
|
|
4
|
+
}) => import("stream").Transform;
|
|
5
5
|
export declare const fileNormalizerCtor: ({ assetType, normalizer: normalizeFunction }: {
|
|
6
6
|
assetType: any;
|
|
7
7
|
normalizer: any;
|
|
8
|
-
}) =>
|
|
8
|
+
}) => import("through2").Through2Constructor;
|
|
9
9
|
export declare const manifestCollectorCtor: (filesObj: any, shaMap: any, { assetType, statusCb }: {
|
|
10
10
|
assetType: any;
|
|
11
11
|
statusCb: any;
|
|
12
|
-
}) =>
|
|
12
|
+
}) => import("stream").Writable;
|
|
13
13
|
export declare const fileFilterCtor: any;
|
|
14
14
|
//# sourceMappingURL=hasher-segments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hasher-segments.d.ts","sourceRoot":"","sources":["../../../src/utils/deploy/hasher-segments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hasher-segments.d.ts","sourceRoot":"","sources":["../../../src/utils/deploy/hasher-segments.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,UAAU;;;gCAWtB,CAAA;AAID,eAAO,MAAM,kBAAkB;;;4CAS3B,CAAA;AAIJ,eAAO,MAAM,qBAAqB;;;+BAoBjC,CAAA;AAKD,eAAO,MAAM,cAAc,KAAsD,CAAA"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
import { createReadStream } from 'node:fs';
|
|
3
3
|
import { pipeline } from 'node:stream/promises';
|
|
4
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'flus... Remove this comment to see the full error message
|
|
5
4
|
import flushWriteStream from 'flush-write-stream';
|
|
6
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'para... Remove this comment to see the full error message
|
|
7
5
|
import transform from 'parallel-transform';
|
|
8
6
|
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'thro... Remove this comment to see the full error message
|
|
9
7
|
import { objCtor as objFilterCtor } from 'through2-filter';
|
|
10
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'thro... Remove this comment to see the full error message
|
|
11
8
|
import { obj as map } from 'through2-map';
|
|
12
9
|
import { normalizePath } from './util.js';
|
|
13
10
|
const hashFile = async (filePath, algorithm) => {
|
|
@@ -22,7 +19,6 @@ const hashFile = async (filePath, algorithm) => {
|
|
|
22
19
|
export const hasherCtor = ({ concurrentHash, hashAlgorithm }) => {
|
|
23
20
|
if (!concurrentHash)
|
|
24
21
|
throw new Error('Missing required opts');
|
|
25
|
-
// @ts-expect-error TS(7006) FIXME: Parameter 'fileObj' implicitly has an 'any' type.
|
|
26
22
|
return transform(concurrentHash, { objectMode: true }, async (fileObj, cb) => {
|
|
27
23
|
try {
|
|
28
24
|
const hash = await hashFile(fileObj.filepath, hashAlgorithm);
|
|
@@ -36,9 +32,7 @@ export const hasherCtor = ({ concurrentHash, hashAlgorithm }) => {
|
|
|
36
32
|
};
|
|
37
33
|
// Inject normalized file names into normalizedPath and assetType
|
|
38
34
|
// @ts-expect-error TS(7031) FIXME: Binding element 'assetType' implicitly has an 'any... Remove this comment to see the full error message
|
|
39
|
-
export const fileNormalizerCtor = ({ assetType, normalizer: normalizeFunction }) =>
|
|
40
|
-
// @ts-expect-error TS(7006) FIXME: Parameter 'fileObj' implicitly has an 'any' type.
|
|
41
|
-
map((fileObj) => {
|
|
35
|
+
export const fileNormalizerCtor = ({ assetType, normalizer: normalizeFunction }) => map((fileObj) => {
|
|
42
36
|
const normalizedFile = { ...fileObj, assetType, normalizedPath: normalizePath(fileObj.relname) };
|
|
43
37
|
if (normalizeFunction !== undefined) {
|
|
44
38
|
return normalizeFunction(normalizedFile);
|
|
@@ -50,7 +44,6 @@ map((fileObj) => {
|
|
|
50
44
|
export const manifestCollectorCtor = (filesObj, shaMap, { assetType, statusCb }) => {
|
|
51
45
|
if (!statusCb || !assetType)
|
|
52
46
|
throw new Error('Missing required options');
|
|
53
|
-
// @ts-expect-error TS(7006) FIXME: Parameter 'fileObj' implicitly has an 'any' type.
|
|
54
47
|
return flushWriteStream.obj((fileObj, _, cb) => {
|
|
55
48
|
filesObj[fileObj.normalizedPath] = fileObj.hash;
|
|
56
49
|
// We map a hash to multiple fileObj's because the same file
|
|
@@ -66,7 +59,7 @@ export const manifestCollectorCtor = (filesObj, shaMap, { assetType, statusCb })
|
|
|
66
59
|
msg: `Hashing ${fileObj.relname}`,
|
|
67
60
|
phase: 'progress',
|
|
68
61
|
});
|
|
69
|
-
cb(
|
|
62
|
+
cb();
|
|
70
63
|
});
|
|
71
64
|
};
|
|
72
65
|
/* eslint-enable promise/prefer-await-to-callbacks */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-global-config.d.ts","sourceRoot":"","sources":["../../src/utils/get-global-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-global-config.d.ts","sourceRoot":"","sources":["../../src/utils/get-global-config.ts"],"names":[],"mappings":"AAkBA;;GAEG;AACH,QAAA,MAAM,eAAe,oBAmBpB,CAAA;AAED,eAAO,MAAM,gBAAgB,YAE5B,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { readFile } from 'fs/promises';
|
|
2
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'conf... Remove this comment to see the full error message
|
|
3
2
|
import Configstore from 'configstore';
|
|
4
3
|
import { v4 as uuidv4 } from 'uuid';
|
|
5
4
|
import { getLegacyPathInHome, getPathInHome } from '../lib/settings.js';
|
|
@@ -30,7 +29,8 @@ const getGlobalConfig = async function () {
|
|
|
30
29
|
catch { }
|
|
31
30
|
// Use legacy config as default values
|
|
32
31
|
const defaults = { ...globalConfigDefaults, ...legacyConfig };
|
|
33
|
-
|
|
32
|
+
// The id param is only used when not passing `configPath` but the type def requires it
|
|
33
|
+
configStore = new Configstore('unused-id', defaults, { configPath });
|
|
34
34
|
}
|
|
35
35
|
return configStore;
|
|
36
36
|
};
|
|
@@ -9,12 +9,12 @@ declare const getRepoData: ({ remoteName, workingDir }: {
|
|
|
9
9
|
remoteName?: string;
|
|
10
10
|
workingDir: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
name:
|
|
13
|
-
owner:
|
|
14
|
-
repo:
|
|
12
|
+
name: string | null;
|
|
13
|
+
owner: string | null;
|
|
14
|
+
repo: string | null;
|
|
15
15
|
url: any;
|
|
16
16
|
branch: string;
|
|
17
|
-
provider:
|
|
17
|
+
provider: string | null;
|
|
18
18
|
httpsUrl: string;
|
|
19
19
|
error?: undefined;
|
|
20
20
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-repo-data.d.ts","sourceRoot":"","sources":["../../src/utils/get-repo-data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-repo-data.d.ts","sourceRoot":"","sources":["../../src/utils/get-repo-data.ts"],"names":[],"mappings":"AAUA;;;;;;GAMG;AAEH,QAAA,MAAM,WAAW,+BAA+C;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;EAsD1G,CAAA;AAOD,eAAe,WAAW,CAAA"}
|
|
@@ -2,10 +2,8 @@ import { dirname } from 'path';
|
|
|
2
2
|
import util from 'util';
|
|
3
3
|
import { findUp } from 'find-up';
|
|
4
4
|
import gitRepoInfo from 'git-repo-info';
|
|
5
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'gitc... Remove this comment to see the full error message
|
|
6
5
|
import gitconfiglocal from 'gitconfiglocal';
|
|
7
|
-
|
|
8
|
-
import parseGitRemote from 'parse-github-url';
|
|
6
|
+
import parseGithubUrl from 'parse-github-url';
|
|
9
7
|
import { log } from './command-helpers.js';
|
|
10
8
|
/**
|
|
11
9
|
*
|
|
@@ -37,7 +35,11 @@ const getRepoData = async function ({ remoteName, workingDir }) {
|
|
|
37
35
|
throw new Error(`The specified remote "${remoteName}" is not defined in Git repo. Please use --git-remote-name flag to specify a remote.`);
|
|
38
36
|
}
|
|
39
37
|
const { url } = gitConfig.remote[remoteName];
|
|
40
|
-
const
|
|
38
|
+
const parsedUrl = parseGithubUrl(url);
|
|
39
|
+
if (parsedUrl == null) {
|
|
40
|
+
throw new Error(`The specified Git remote ${remoteName} is not a valid URL: ${url}`);
|
|
41
|
+
}
|
|
42
|
+
const { host, name, owner, repo } = parsedUrl;
|
|
41
43
|
const { branch } = gitRepoInfo();
|
|
42
44
|
return {
|
|
43
45
|
name,
|
|
@@ -45,8 +47,7 @@ const getRepoData = async function ({ remoteName, workingDir }) {
|
|
|
45
47
|
repo,
|
|
46
48
|
url,
|
|
47
49
|
branch,
|
|
48
|
-
|
|
49
|
-
provider: PROVIDERS[host] || host,
|
|
50
|
+
provider: host != null ? PROVIDERS[host] ?? host : host,
|
|
50
51
|
httpsUrl: `https://${host}/${repo}`,
|
|
51
52
|
};
|
|
52
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-browser.d.ts","sourceRoot":"","sources":["../../src/utils/open-browser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"open-browser.d.ts","sourceRoot":"","sources":["../../src/utils/open-browser.ts"],"names":[],"mappings":"AAoBA,KAAK,eAAe,GAAG;IACrB,sBAAsB,EAAE,OAAO,CAAA;IAC/B,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,QAAA,MAAM,WAAW,oCAAoD,eAAe,kBAmBnF,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import process from 'process';
|
|
2
|
-
|
|
3
|
-
import open from 'better-opn';
|
|
2
|
+
import open from 'open';
|
|
4
3
|
import isDockerContainer from 'is-docker';
|
|
5
4
|
import { chalk, log } from './command-helpers.js';
|
|
6
5
|
const unableToOpenBrowserMessage = function ({ message, url }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/utils/proxy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/utils/proxy.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAkB,MAAM,sBAAsB,CAAA;AAkB/D,OAAO,EAAqB,cAAc,EAAE,MAAM,YAAY,CAAA;AAoyB9D,eAAO,MAAM,WAAW,aAAuB,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,MAAM,CAAC,WAGpF,CAAA;AAID,eAAO,MAAM,UAAU,oQAsBpB;IAAE,OAAO,EAAE,WAAW,CAAC;IAAC,QAAQ,EAAE,cAAc,CAAC;IAAC,oBAAoB,EAAE,OAAO,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,oBA4G9G,CAAA"}
|
package/dist/utils/proxy.js
CHANGED
|
@@ -9,12 +9,9 @@ import path from 'path';
|
|
|
9
9
|
import process from 'process';
|
|
10
10
|
import util from 'util';
|
|
11
11
|
import zlib from 'zlib';
|
|
12
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'cont... Remove this comment to see the full error message
|
|
13
12
|
import contentType from 'content-type';
|
|
14
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'cook... Remove this comment to see the full error message
|
|
15
13
|
import cookie from 'cookie';
|
|
16
14
|
import { getProperty } from 'dot-prop';
|
|
17
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'etag... Remove this comment to see the full error message
|
|
18
15
|
import generateETag from 'etag';
|
|
19
16
|
import getAvailablePort from 'get-port';
|
|
20
17
|
import httpProxy from 'http-proxy';
|
|
@@ -270,8 +267,11 @@ const serveRedirect = async function ({ env, functionsRegistry, imageProxy, matc
|
|
|
270
267
|
}
|
|
271
268
|
}
|
|
272
269
|
const reqUrl = reqToURL(req, req.url);
|
|
270
|
+
const isHiddenProxy = match.proxyHeaders &&
|
|
271
|
+
Object.entries(match.proxyHeaders).some(([key, val]) => key.toLowerCase() === 'x-nf-hidden-proxy' && val === 'true');
|
|
273
272
|
const staticFile = await getStatic(decodeURIComponent(reqUrl.pathname), options.publicFolder);
|
|
274
273
|
const endpointExists = !staticFile &&
|
|
274
|
+
!isHiddenProxy &&
|
|
275
275
|
process.env.NETLIFY_DEV_SERVER_CHECK_SSG_ENDPOINTS &&
|
|
276
276
|
(await isEndpointExists(decodeURIComponent(reqUrl.pathname), options.target));
|
|
277
277
|
if (staticFile || endpointExists) {
|
|
@@ -303,8 +303,6 @@ const serveRedirect = async function ({ env, functionsRegistry, imageProxy, matc
|
|
|
303
303
|
destURL = `${dest}`;
|
|
304
304
|
}
|
|
305
305
|
else {
|
|
306
|
-
const isHiddenProxy = match.proxyHeaders &&
|
|
307
|
-
Object.entries(match.proxyHeaders).some(([key, val]) => key.toLowerCase() === 'x-nf-hidden-proxy' && val === 'true');
|
|
308
306
|
if (!isHiddenProxy) {
|
|
309
307
|
console.log(`${NETLIFYDEVLOG} Proxying to ${dest}`);
|
|
310
308
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-proxy.d.ts","sourceRoot":"","sources":["../../src/utils/rules-proxy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rules-proxy.d.ts","sourceRoot":"","sources":["../../src/utils/rules-proxy.ts"],"names":[],"mappings":"AAYA,OAAO,EAAW,QAAQ,EAAE,MAAM,YAAY,CAAA;AAM9C,eAAO,MAAM,SAAS,qCAQrB,CAAA;AAED,eAAO,MAAM,WAAW,aAGvB,CAAA;AAGD,eAAO,MAAM,WAAW,uBAKvB,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;MAevB,OAAO,CAAC,QAAQ,CAoEnB,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import chokidar from 'chokidar';
|
|
3
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'cook... Remove this comment to see the full error message
|
|
4
3
|
import cookie from 'cookie';
|
|
5
4
|
import redirector from 'netlify-redirector';
|
|
6
5
|
import pFilter from 'p-filter';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-build.d.ts","sourceRoot":"","sources":["../../src/utils/run-build.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-build.d.ts","sourceRoot":"","sources":["../../src/utils/run-build.ts"],"names":[],"mappings":"AAKA,OAAO,WAAW,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAS/C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAqC3C,eAAO,MAAM,eAAe,mDAMzB;IACD,OAAO,EAAE,WAAW,CAAA;IAEpB,OAAO,EAAE,QAAQ,CAAA;IACjB,QAAQ,EAAE,cAAc,CAAA;IACxB,GAAG,EAAE,MAAM,CAAC,UAAU,CAAA;IACtB,QAAQ,EAAE,OAAO,GAAG,KAAK,CAAA;CAC1B;;;;;;;;;EA6GA,CAAA;AAED,KAAK,kBAAkB,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAA;AAEjF,eAAO,MAAM,cAAc,YAAa,kBAAkB;;;;;;;;;EAAqD,CAAA;AAE/G,eAAO,MAAM,gBAAgB,YAAa,kBAAkB;;;;;;;;;EAAuD,CAAA"}
|
package/dist/utils/run-build.js
CHANGED
|
@@ -58,7 +58,7 @@ export const runNetlifyBuild = async ({ command, env = {}, options, settings, ti
|
|
|
58
58
|
saveConfig: options.saveConfig,
|
|
59
59
|
edgeFunctionsBootstrapURL: await getBootstrapURL(),
|
|
60
60
|
};
|
|
61
|
-
const devCommand = async (settingsOverrides = {}) => {
|
|
61
|
+
const devCommand = async ({ netlifyConfig, settingsOverrides, } = {}) => {
|
|
62
62
|
let cwd = command.workingDir;
|
|
63
63
|
if (!options.cwd && command.project.workspace?.packages.length) {
|
|
64
64
|
cwd = join(command.project.jsWorkspaceRoot, settings.baseDirectory || '');
|
|
@@ -68,6 +68,11 @@ export const runNetlifyBuild = async ({ command, env = {}, options, settings, ti
|
|
|
68
68
|
...settings,
|
|
69
69
|
...settingsOverrides,
|
|
70
70
|
...(options.skipWaitPort ? { skipWaitPort: true } : {}),
|
|
71
|
+
env: {
|
|
72
|
+
...settings.env,
|
|
73
|
+
...settingsOverrides?.env,
|
|
74
|
+
...netlifyConfig?.build.environment,
|
|
75
|
+
},
|
|
71
76
|
},
|
|
72
77
|
cwd,
|
|
73
78
|
});
|
|
@@ -102,7 +107,7 @@ export const runNetlifyBuild = async ({ command, env = {}, options, settings, ti
|
|
|
102
107
|
if (!options.dir && netlifyConfig?.build?.publish) {
|
|
103
108
|
settingsOverrides.dist = netlifyConfig.build.publish;
|
|
104
109
|
}
|
|
105
|
-
await devCommand(settingsOverrides);
|
|
110
|
+
await devCommand({ netlifyConfig, settingsOverrides });
|
|
106
111
|
return { configPath: tempConfigPath };
|
|
107
112
|
}
|
|
108
113
|
const startDevOptions = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-template.d.ts","sourceRoot":"","sources":["../../../src/utils/sites/create-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"create-template.d.ts","sourceRoot":"","sources":["../../../src/utils/sites/create-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAKxC,OAAO,EAAE,QAAQ,EAAc,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,cAAc,UAAiB,MAAM,KAAG,OAAO,CAAC,QAAQ,EAAE,CAatE,CAAA;AAED,eAAO,MAAM,eAAe,sCAIzB;IACD,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,YAAY,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;CACnB,iBA4BA,CAAA;AAED,eAAO,MAAM,kBAAkB,SAAgB,MAAM,KAAG,OAAO,CAAC,OAAO,CAMtE,CAAA;AAED,eAAO,MAAM,aAAa,8BAA+B;IAAE,OAAO,EAAE,YAAY,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,QACnD,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import inquirer from 'inquirer';
|
|
2
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'pars... Remove this comment to see the full error message
|
|
3
2
|
import parseGitHubUrl from 'parse-github-url';
|
|
4
3
|
import { log } from '../command-helpers.js';
|
|
5
4
|
import { getTemplatesFromGitHub } from './utils.js';
|
|
@@ -16,8 +15,8 @@ export const fetchTemplates = async (token) => {
|
|
|
16
15
|
};
|
|
17
16
|
export const getTemplateName = async ({ ghToken, options, repository, }) => {
|
|
18
17
|
if (repository) {
|
|
19
|
-
const
|
|
20
|
-
return repo || `netlify-templates/${repository}`;
|
|
18
|
+
const parsedUrl = parseGitHubUrl(repository);
|
|
19
|
+
return parsedUrl?.repo || `netlify-templates/${repository}`;
|
|
21
20
|
}
|
|
22
21
|
if (options.url) {
|
|
23
22
|
const urlFromOptions = new URL(options.url);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-config.d.ts","sourceRoot":"","sources":["../../src/utils/state-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"state-config.d.ts","sourceRoot":"","sources":["../../src/utils/state-config.ts"],"names":[],"mappings":"AA6BA,MAAM,CAAC,OAAO,OAAO,WAAW;gBAElB,GAAG,KAAA;IAKf,IAAI,GAAG,QA4BN;IAED,IAAI,GAAG,CAAC,GAAG,KAAA,EAiBV;IAED,IAAI,IAAI,WAEP;IAGD,GAAG,CAAC,GAAG,KAAA;IASP,GAAG,CAAC,GAAG,IAAI,OAAA;IAgBX,GAAG,CAAC,GAAG,KAAA;IAKP,MAAM,CAAC,GAAG,KAAA;IAMV,KAAK;CAGN"}
|
|
@@ -3,7 +3,6 @@ import path from 'path';
|
|
|
3
3
|
import process from 'process';
|
|
4
4
|
import { deleteProperty, getProperty, hasProperty, setProperty } from 'dot-prop';
|
|
5
5
|
import { findUpSync } from 'find-up';
|
|
6
|
-
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'writ... Remove this comment to see the full error message
|
|
7
6
|
import writeFileAtomic from 'write-file-atomic';
|
|
8
7
|
import { getPathInProject } from '../lib/settings.js';
|
|
9
8
|
const STATE_PATH = getPathInProject(['state.json']);
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -190,5 +190,12 @@ export interface Template {
|
|
|
190
190
|
sourceCodeUrl: string;
|
|
191
191
|
slug: string;
|
|
192
192
|
}
|
|
193
|
+
type EnvironmentVariableScope = 'builds' | 'functions' | 'runtime' | 'post_processing';
|
|
194
|
+
type EnvironmentVariableSource = 'account' | 'addons' | 'configFile' | 'general' | 'internal' | 'ui';
|
|
195
|
+
export type EnvironmentVariables = Record<string, {
|
|
196
|
+
sources: EnvironmentVariableSource[];
|
|
197
|
+
value: string;
|
|
198
|
+
scopes?: EnvironmentVariableScope[];
|
|
199
|
+
}>;
|
|
193
200
|
export {};
|
|
194
201
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAEtC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAE1C,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;AAErE,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE;QACL,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,GAAG,EAAE;QACH,Q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