@pnp/cli-microsoft365 11.3.0-beta.c16a3a7 → 11.3.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.
Files changed (28) hide show
  1. package/allCommandsFull.json +1 -1
  2. package/dist/m365/external/commands/item/item-add.js +1 -1
  3. package/dist/m365/spe/commands/container/container-add.js +1 -1
  4. package/dist/m365/spe/commands/container/container-remove.js +2 -2
  5. package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.22.0-rc.0.js → doctor-1.22.0.js} +1 -1
  6. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.1.js +21 -0
  7. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  8. package/dist/m365/spfx/commands/project/project-upgrade/rules/DependencyRule.js +56 -14
  9. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014003_CODE_launch.js +7 -44
  10. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021005_PKG_scripts_test.js +18 -9
  11. package/dist/m365/spfx/commands/project/project-upgrade/rules/{FN021008_PKG_scripts_start.js → FN021007_PKG_scripts_start.js} +3 -3
  12. package/dist/m365/spfx/commands/project/project-upgrade/rules/{FN021012_PKG_scripts_eject_webpack.js → FN021008_PKG_scripts_eject_webpack.js} +3 -3
  13. package/dist/m365/spfx/commands/project/project-upgrade/rules/{FN021013_PKG_overrides_rushstack_heft.js → FN021009_PKG_overrides_rushstack_heft.js} +3 -3
  14. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.22.0-rc.0.js → upgrade-1.22.0.js} +60 -50
  15. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.1.js +55 -0
  16. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.4.js +42 -1
  17. package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
  18. package/dist/m365/spfx/commands/spfx-doctor.js +41 -1
  19. package/dist/utils/stringUtil.js +4 -0
  20. package/npm-shrinkwrap.json +542 -1494
  21. package/package.json +23 -16
  22. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021007_PKG_scripts_deploy.js +0 -45
  23. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021009_PKG_scripts_build_watch.js +0 -45
  24. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021010_PKG_scripts_package_solution.js +0 -45
  25. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021011_PKG_scripts_deploy_azure_storage.js +0 -45
  26. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021014_PKG_scripts_test_only.js +0 -45
  27. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021015_PKG_scripts_trust_dev_cert.js +0 -45
  28. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021016_PKG_scripts_untrust_dev_cert.js +0 -45
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "11.3.0-beta.c16a3a7",
3
+ "version": "11.3.1",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -134,6 +134,7 @@
134
134
  "Bauer, Stefan <stefan.bauer@n8d.at>",
135
135
  "Bernier, Hugo <hugoabernier@live.ca>",
136
136
  "Bewernitz, Christian <coder@karfau.de>",
137
+ "Bezawada, Nishkalank <nishkalankbezawada@outlook.com>",
137
138
  "Bhardwaj, Aakash <aakashbhardwaj619@gmail.com>",
138
139
  "Biret, Vincent <baywet@users.noreply.github.com>",
139
140
  "Biro, Peter <Peter.Biro@xs.nestle.com>",
@@ -165,6 +166,7 @@
165
166
  "Hunt, Geoffrey <info@runningdeveloper.com>",
166
167
  "Hvam, Allan <ahp@delegate.dk>",
167
168
  "Jaakke, Robert <robert.jaakke@mavention.nl>",
169
+ "Jain, Ayush <urayushjain@gmail.com>",
168
170
  "Jain, Lovy <54174168+lovyjain@users.noreply.github.com>",
169
171
  "Junker Aaron <aaron.junker@outlook.com>",
170
172
  "Kailasam, Balamurugan <kshsbala@engineer.com>",
@@ -174,8 +176,11 @@
174
176
  "Kelkar, Vipul <vipul.kelkar@outlook.com>",
175
177
  "Kesavanarayanan, Sudharsan <10280385+sudharsank@users.noreply.github.com>",
176
178
  "Khalil, Bassem <bk@bassems-air.home>",
179
+ "Khan, Mohd Fahad <72310648+codevfahad@users.noreply.github.com>",
177
180
  "Kirkham, Don <donkirkham@live.com>",
178
181
  "Kornet, Michał <kornetmichal@gmail.com>",
182
+ "Kulkarni, Siddheya <siddheyakul@gmail.com>",
183
+ "Kumar, Malay <91375797+Malay-dev@users.noreply.github.com>",
179
184
  "Kumar, Shantha <34408892+ktskumar@users.noreply.github.com>",
180
185
  "Kurian, Cyril C <cyril.kurian2@gmail.com>",
181
186
  "Lakshminarayanan, Vedant <28388096+Vedu1996@users.noreply.github.com>",
@@ -193,6 +198,7 @@
193
198
  "Moon, Andrew <21320638+andrewjymoon@users.noreply.github.com>",
194
199
  "Moujahid, Abderahman <rags_place@hotmail.com>",
195
200
  "Mücklisch, Steve <steve.muecklisch@gmail.com>",
201
+ "Mundra, Sanket <sanket.mundra@harness.io>",
196
202
  "Nachan, Nanddeep <nanddeepnachan@gmail.com>",
197
203
  "Nachan, Smita <smita.nachan@gmail.com>",
198
204
  "Nadir, Daniaal <daniaal1030@gmail.com>",
@@ -205,6 +211,7 @@
205
211
  "Patel, Ashish <ashishp.nuku@gmail.com>",
206
212
  "Patil, Atharva <atharvapatil19202@gmail.com>",
207
213
  "Peck, Taaqif <taaqifpeck@gmail.com>",
214
+ "Piridi, Santhosh Teja <santhosh.piridi123@gmail.com>",
208
215
  "Plenevaux, Yannick <yannick.plenevaux@gmail.com>",
209
216
  "Powney, Mark <powney.mark@outlook.com>",
210
217
  "pramod74 <pramod.lumb@gmail.com>",
@@ -262,27 +269,27 @@
262
269
  "Zachariassen Laksafoss, Trygvi <trygvi.laksafoss@gmail.com>"
263
270
  ],
264
271
  "dependencies": {
265
- "@azure/msal-common": "^15.13.1",
266
- "@azure/msal-node": "^3.8.1",
267
- "@inquirer/confirm": "^5.1.20",
268
- "@inquirer/input": "^4.3.0",
269
- "@inquirer/select": "^4.4.1",
272
+ "@azure/msal-common": "^15.13.3",
273
+ "@azure/msal-node": "^3.8.4",
274
+ "@inquirer/confirm": "^5.1.21",
275
+ "@inquirer/input": "^4.3.1",
276
+ "@inquirer/select": "^4.4.2",
270
277
  "@xmldom/xmldom": "^0.9.8",
271
278
  "adaptive-expressions": "^4.23.3",
272
279
  "adaptivecards": "^3.0.5",
273
280
  "adaptivecards-templating": "^2.3.1",
274
281
  "adm-zip": "^0.5.16",
275
- "applicationinsights": "^3.12.0",
282
+ "applicationinsights": "^3.12.1",
276
283
  "axios": "^1.13.2",
277
284
  "chalk": "^5.6.2",
278
- "clipboardy": "^5.0.0",
285
+ "clipboardy": "^5.0.2",
279
286
  "configstore": "^7.1.0",
280
287
  "csv-parse": "^6.1.0",
281
288
  "csv-stringify": "^6.6.0",
282
289
  "easy-table": "^1.2.0",
283
290
  "jmespath": "^0.16.0",
284
291
  "json-to-ast": "^2.1.0",
285
- "node-forge": "^1.3.1",
292
+ "node-forge": "^1.3.3",
286
293
  "omelette": "^0.4.17",
287
294
  "open": "^10.2.0",
288
295
  "semver": "^7.7.3",
@@ -290,20 +297,20 @@
290
297
  "typescript": "^5.9.3",
291
298
  "update-notifier": "^7.3.1",
292
299
  "uuid": "^13.0.0",
293
- "yaml": "^2.8.1",
300
+ "yaml": "^2.8.2",
294
301
  "yargs-parser": "^22.0.0",
295
302
  "zod": "^3.25.76"
296
303
  },
297
304
  "devDependencies": {
298
305
  "@actions/core": "^1.11.1",
299
306
  "@microsoft/microsoft-graph-types": "^2.43.1",
300
- "@stylistic/eslint-plugin": "^5.5.0",
307
+ "@stylistic/eslint-plugin": "^5.6.1",
301
308
  "@types/adm-zip": "^0.5.7",
302
309
  "@types/jmespath": "^0.15.2",
303
310
  "@types/json-schema": "^7.0.15",
304
311
  "@types/json-to-ast": "^2.1.4",
305
312
  "@types/mocha": "^10.0.10",
306
- "@types/node": "^22.19.0",
313
+ "@types/node": "^22.19.3",
307
314
  "@types/node-forge": "^1.3.14",
308
315
  "@types/omelette": "^0.4.5",
309
316
  "@types/semver": "^7.7.1",
@@ -311,16 +318,16 @@
311
318
  "@types/update-notifier": "^6.0.8",
312
319
  "@types/uuid": "^10.0.0",
313
320
  "@types/yargs-parser": "^21.0.3",
314
- "@typescript-eslint/eslint-plugin": "^8.46.4",
321
+ "@typescript-eslint/eslint-plugin": "^8.50.0",
315
322
  "@typescript-eslint/parser": "^8.46.4",
316
323
  "c8": "^10.1.3",
317
- "eslint": "^9.39.1",
324
+ "eslint": "^9.39.2",
318
325
  "eslint-plugin-cli-microsoft365": "file:eslint-rules",
319
326
  "eslint-plugin-mocha": "^11.2.0",
320
327
  "mocha": "^11.7.5",
321
- "rimraf": "^6.1.0",
328
+ "rimraf": "^6.1.2",
322
329
  "sinon": "^21.0.0",
323
330
  "source-map-support": "^0.5.21",
324
331
  "tsc-watch": "^7.2.0"
325
332
  }
326
- }
333
+ }
@@ -1,45 +0,0 @@
1
- import { JsonRule } from "../../JsonRule.js";
2
- export class FN021007_PKG_scripts_deploy extends JsonRule {
3
- constructor(script) {
4
- super();
5
- this.script = script;
6
- }
7
- get id() {
8
- return 'FN021007';
9
- }
10
- get title() {
11
- return 'package.json scripts.deploy';
12
- }
13
- get description() {
14
- return 'Update package.json scripts.deploy property';
15
- }
16
- get resolution() {
17
- return `{
18
- "scripts": {
19
- "deploy": "${this.script}"
20
- }
21
- }`;
22
- }
23
- get resolutionType() {
24
- return 'json';
25
- }
26
- get severity() {
27
- return 'Required';
28
- }
29
- get file() {
30
- return './package.json';
31
- }
32
- visit(project, findings) {
33
- if (!project.packageJson) {
34
- return;
35
- }
36
- if (!project.packageJson.scripts ||
37
- typeof project.packageJson.scripts !== 'object' ||
38
- !project.packageJson.scripts.deploy ||
39
- project.packageJson.scripts.deploy !== this.script) {
40
- const node = this.getAstNodeFromFile(project.packageJson, 'scripts.deploy');
41
- this.addFindingWithPosition(findings, node);
42
- }
43
- }
44
- }
45
- //# sourceMappingURL=FN021007_PKG_scripts_deploy.js.map
@@ -1,45 +0,0 @@
1
- import { JsonRule } from "../../JsonRule.js";
2
- export class FN021009_PKG_scripts_build_watch extends JsonRule {
3
- constructor(script) {
4
- super();
5
- this.script = script;
6
- }
7
- get id() {
8
- return 'FN021009';
9
- }
10
- get title() {
11
- return 'package.json scripts.build-watch';
12
- }
13
- get description() {
14
- return 'Update package.json scripts.build-watch property';
15
- }
16
- get resolution() {
17
- return `{
18
- "scripts": {
19
- "build-watch": "${this.script}"
20
- }
21
- }`;
22
- }
23
- get resolutionType() {
24
- return 'json';
25
- }
26
- get severity() {
27
- return 'Required';
28
- }
29
- get file() {
30
- return './package.json';
31
- }
32
- visit(project, findings) {
33
- if (!project.packageJson) {
34
- return;
35
- }
36
- if (!project.packageJson.scripts ||
37
- typeof project.packageJson.scripts !== 'object' ||
38
- !project.packageJson.scripts['build-watch'] ||
39
- project.packageJson.scripts['build-watch'] !== this.script) {
40
- const node = this.getAstNodeFromFile(project.packageJson, 'scripts.build-watch');
41
- this.addFindingWithPosition(findings, node);
42
- }
43
- }
44
- }
45
- //# sourceMappingURL=FN021009_PKG_scripts_build_watch.js.map
@@ -1,45 +0,0 @@
1
- import { JsonRule } from "../../JsonRule.js";
2
- export class FN021010_PKG_scripts_package_solution extends JsonRule {
3
- constructor(script) {
4
- super();
5
- this.script = script;
6
- }
7
- get id() {
8
- return 'FN021010';
9
- }
10
- get title() {
11
- return 'package.json scripts.package-solution';
12
- }
13
- get description() {
14
- return 'Update package.json scripts.package-solution property';
15
- }
16
- get resolution() {
17
- return `{
18
- "scripts": {
19
- "package-solution": "${this.script}"
20
- }
21
- }`;
22
- }
23
- get resolutionType() {
24
- return 'json';
25
- }
26
- get severity() {
27
- return 'Required';
28
- }
29
- get file() {
30
- return './package.json';
31
- }
32
- visit(project, findings) {
33
- if (!project.packageJson) {
34
- return;
35
- }
36
- if (!project.packageJson.scripts ||
37
- typeof project.packageJson.scripts !== 'object' ||
38
- !project.packageJson.scripts['package-solution'] ||
39
- project.packageJson.scripts['package-solution'] !== this.script) {
40
- const node = this.getAstNodeFromFile(project.packageJson, 'scripts.package-solution');
41
- this.addFindingWithPosition(findings, node);
42
- }
43
- }
44
- }
45
- //# sourceMappingURL=FN021010_PKG_scripts_package_solution.js.map
@@ -1,45 +0,0 @@
1
- import { JsonRule } from "../../JsonRule.js";
2
- export class FN021011_PKG_scripts_deploy_azure_storage extends JsonRule {
3
- constructor(script) {
4
- super();
5
- this.script = script;
6
- }
7
- get id() {
8
- return 'FN021011';
9
- }
10
- get title() {
11
- return 'package.json scripts.deploy-azure-storage';
12
- }
13
- get description() {
14
- return 'Update package.json scripts.deploy-azure-storage property';
15
- }
16
- get resolution() {
17
- return `{
18
- "scripts": {
19
- "deploy-azure-storage": "${this.script}"
20
- }
21
- }`;
22
- }
23
- get resolutionType() {
24
- return 'json';
25
- }
26
- get severity() {
27
- return 'Required';
28
- }
29
- get file() {
30
- return './package.json';
31
- }
32
- visit(project, findings) {
33
- if (!project.packageJson) {
34
- return;
35
- }
36
- if (!project.packageJson.scripts ||
37
- typeof project.packageJson.scripts !== 'object' ||
38
- !project.packageJson.scripts['deploy-azure-storage'] ||
39
- project.packageJson.scripts['deploy-azure-storage'] !== this.script) {
40
- const node = this.getAstNodeFromFile(project.packageJson, 'scripts.deploy-azure-storage');
41
- this.addFindingWithPosition(findings, node);
42
- }
43
- }
44
- }
45
- //# sourceMappingURL=FN021011_PKG_scripts_deploy_azure_storage.js.map
@@ -1,45 +0,0 @@
1
- import { JsonRule } from "../../JsonRule.js";
2
- export class FN021014_PKG_scripts_test_only extends JsonRule {
3
- constructor(script) {
4
- super();
5
- this.script = script;
6
- }
7
- get id() {
8
- return 'FN021014';
9
- }
10
- get title() {
11
- return 'package.json scripts.test-only';
12
- }
13
- get description() {
14
- return 'Add package.json scripts.test-only property';
15
- }
16
- get resolution() {
17
- return `{
18
- "scripts": {
19
- "test-only": "${this.script}"
20
- }
21
- }`;
22
- }
23
- get resolutionType() {
24
- return 'json';
25
- }
26
- get severity() {
27
- return 'Required';
28
- }
29
- get file() {
30
- return './package.json';
31
- }
32
- visit(project, findings) {
33
- if (!project.packageJson) {
34
- return;
35
- }
36
- if (!project.packageJson.scripts ||
37
- typeof project.packageJson.scripts !== 'object' ||
38
- !project.packageJson.scripts['test-only'] ||
39
- project.packageJson.scripts['test-only'] !== this.script) {
40
- const node = this.getAstNodeFromFile(project.packageJson, 'scripts.test-only');
41
- this.addFindingWithPosition(findings, node);
42
- }
43
- }
44
- }
45
- //# sourceMappingURL=FN021014_PKG_scripts_test_only.js.map
@@ -1,45 +0,0 @@
1
- import { JsonRule } from "../../JsonRule.js";
2
- export class FN021015_PKG_scripts_trust_dev_cert extends JsonRule {
3
- constructor(script) {
4
- super();
5
- this.script = script;
6
- }
7
- get id() {
8
- return 'FN021015';
9
- }
10
- get title() {
11
- return 'package.json scripts.trust-dev-cert';
12
- }
13
- get description() {
14
- return 'Add package.json scripts.trust-dev-cert property';
15
- }
16
- get resolution() {
17
- return `{
18
- "scripts": {
19
- "trust-dev-cert": "${this.script}"
20
- }
21
- }`;
22
- }
23
- get resolutionType() {
24
- return 'json';
25
- }
26
- get severity() {
27
- return 'Required';
28
- }
29
- get file() {
30
- return './package.json';
31
- }
32
- visit(project, findings) {
33
- if (!project.packageJson) {
34
- return;
35
- }
36
- if (!project.packageJson.scripts ||
37
- typeof project.packageJson.scripts !== 'object' ||
38
- !project.packageJson.scripts['trust-dev-cert'] ||
39
- project.packageJson.scripts['trust-dev-cert'] !== this.script) {
40
- const node = this.getAstNodeFromFile(project.packageJson, 'scripts.trust-dev-cert');
41
- this.addFindingWithPosition(findings, node);
42
- }
43
- }
44
- }
45
- //# sourceMappingURL=FN021015_PKG_scripts_trust_dev_cert.js.map
@@ -1,45 +0,0 @@
1
- import { JsonRule } from "../../JsonRule.js";
2
- export class FN021016_PKG_scripts_untrust_dev_cert extends JsonRule {
3
- constructor(script) {
4
- super();
5
- this.script = script;
6
- }
7
- get id() {
8
- return 'FN021016';
9
- }
10
- get title() {
11
- return 'package.json scripts.untrust-dev-cert';
12
- }
13
- get description() {
14
- return 'Add package.json scripts.untrust-dev-cert property';
15
- }
16
- get resolution() {
17
- return `{
18
- "scripts": {
19
- "untrust-dev-cert": "${this.script}"
20
- }
21
- }`;
22
- }
23
- get resolutionType() {
24
- return 'json';
25
- }
26
- get severity() {
27
- return 'Required';
28
- }
29
- get file() {
30
- return './package.json';
31
- }
32
- visit(project, findings) {
33
- if (!project.packageJson) {
34
- return;
35
- }
36
- if (!project.packageJson.scripts ||
37
- typeof project.packageJson.scripts !== 'object' ||
38
- !project.packageJson.scripts['untrust-dev-cert'] ||
39
- project.packageJson.scripts['untrust-dev-cert'] !== this.script) {
40
- const node = this.getAstNodeFromFile(project.packageJson, 'scripts.untrust-dev-cert');
41
- this.addFindingWithPosition(findings, node);
42
- }
43
- }
44
- }
45
- //# sourceMappingURL=FN021016_PKG_scripts_untrust_dev_cert.js.map