@depup/netlify-cli 24.3.0-depup.1 → 24.4.0-depup.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/README.md +3 -11
- package/changes.json +2 -34
- package/dist/commands/switch/index.d.ts.map +1 -1
- package/dist/commands/switch/index.js +1 -0
- package/dist/commands/switch/index.js.map +1 -1
- package/dist/commands/switch/switch.d.ts +1 -1
- package/dist/commands/switch/switch.d.ts.map +1 -1
- package/dist/commands/switch/switch.js +14 -6
- package/dist/commands/switch/switch.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/deploy/deploy-site.d.ts.map +1 -1
- package/dist/utils/deploy/deploy-site.js +6 -0
- package/dist/utils/deploy/deploy-site.js.map +1 -1
- package/functions-templates/javascript/scheduled-function/package.json +1 -1
- package/functions-templates/typescript/hello-world/package-lock.json +15 -15
- package/functions-templates/typescript/hello-world/package.json +1 -1
- package/functions-templates/typescript/scheduled-function/package.json +1 -1
- package/npm-shrinkwrap.json +3017 -2652
- package/package.json +14 -46
package/README.md
CHANGED
|
@@ -13,30 +13,22 @@ npm install @depup/netlify-cli
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [netlify-cli](https://www.npmjs.com/package/netlify-cli) @ 24.
|
|
17
|
-
| Processed | 2026-03-
|
|
16
|
+
| Original | [netlify-cli](https://www.npmjs.com/package/netlify-cli) @ 24.4.0 |
|
|
17
|
+
| Processed | 2026-03-20 |
|
|
18
18
|
| Smoke test | failed |
|
|
19
|
-
| Deps updated |
|
|
19
|
+
| Deps updated | 21 |
|
|
20
20
|
|
|
21
21
|
## Dependency Changes
|
|
22
22
|
|
|
23
23
|
| Dependency | From | To |
|
|
24
24
|
|------------|------|-----|
|
|
25
25
|
| @netlify/blobs | 10.7.0 | ^10.7.4 |
|
|
26
|
-
| @netlify/build | 35.8.9 | ^35.10.0 |
|
|
27
|
-
| @netlify/dev | 4.16.2 | ^4.16.4 |
|
|
28
|
-
| @netlify/dev-utils | 4.4.1 | ^4.4.3 |
|
|
29
|
-
| @netlify/edge-bundler | 14.9.15 | ^14.9.17 |
|
|
30
|
-
| @netlify/edge-functions | 3.0.4 | ^3.0.6 |
|
|
31
26
|
| @netlify/edge-functions-bootstrap | 2.17.1 | ^3.1.0 |
|
|
32
|
-
| @netlify/images | 1.3.5 | ^1.3.7 |
|
|
33
27
|
| @octokit/rest | 22.0.0 | ^22.0.1 |
|
|
34
28
|
| @opentelemetry/api | 1.8.0 | ^1.9.0 |
|
|
35
29
|
| chokidar | 4.0.3 | ^5.0.0 |
|
|
36
30
|
| commander | 12.1.0 | ^14.0.3 |
|
|
37
|
-
| cookie | 1.0.2 | ^1.1.1 |
|
|
38
31
|
| cron-parser | 4.9.0 | ^5.5.0 |
|
|
39
|
-
| envinfo | 7.15.0 | ^7.21.0 |
|
|
40
32
|
| execa | 5.1.1 | ^9.6.1 |
|
|
41
33
|
| get-port | 5.1.1 | ^7.1.0 |
|
|
42
34
|
| https-proxy-agent | 7.0.6 | ^8.0.0 |
|
package/changes.json
CHANGED
|
@@ -4,34 +4,10 @@
|
|
|
4
4
|
"from": "10.7.0",
|
|
5
5
|
"to": "^10.7.4"
|
|
6
6
|
},
|
|
7
|
-
"@netlify/build": {
|
|
8
|
-
"from": "35.8.9",
|
|
9
|
-
"to": "^35.10.0"
|
|
10
|
-
},
|
|
11
|
-
"@netlify/dev": {
|
|
12
|
-
"from": "4.16.2",
|
|
13
|
-
"to": "^4.16.4"
|
|
14
|
-
},
|
|
15
|
-
"@netlify/dev-utils": {
|
|
16
|
-
"from": "4.4.1",
|
|
17
|
-
"to": "^4.4.3"
|
|
18
|
-
},
|
|
19
|
-
"@netlify/edge-bundler": {
|
|
20
|
-
"from": "14.9.15",
|
|
21
|
-
"to": "^14.9.17"
|
|
22
|
-
},
|
|
23
|
-
"@netlify/edge-functions": {
|
|
24
|
-
"from": "3.0.4",
|
|
25
|
-
"to": "^3.0.6"
|
|
26
|
-
},
|
|
27
7
|
"@netlify/edge-functions-bootstrap": {
|
|
28
8
|
"from": "2.17.1",
|
|
29
9
|
"to": "^3.1.0"
|
|
30
10
|
},
|
|
31
|
-
"@netlify/images": {
|
|
32
|
-
"from": "1.3.5",
|
|
33
|
-
"to": "^1.3.7"
|
|
34
|
-
},
|
|
35
11
|
"@octokit/rest": {
|
|
36
12
|
"from": "22.0.0",
|
|
37
13
|
"to": "^22.0.1"
|
|
@@ -48,18 +24,10 @@
|
|
|
48
24
|
"from": "12.1.0",
|
|
49
25
|
"to": "^14.0.3"
|
|
50
26
|
},
|
|
51
|
-
"cookie": {
|
|
52
|
-
"from": "1.0.2",
|
|
53
|
-
"to": "^1.1.1"
|
|
54
|
-
},
|
|
55
27
|
"cron-parser": {
|
|
56
28
|
"from": "4.9.0",
|
|
57
29
|
"to": "^5.5.0"
|
|
58
30
|
},
|
|
59
|
-
"envinfo": {
|
|
60
|
-
"from": "7.15.0",
|
|
61
|
-
"to": "^7.21.0"
|
|
62
|
-
},
|
|
63
31
|
"execa": {
|
|
64
32
|
"from": "5.1.1",
|
|
65
33
|
"to": "^9.6.1"
|
|
@@ -117,6 +85,6 @@
|
|
|
117
85
|
"to": "^7.0.1"
|
|
118
86
|
}
|
|
119
87
|
},
|
|
120
|
-
"timestamp": "2026-03-
|
|
121
|
-
"totalUpdated":
|
|
88
|
+
"timestamp": "2026-03-20T20:12:36.611Z",
|
|
89
|
+
"totalUpdated": 21
|
|
122
90
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/switch/index.ts"],"names":[],"mappings":"AAEA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C,eAAO,MAAM,mBAAmB,GAAI,SAAS,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/switch/index.ts"],"names":[],"mappings":"AAEA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C,eAAO,MAAM,mBAAmB,GAAI,SAAS,WAAW,gBAQlD,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const createSwitchCommand = (program) => program
|
|
2
2
|
.command('switch')
|
|
3
3
|
.description('Switch your active Netlify account')
|
|
4
|
+
.option('--email <email>', 'Switch to the account matching this email address')
|
|
4
5
|
.action(async (options, command) => {
|
|
5
6
|
const { switchCommand } = await import('./switch.js');
|
|
6
7
|
await switchCommand(options, command);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/switch/index.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAoB,EAAE,EAAE,CAC1D,OAAO;KACJ,OAAO,CAAC,QAAQ,CAAC;KACjB,WAAW,CAAC,oCAAoC,CAAC;KACjD,MAAM,CAAC,KAAK,EAAE,OAAqB,EAAE,OAAoB,EAAE,EAAE;IAC5D,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAA;IACrD,MAAM,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;AACvC,CAAC,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/switch/index.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAoB,EAAE,EAAE,CAC1D,OAAO;KACJ,OAAO,CAAC,QAAQ,CAAC;KACjB,WAAW,CAAC,oCAAoC,CAAC;KACjD,MAAM,CAAC,iBAAiB,EAAE,mDAAmD,CAAC;KAC9E,MAAM,CAAC,KAAK,EAAE,OAAqB,EAAE,OAAoB,EAAE,EAAE;IAC5D,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAA;IACrD,MAAM,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;AACvC,CAAC,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { OptionValues } from 'commander';
|
|
2
2
|
import BaseCommand from '../base-command.js';
|
|
3
|
-
export declare const switchCommand: (
|
|
3
|
+
export declare const switchCommand: (options: OptionValues, command: BaseCommand) => Promise<void>;
|
|
4
4
|
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/commands/switch/switch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAIxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAK5C,eAAO,MAAM,aAAa,GAAU,
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/commands/switch/switch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAIxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAK5C,eAAO,MAAM,aAAa,GAAU,SAAS,YAAY,EAAE,SAAS,WAAW,kBA4C9E,CAAA"}
|
|
@@ -2,16 +2,25 @@ import inquirer from 'inquirer';
|
|
|
2
2
|
import { chalk, log } from '../../utils/command-helpers.js';
|
|
3
3
|
import { login } from '../login/login.js';
|
|
4
4
|
const LOGIN_NEW = 'I would like to login to a new account';
|
|
5
|
-
export const switchCommand = async (
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export const switchCommand = async (options, command) => {
|
|
6
|
+
const users = (command.netlify.globalConfig.get('users') || {});
|
|
7
|
+
const availableUsersChoices = Object.values(users).reduce((prev, current) => Object.assign(prev, { [current.id]: current.name ? `${current.name} (${current.email})` : current.email }), {});
|
|
8
|
+
if (options.email) {
|
|
9
|
+
const matchedUser = Object.values(users).find((user) => user.email === options.email);
|
|
10
|
+
if (matchedUser) {
|
|
11
|
+
command.netlify.globalConfig.set('userId', matchedUser.id);
|
|
12
|
+
log('');
|
|
13
|
+
log(`You're now using ${chalk.bold(availableUsersChoices[matchedUser.id])}.`);
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
log(`No account found matching ${chalk.bold(options.email)}, showing all available accounts.`);
|
|
17
|
+
log('');
|
|
18
|
+
}
|
|
9
19
|
const { accountSwitchChoice } = await inquirer.prompt([
|
|
10
20
|
{
|
|
11
21
|
type: 'list',
|
|
12
22
|
name: 'accountSwitchChoice',
|
|
13
23
|
message: 'Please select the account you want to use:',
|
|
14
|
-
// @ts-expect-error TS(2769) FIXME: No overload matches this call.
|
|
15
24
|
choices: [...Object.entries(availableUsersChoices).map(([, val]) => val), LOGIN_NEW],
|
|
16
25
|
},
|
|
17
26
|
]);
|
|
@@ -19,7 +28,6 @@ export const switchCommand = async (_options, command) => {
|
|
|
19
28
|
await login({ new: true }, command);
|
|
20
29
|
}
|
|
21
30
|
else {
|
|
22
|
-
// @ts-expect-error TS(2769) FIXME: No overload matches this call.
|
|
23
31
|
const selectedAccount = Object.entries(availableUsersChoices).find(([, availableUsersChoice]) => availableUsersChoice === accountSwitchChoice);
|
|
24
32
|
// @ts-expect-error TS(2532) FIXME: Object is possibly 'undefined'.
|
|
25
33
|
command.netlify.globalConfig.set('userId', selectedAccount[0]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../src/commands/switch/switch.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAA;AAE3D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEzC,MAAM,SAAS,GAAG,wCAAwC,CAAA;AAE1D,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../src/commands/switch/switch.ts"],"names":[],"mapp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