netlify-cli 18.0.1-rc.0 → 18.0.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/utils/proxy.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAkB,MAAM,sBAAsB,CAAA;AAkB/D,OAAO,EAAqB,cAAc,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/utils/proxy.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAkB,MAAM,sBAAsB,CAAA;AAkB/D,OAAO,EAAqB,cAAc,EAAE,MAAM,YAAY,CAAA;AAkyB9D,eAAO,MAAM,WAAW,aAAuB,KAAK,cAAc,EAAE,OAAO,GAAG,MAAM,CAAC,WAGpF,CAAA;AAID,eAAO,MAAM,UAAU;aAsBT,WAAW;cAAY,cAAc;0BAAwB,OAAO;2CA4GjF,CAAA"}
|
package/dist/utils/proxy.js
CHANGED
|
@@ -549,6 +549,7 @@ const initializeProxy = async function ({ config, configPath, distDir, env, host
|
|
|
549
549
|
...proxyResHeaders,
|
|
550
550
|
'content-length': String(responseBody.byteLength),
|
|
551
551
|
};
|
|
552
|
+
delete proxyResHeaders['transfer-encoding'];
|
|
552
553
|
}
|
|
553
554
|
res.writeHead(responseStatus, proxyResHeaders);
|
|
554
555
|
if (responseStatus !== 304) {
|
|
@@ -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;AAMxC,OAAO,EAAE,QAAQ,EAAc,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,cAAc,UAAiB,MAAM,KAAG,QAAQ,QAAQ,EAAE,
|
|
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;AAMxC,OAAO,EAAE,QAAQ,EAAc,MAAM,aAAa,CAAA;AAIlD,eAAO,MAAM,cAAc,UAAiB,MAAM,KAAG,QAAQ,QAAQ,EAAE,CAatE,CAAA;AAED,eAAO,MAAM,eAAe;aAKjB,MAAM;aACN,YAAY;gBACT,MAAM;kBA6BnB,CAAA;AAED,eAAO,MAAM,kBAAkB,SAAgB,MAAM,KAAG,QAAQ,OAAO,CAMtE,CAAA;AAED,eAAO,MAAM,aAAa;aAA0C,YAAY;kBAAgB,MAAM;SACjD,CAAA"}
|
|
@@ -5,13 +5,14 @@ import { log } from '../command-helpers.js';
|
|
|
5
5
|
import { getTemplatesFromGitHub } from './utils.js';
|
|
6
6
|
export const fetchTemplates = async (token) => {
|
|
7
7
|
const templatesFromGitHubOrg = await getTemplatesFromGitHub(token);
|
|
8
|
-
return templatesFromGitHubOrg
|
|
9
|
-
|
|
8
|
+
return (templatesFromGitHubOrg
|
|
9
|
+
// adding this filter because the react-based-templates has multiple templates in one repo so doesn't work for this command
|
|
10
|
+
.filter((repo) => !repo.archived && !repo.disabled && repo.name !== 'react-based-templates')
|
|
10
11
|
.map((template) => ({
|
|
11
12
|
name: template.name,
|
|
12
13
|
sourceCodeUrl: template.html_url,
|
|
13
14
|
slug: template.full_name,
|
|
14
|
-
}));
|
|
15
|
+
})));
|
|
15
16
|
};
|
|
16
17
|
export const getTemplateName = async ({ ghToken, options, repository, }) => {
|
|
17
18
|
if (repository) {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "18.0.1
|
|
3
|
+
"version": "18.0.1",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "18.0.1
|
|
9
|
+
"version": "18.0.1",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
@@ -7585,15 +7585,15 @@
|
|
|
7585
7585
|
"integrity": "sha512-IgfweLvEpwyA4WgiQe9Nx6VV2QkML2NkvZnk1oKnIzXgXdWxuhF7zw4DvLTPZJn6PIUneiAXPF24QmoEqHTjyw=="
|
|
7586
7586
|
},
|
|
7587
7587
|
"node_modules/fast-glob": {
|
|
7588
|
-
"version": "3.3.
|
|
7589
|
-
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.
|
|
7590
|
-
"integrity": "sha512-
|
|
7588
|
+
"version": "3.3.3",
|
|
7589
|
+
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",
|
|
7590
|
+
"integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
|
|
7591
7591
|
"dependencies": {
|
|
7592
7592
|
"@nodelib/fs.stat": "^2.0.2",
|
|
7593
7593
|
"@nodelib/fs.walk": "^1.2.3",
|
|
7594
7594
|
"glob-parent": "^5.1.2",
|
|
7595
7595
|
"merge2": "^1.3.0",
|
|
7596
|
-
"micromatch": "^4.0.
|
|
7596
|
+
"micromatch": "^4.0.8"
|
|
7597
7597
|
},
|
|
7598
7598
|
"engines": {
|
|
7599
7599
|
"node": ">=8.6.0"
|
|
@@ -11378,9 +11378,9 @@
|
|
|
11378
11378
|
}
|
|
11379
11379
|
},
|
|
11380
11380
|
"node_modules/p-timeout": {
|
|
11381
|
-
"version": "6.1.
|
|
11382
|
-
"resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.
|
|
11383
|
-
"integrity": "sha512-
|
|
11381
|
+
"version": "6.1.4",
|
|
11382
|
+
"resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.4.tgz",
|
|
11383
|
+
"integrity": "sha512-MyIV3ZA/PmyBN/ud8vV9XzwTrNtR4jFrObymZYnZqMmW0zA8Z17vnT0rBgFE/TlohB+YCHqXMgZzb3Csp49vqg==",
|
|
11384
11384
|
"engines": {
|
|
11385
11385
|
"node": ">=14.16"
|
|
11386
11386
|
},
|
|
@@ -19489,15 +19489,15 @@
|
|
|
19489
19489
|
"integrity": "sha512-IgfweLvEpwyA4WgiQe9Nx6VV2QkML2NkvZnk1oKnIzXgXdWxuhF7zw4DvLTPZJn6PIUneiAXPF24QmoEqHTjyw=="
|
|
19490
19490
|
},
|
|
19491
19491
|
"fast-glob": {
|
|
19492
|
-
"version": "3.3.
|
|
19493
|
-
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.
|
|
19494
|
-
"integrity": "sha512-
|
|
19492
|
+
"version": "3.3.3",
|
|
19493
|
+
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",
|
|
19494
|
+
"integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
|
|
19495
19495
|
"requires": {
|
|
19496
19496
|
"@nodelib/fs.stat": "^2.0.2",
|
|
19497
19497
|
"@nodelib/fs.walk": "^1.2.3",
|
|
19498
19498
|
"glob-parent": "^5.1.2",
|
|
19499
19499
|
"merge2": "^1.3.0",
|
|
19500
|
-
"micromatch": "^4.0.
|
|
19500
|
+
"micromatch": "^4.0.8"
|
|
19501
19501
|
}
|
|
19502
19502
|
},
|
|
19503
19503
|
"fast-json-stable-stringify": {
|
|
@@ -22132,9 +22132,9 @@
|
|
|
22132
22132
|
}
|
|
22133
22133
|
},
|
|
22134
22134
|
"p-timeout": {
|
|
22135
|
-
"version": "6.1.
|
|
22136
|
-
"resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.
|
|
22137
|
-
"integrity": "sha512-
|
|
22135
|
+
"version": "6.1.4",
|
|
22136
|
+
"resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.4.tgz",
|
|
22137
|
+
"integrity": "sha512-MyIV3ZA/PmyBN/ud8vV9XzwTrNtR4jFrObymZYnZqMmW0zA8Z17vnT0rBgFE/TlohB+YCHqXMgZzb3Csp49vqg=="
|
|
22138
22138
|
},
|
|
22139
22139
|
"p-wait-for": {
|
|
22140
22140
|
"version": "5.0.2",
|