@pnp/cli-microsoft365-spfx-toolkit 1.6.0 → 1.7.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.
Files changed (51) hide show
  1. package/dist/autocomplete.js +1 -1
  2. package/dist/chili/index.js +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.0.js +23 -0
  5. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.1.js +23 -0
  6. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002022_DEVDEP_typescript.js +14 -0
  7. package/dist/m365/spfx/commands/project/project-doctor.js +3 -1
  8. package/dist/m365/spfx/commands/project/project-model/SassJson.js +3 -0
  9. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002001_DEVDEP_microsoft_sp_build_web.js +2 -2
  10. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002004_DEVDEP_gulp.js +2 -2
  11. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002007_DEVDEP_ajv.js +2 -2
  12. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3.js +2 -2
  13. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig.js +14 -0
  14. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002031_DEVDEP_rushstack_heft.js +14 -0
  15. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002032_DEVDEP_typescript_eslint_parser.js +14 -0
  16. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002033_DEVDEP_css_loader.js +14 -0
  17. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins.js +14 -0
  18. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002035_DEVDEP_types_heft_jest.js +14 -0
  19. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010011_YORC_useGulp.js +45 -0
  20. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014003_CODE_launch.js +7 -44
  21. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015010_FILE_gulpfile_js.js +14 -0
  22. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015011_FILE_tsconfig_json.js +14 -0
  23. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015014_FILE_config_rig_json.js +14 -0
  24. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015015_FILE_config_typescript_json.js +14 -0
  25. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021004_PKG_scripts_build.js +49 -0
  26. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021005_PKG_scripts_test.js +59 -0
  27. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021006_PKG_scripts_clean.js +49 -0
  28. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021007_PKG_scripts_start.js +49 -0
  29. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021008_PKG_scripts_eject_webpack.js +49 -0
  30. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021009_PKG_overrides_rushstack_heft.js +49 -0
  31. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023003_GITIGNORE_libdts.js +40 -0
  32. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023004_GITIGNORE_libcommonjs.js +40 -0
  33. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023005_GITIGNORE_libesm.js +40 -0
  34. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023006_GITIGNORE_jestoutput.js +40 -0
  35. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN025002_ESLINTRCJS_rushstack_import_requires_chunk_name.js +61 -0
  36. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN025003_ESLINTRCJS_rushstack_pair_react_dom_render_unmount.js +61 -0
  37. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN025004_ESLINTRCJS_microsoft_spfx_import_requires_chunk_name.js +54 -0
  38. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN025005_ESLINTRCJS_microsoft_spfx_pair_react_dom_render_unmount.js +54 -0
  39. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN026001_CFG_SASS_schema.js +44 -0
  40. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN026002_CFG_SASS_extends.js +44 -0
  41. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.0.js +168 -0
  42. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.1.js +57 -0
  43. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.4.js +42 -1
  44. package/dist/m365/spfx/commands/project/project-upgrade.js +3 -1
  45. package/dist/m365/spfx/commands/spfx-doctor.js +58 -1
  46. package/dist/m365/spo/commands/page/page-get.js +21 -6
  47. package/dist/m365/spo/commands/page/page-remove.js +34 -14
  48. package/dist/utils/stringUtil.js +7 -0
  49. package/npm-shrinkwrap.json +2 -2
  50. package/package.json +1 -1
  51. package/.eslintcache +0 -1
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001001_DEP_microsoft_sp_core_library_1 = require("./rules/FN001001_DEP_microsoft_sp_core_library");
4
+ const FN001002_DEP_microsoft_sp_lodash_subset_1 = require("./rules/FN001002_DEP_microsoft_sp_lodash_subset");
5
+ const FN001003_DEP_microsoft_sp_office_ui_fabric_core_1 = require("./rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core");
6
+ const FN001004_DEP_microsoft_sp_webpart_base_1 = require("./rules/FN001004_DEP_microsoft_sp_webpart_base");
7
+ const FN001011_DEP_microsoft_sp_dialog_1 = require("./rules/FN001011_DEP_microsoft_sp_dialog");
8
+ const FN001012_DEP_microsoft_sp_application_base_1 = require("./rules/FN001012_DEP_microsoft_sp_application_base");
9
+ const FN001013_DEP_microsoft_decorators_1 = require("./rules/FN001013_DEP_microsoft_decorators");
10
+ const FN001014_DEP_microsoft_sp_listview_extensibility_1 = require("./rules/FN001014_DEP_microsoft_sp_listview_extensibility");
11
+ const FN001021_DEP_microsoft_sp_property_pane_1 = require("./rules/FN001021_DEP_microsoft_sp_property_pane");
12
+ const FN001023_DEP_microsoft_sp_component_base_1 = require("./rules/FN001023_DEP_microsoft_sp_component_base");
13
+ const FN001024_DEP_microsoft_sp_diagnostics_1 = require("./rules/FN001024_DEP_microsoft_sp_diagnostics");
14
+ const FN001025_DEP_microsoft_sp_dynamic_data_1 = require("./rules/FN001025_DEP_microsoft_sp_dynamic_data");
15
+ const FN001026_DEP_microsoft_sp_extension_base_1 = require("./rules/FN001026_DEP_microsoft_sp_extension_base");
16
+ const FN001027_DEP_microsoft_sp_http_1 = require("./rules/FN001027_DEP_microsoft_sp_http");
17
+ const FN001028_DEP_microsoft_sp_list_subscription_1 = require("./rules/FN001028_DEP_microsoft_sp_list_subscription");
18
+ const FN001029_DEP_microsoft_sp_loader_1 = require("./rules/FN001029_DEP_microsoft_sp_loader");
19
+ const FN001030_DEP_microsoft_sp_module_interfaces_1 = require("./rules/FN001030_DEP_microsoft_sp_module_interfaces");
20
+ const FN001031_DEP_microsoft_sp_odata_types_1 = require("./rules/FN001031_DEP_microsoft_sp_odata_types");
21
+ const FN001032_DEP_microsoft_sp_page_context_1 = require("./rules/FN001032_DEP_microsoft_sp_page_context");
22
+ const FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1 = require("./rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base");
23
+ const FN002001_DEVDEP_microsoft_sp_build_web_1 = require("./rules/FN002001_DEVDEP_microsoft_sp_build_web");
24
+ const FN002002_DEVDEP_microsoft_sp_module_interfaces_1 = require("./rules/FN002002_DEVDEP_microsoft_sp_module_interfaces");
25
+ const FN002004_DEVDEP_gulp_1 = require("./rules/FN002004_DEVDEP_gulp");
26
+ const FN002007_DEVDEP_ajv_1 = require("./rules/FN002007_DEVDEP_ajv");
27
+ const FN002021_DEVDEP_rushstack_eslint_config_1 = require("./rules/FN002021_DEVDEP_rushstack_eslint_config");
28
+ const FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1 = require("./rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx");
29
+ const FN002023_DEVDEP_microsoft_eslint_config_spfx_1 = require("./rules/FN002023_DEVDEP_microsoft_eslint_config_spfx");
30
+ const FN002026_DEVDEP_typescript_1 = require("./rules/FN002026_DEVDEP_typescript");
31
+ const FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3_1 = require("./rules/FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3");
32
+ const FN002030_DEVDEP_microsoft_spfx_web_build_rig_1 = require("./rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig");
33
+ const FN002031_DEVDEP_rushstack_heft_1 = require("./rules/FN002031_DEVDEP_rushstack_heft");
34
+ const FN002032_DEVDEP_typescript_eslint_parser_1 = require("./rules/FN002032_DEVDEP_typescript_eslint_parser");
35
+ const FN002033_DEVDEP_css_loader_1 = require("./rules/FN002033_DEVDEP_css_loader");
36
+ const FN002034_DEVDEP_microsoft_spfx_heft_plugins_1 = require("./rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins");
37
+ const FN002035_DEVDEP_types_heft_jest_1 = require("./rules/FN002035_DEVDEP_types_heft_jest");
38
+ const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
39
+ const FN010011_YORC_useGulp_1 = require("./rules/FN010011_YORC_useGulp");
40
+ const FN014003_CODE_launch_1 = require("./rules/FN014003_CODE_launch");
41
+ const FN015005_FILE_src_index_ts_1 = require("./rules/FN015005_FILE_src_index_ts");
42
+ const FN015010_FILE_gulpfile_js_1 = require("./rules/FN015010_FILE_gulpfile_js");
43
+ const FN015011_FILE_tsconfig_json_1 = require("./rules/FN015011_FILE_tsconfig_json");
44
+ const FN015014_FILE_config_rig_json_1 = require("./rules/FN015014_FILE_config_rig_json");
45
+ const FN015015_FILE_config_typescript_json_1 = require("./rules/FN015015_FILE_config_typescript_json");
46
+ const FN020001_RES_types_react_1 = require("./rules/FN020001_RES_types_react");
47
+ const FN021001_PKG_main_1 = require("./rules/FN021001_PKG_main");
48
+ const FN021004_PKG_scripts_build_1 = require("./rules/FN021004_PKG_scripts_build");
49
+ const FN021005_PKG_scripts_test_1 = require("./rules/FN021005_PKG_scripts_test");
50
+ const FN021006_PKG_scripts_clean_1 = require("./rules/FN021006_PKG_scripts_clean");
51
+ const FN021007_PKG_scripts_start_1 = require("./rules/FN021007_PKG_scripts_start");
52
+ const FN021008_PKG_scripts_eject_webpack_1 = require("./rules/FN021008_PKG_scripts_eject_webpack");
53
+ const FN021009_PKG_overrides_rushstack_heft_1 = require("./rules/FN021009_PKG_overrides_rushstack_heft");
54
+ const FN023003_GITIGNORE_libdts_1 = require("./rules/FN023003_GITIGNORE_libdts");
55
+ const FN023004_GITIGNORE_libcommonjs_1 = require("./rules/FN023004_GITIGNORE_libcommonjs");
56
+ const FN023005_GITIGNORE_libesm_1 = require("./rules/FN023005_GITIGNORE_libesm");
57
+ const FN023006_GITIGNORE_jestoutput_1 = require("./rules/FN023006_GITIGNORE_jestoutput");
58
+ const FN025002_ESLINTRCJS_rushstack_import_requires_chunk_name_1 = require("./rules/FN025002_ESLINTRCJS_rushstack_import_requires_chunk_name");
59
+ const FN025003_ESLINTRCJS_rushstack_pair_react_dom_render_unmount_1 = require("./rules/FN025003_ESLINTRCJS_rushstack_pair_react_dom_render_unmount");
60
+ const FN025004_ESLINTRCJS_microsoft_spfx_import_requires_chunk_name_1 = require("./rules/FN025004_ESLINTRCJS_microsoft_spfx_import_requires_chunk_name");
61
+ const FN025005_ESLINTRCJS_microsoft_spfx_pair_react_dom_render_unmount_1 = require("./rules/FN025005_ESLINTRCJS_microsoft_spfx_pair_react_dom_render_unmount");
62
+ const FN026001_CFG_SASS_schema_1 = require("./rules/FN026001_CFG_SASS_schema");
63
+ const FN026002_CFG_SASS_extends_1 = require("./rules/FN026002_CFG_SASS_extends");
64
+ module.exports = [
65
+ new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.22.0'),
66
+ new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.22.0'),
67
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.22.0'),
68
+ new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.22.0'),
69
+ new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.22.0'),
70
+ new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.22.0'),
71
+ new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.22.0'),
72
+ new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.22.0'),
73
+ new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.22.0'),
74
+ new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.22.0'),
75
+ new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.22.0'),
76
+ new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.22.0'),
77
+ new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.22.0'),
78
+ new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.22.0'),
79
+ new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.22.0'),
80
+ new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.22.0'),
81
+ new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.22.0'),
82
+ new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.22.0'),
83
+ new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.22.0'),
84
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.22.0'),
85
+ new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.22.0', false),
86
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.22.0'),
87
+ new FN002004_DEVDEP_gulp_1.FN002004_DEVDEP_gulp('4.0.2', false),
88
+ new FN002007_DEVDEP_ajv_1.FN002007_DEVDEP_ajv('6.12.6', false),
89
+ new FN002021_DEVDEP_rushstack_eslint_config_1.FN002021_DEVDEP_rushstack_eslint_config('4.5.2'),
90
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.22.0'),
91
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.22.0'),
92
+ new FN002026_DEVDEP_typescript_1.FN002026_DEVDEP_typescript('~5.8.0'),
93
+ new FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3_1.FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3('0.1.0', false),
94
+ new FN002030_DEVDEP_microsoft_spfx_web_build_rig_1.FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.22.0'),
95
+ new FN002031_DEVDEP_rushstack_heft_1.FN002031_DEVDEP_rushstack_heft('1.1.2'),
96
+ new FN002032_DEVDEP_typescript_eslint_parser_1.FN002032_DEVDEP_typescript_eslint_parser('8.46.2'),
97
+ new FN002033_DEVDEP_css_loader_1.FN002033_DEVDEP_css_loader('7.1.2'),
98
+ new FN002034_DEVDEP_microsoft_spfx_heft_plugins_1.FN002034_DEVDEP_microsoft_spfx_heft_plugins('1.22.0'),
99
+ new FN002035_DEVDEP_types_heft_jest_1.FN002035_DEVDEP_types_heft_jest('1.0.2'),
100
+ new FN010001_YORC_version_1.FN010001_YORC_version('1.22.0'),
101
+ new FN010011_YORC_useGulp_1.FN010011_YORC_useGulp(false),
102
+ new FN014003_CODE_launch_1.FN014003_CODE_launch(`{
103
+ "version": "0.2.0",
104
+ "configurations": [
105
+ {
106
+ "name": "Hosted workbench",
107
+ "type": "msedge",
108
+ "request": "launch",
109
+ "url": "https://{tenantDomain}/_layouts/workbench.aspx",
110
+ "webRoot": "$\{workspaceRoot}",
111
+ "sourceMaps": true,
112
+ "sourceMapPathOverrides": {
113
+ "webpack:///.././src/*": "$\{webRoot}/src/*",
114
+ "webpack:///../../../src/*": "$\{webRoot}/src/*",
115
+ "webpack:///../../../../src/*": "$\{webRoot}/src/*",
116
+ "webpack:///../../../../../src/*": "$\{webRoot}/src/*"
117
+ },
118
+ "runtimeArgs": [
119
+ "--remote-debugging-port=9222",
120
+ "-incognito"
121
+ ]
122
+ }
123
+ ]
124
+ }`),
125
+ new FN015005_FILE_src_index_ts_1.FN015005_FILE_src_index_ts(false),
126
+ new FN015010_FILE_gulpfile_js_1.FN015010_FILE_gulpfile_js(false),
127
+ new FN015011_FILE_tsconfig_json_1.FN015011_FILE_tsconfig_json(true, `{
128
+ "extends": "./node_modules/@microsoft/spfx-web-build-rig/profiles/default/tsconfig-base.json"
129
+ }
130
+ `),
131
+ new FN015014_FILE_config_rig_json_1.FN015014_FILE_config_rig_json(true, `{
132
+ // The "rig.json" file directs tools to look for their config files in an external package.
133
+ // Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
134
+ "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
135
+
136
+ "rigPackageName": "@microsoft/spfx-web-build-rig"
137
+ }
138
+ `),
139
+ new FN015015_FILE_config_typescript_json_1.FN015015_FILE_config_typescript_json(true, `{
140
+ "extends": "@microsoft/spfx-web-build-rig/profiles/default/config/typescript.json",
141
+
142
+ "staticAssetsToCopy": {
143
+ "fileExtensions": [".resx", ".jpg", ".png", ".woff", ".eot", ".ttf", ".svg", ".gif"],
144
+
145
+ "includeGlobs": ["webparts/*/loc/*.js"]
146
+ }
147
+ }
148
+ `),
149
+ new FN020001_RES_types_react_1.FN020001_RES_types_react('17.0.45'),
150
+ new FN021001_PKG_main_1.FN021001_PKG_main(false),
151
+ new FN021004_PKG_scripts_build_1.FN021004_PKG_scripts_build('heft test --clean --production && heft package-solution --production'),
152
+ new FN021005_PKG_scripts_test_1.FN021005_PKG_scripts_test('gulp test', false),
153
+ new FN021006_PKG_scripts_clean_1.FN021006_PKG_scripts_clean('heft clean'),
154
+ new FN021007_PKG_scripts_start_1.FN021007_PKG_scripts_start('heft start --clean'),
155
+ new FN021008_PKG_scripts_eject_webpack_1.FN021008_PKG_scripts_eject_webpack('heft eject-webpack'),
156
+ new FN021009_PKG_overrides_rushstack_heft_1.FN021009_PKG_overrides_rushstack_heft('1.1.2'),
157
+ new FN023003_GITIGNORE_libdts_1.FN023003_GITIGNORE_libdts(),
158
+ new FN023004_GITIGNORE_libcommonjs_1.FN023004_GITIGNORE_libcommonjs(),
159
+ new FN023005_GITIGNORE_libesm_1.FN023005_GITIGNORE_libesm(),
160
+ new FN023006_GITIGNORE_jestoutput_1.FN023006_GITIGNORE_jestoutput(),
161
+ new FN025002_ESLINTRCJS_rushstack_import_requires_chunk_name_1.FN025002_ESLINTRCJS_rushstack_import_requires_chunk_name(),
162
+ new FN025003_ESLINTRCJS_rushstack_pair_react_dom_render_unmount_1.FN025003_ESLINTRCJS_rushstack_pair_react_dom_render_unmount(),
163
+ new FN025004_ESLINTRCJS_microsoft_spfx_import_requires_chunk_name_1.FN025004_ESLINTRCJS_microsoft_spfx_import_requires_chunk_name(),
164
+ new FN025005_ESLINTRCJS_microsoft_spfx_pair_react_dom_render_unmount_1.FN025005_ESLINTRCJS_microsoft_spfx_pair_react_dom_render_unmount(),
165
+ new FN026001_CFG_SASS_schema_1.FN026001_CFG_SASS_schema('https://developer.microsoft.com/json-schemas/heft/v0/heft-sass-plugin.schema.json'),
166
+ new FN026002_CFG_SASS_extends_1.FN026002_CFG_SASS_extends('@microsoft/spfx-web-build-rig/profiles/default/config/sass.json')
167
+ ];
168
+ //# sourceMappingURL=upgrade-1.22.0.js.map
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001001_DEP_microsoft_sp_core_library_js_1 = require("./rules/FN001001_DEP_microsoft_sp_core_library.js");
4
+ const FN001002_DEP_microsoft_sp_lodash_subset_js_1 = require("./rules/FN001002_DEP_microsoft_sp_lodash_subset.js");
5
+ const FN001003_DEP_microsoft_sp_office_ui_fabric_core_js_1 = require("./rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core.js");
6
+ const FN001004_DEP_microsoft_sp_webpart_base_js_1 = require("./rules/FN001004_DEP_microsoft_sp_webpart_base.js");
7
+ const FN001011_DEP_microsoft_sp_dialog_js_1 = require("./rules/FN001011_DEP_microsoft_sp_dialog.js");
8
+ const FN001012_DEP_microsoft_sp_application_base_js_1 = require("./rules/FN001012_DEP_microsoft_sp_application_base.js");
9
+ const FN001013_DEP_microsoft_decorators_js_1 = require("./rules/FN001013_DEP_microsoft_decorators.js");
10
+ const FN001014_DEP_microsoft_sp_listview_extensibility_js_1 = require("./rules/FN001014_DEP_microsoft_sp_listview_extensibility.js");
11
+ const FN001021_DEP_microsoft_sp_property_pane_js_1 = require("./rules/FN001021_DEP_microsoft_sp_property_pane.js");
12
+ const FN001023_DEP_microsoft_sp_component_base_js_1 = require("./rules/FN001023_DEP_microsoft_sp_component_base.js");
13
+ const FN001024_DEP_microsoft_sp_diagnostics_js_1 = require("./rules/FN001024_DEP_microsoft_sp_diagnostics.js");
14
+ const FN001025_DEP_microsoft_sp_dynamic_data_js_1 = require("./rules/FN001025_DEP_microsoft_sp_dynamic_data.js");
15
+ const FN001026_DEP_microsoft_sp_extension_base_js_1 = require("./rules/FN001026_DEP_microsoft_sp_extension_base.js");
16
+ const FN001027_DEP_microsoft_sp_http_js_1 = require("./rules/FN001027_DEP_microsoft_sp_http.js");
17
+ const FN001028_DEP_microsoft_sp_list_subscription_js_1 = require("./rules/FN001028_DEP_microsoft_sp_list_subscription.js");
18
+ const FN001029_DEP_microsoft_sp_loader_js_1 = require("./rules/FN001029_DEP_microsoft_sp_loader.js");
19
+ const FN001030_DEP_microsoft_sp_module_interfaces_js_1 = require("./rules/FN001030_DEP_microsoft_sp_module_interfaces.js");
20
+ const FN001031_DEP_microsoft_sp_odata_types_js_1 = require("./rules/FN001031_DEP_microsoft_sp_odata_types.js");
21
+ const FN001032_DEP_microsoft_sp_page_context_js_1 = require("./rules/FN001032_DEP_microsoft_sp_page_context.js");
22
+ const FN001034_DEP_microsoft_sp_adaptive_card_extension_base_js_1 = require("./rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js");
23
+ const FN002002_DEVDEP_microsoft_sp_module_interfaces_js_1 = require("./rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js");
24
+ const FN002022_DEVDEP_microsoft_eslint_plugin_spfx_js_1 = require("./rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js");
25
+ const FN002023_DEVDEP_microsoft_eslint_config_spfx_js_1 = require("./rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js");
26
+ const FN002030_DEVDEP_microsoft_spfx_web_build_rig_js_1 = require("./rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig.js");
27
+ const FN002034_DEVDEP_microsoft_spfx_heft_plugins_js_1 = require("./rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins.js");
28
+ const FN010001_YORC_version_js_1 = require("./rules/FN010001_YORC_version.js");
29
+ module.exports = [
30
+ new FN001001_DEP_microsoft_sp_core_library_js_1.FN001001_DEP_microsoft_sp_core_library('1.22.1'),
31
+ new FN001002_DEP_microsoft_sp_lodash_subset_js_1.FN001002_DEP_microsoft_sp_lodash_subset('1.22.1'),
32
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core_js_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.22.1'),
33
+ new FN001004_DEP_microsoft_sp_webpart_base_js_1.FN001004_DEP_microsoft_sp_webpart_base('1.22.1'),
34
+ new FN001011_DEP_microsoft_sp_dialog_js_1.FN001011_DEP_microsoft_sp_dialog('1.22.1'),
35
+ new FN001012_DEP_microsoft_sp_application_base_js_1.FN001012_DEP_microsoft_sp_application_base('1.22.1'),
36
+ new FN001014_DEP_microsoft_sp_listview_extensibility_js_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.22.1'),
37
+ new FN001021_DEP_microsoft_sp_property_pane_js_1.FN001021_DEP_microsoft_sp_property_pane('1.22.1'),
38
+ new FN001023_DEP_microsoft_sp_component_base_js_1.FN001023_DEP_microsoft_sp_component_base('1.22.1'),
39
+ new FN001024_DEP_microsoft_sp_diagnostics_js_1.FN001024_DEP_microsoft_sp_diagnostics('1.22.1'),
40
+ new FN001025_DEP_microsoft_sp_dynamic_data_js_1.FN001025_DEP_microsoft_sp_dynamic_data('1.22.1'),
41
+ new FN001026_DEP_microsoft_sp_extension_base_js_1.FN001026_DEP_microsoft_sp_extension_base('1.22.1'),
42
+ new FN001027_DEP_microsoft_sp_http_js_1.FN001027_DEP_microsoft_sp_http('1.22.1'),
43
+ new FN001028_DEP_microsoft_sp_list_subscription_js_1.FN001028_DEP_microsoft_sp_list_subscription('1.22.1'),
44
+ new FN001029_DEP_microsoft_sp_loader_js_1.FN001029_DEP_microsoft_sp_loader('1.22.1'),
45
+ new FN001030_DEP_microsoft_sp_module_interfaces_js_1.FN001030_DEP_microsoft_sp_module_interfaces('1.22.1'),
46
+ new FN001031_DEP_microsoft_sp_odata_types_js_1.FN001031_DEP_microsoft_sp_odata_types('1.22.1'),
47
+ new FN001032_DEP_microsoft_sp_page_context_js_1.FN001032_DEP_microsoft_sp_page_context('1.22.1'),
48
+ new FN001013_DEP_microsoft_decorators_js_1.FN001013_DEP_microsoft_decorators('1.22.1'),
49
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_js_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.22.1'),
50
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces_js_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.22.1'),
51
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_js_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.22.1'),
52
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx_js_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.22.1'),
53
+ new FN002030_DEVDEP_microsoft_spfx_web_build_rig_js_1.FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.22.1'),
54
+ new FN002034_DEVDEP_microsoft_spfx_heft_plugins_js_1.FN002034_DEVDEP_microsoft_spfx_heft_plugins('1.22.1'),
55
+ new FN010001_YORC_version_js_1.FN010001_YORC_version('1.22.1')
56
+ ];
57
+ //# sourceMappingURL=upgrade-1.22.1.js.map
@@ -44,6 +44,47 @@ module.exports = [
44
44
  new FN002007_DEVDEP_ajv_1.FN002007_DEVDEP_ajv('5.2.2'),
45
45
  new FN010001_YORC_version_1.FN010001_YORC_version('1.3.4'),
46
46
  new FN014002_CODE_extensions_1.FN014002_CODE_extensions(),
47
- new FN014003_CODE_launch_1.FN014003_CODE_launch()
47
+ new FN014003_CODE_launch_1.FN014003_CODE_launch(`{
48
+ /**
49
+ Install Chrome Debugger Extension for Visual Studio Code
50
+ to debug your components with the Chrome browser:
51
+ https://aka.ms/spfx-debugger-extensions
52
+ */
53
+ "version": "0.2.0",
54
+ "configurations": [{
55
+ "name": "Local workbench",
56
+ "type": "chrome",
57
+ "request": "launch",
58
+ "url": "https://localhost:4321/temp/workbench.html",
59
+ "webRoot": "\${workspaceRoot}",
60
+ "sourceMaps": true,
61
+ "sourceMapPathOverrides": {
62
+ "webpack:///../../../src/*": "\${webRoot}/src/*",
63
+ "webpack:///../../../../src/*": "\${webRoot}/src/*",
64
+ "webpack:///../../../../../src/*": "\${webRoot}/src/*"
65
+ },
66
+ "runtimeArgs": [
67
+ "--remote-debugging-port=9222"
68
+ ]
69
+ },
70
+ {
71
+ "name": "Hosted workbench",
72
+ "type": "chrome",
73
+ "request": "launch",
74
+ "url": "https://enter-your-SharePoint-site/_layouts/workbench.aspx",
75
+ "webRoot": "\${workspaceRoot}",
76
+ "sourceMaps": true,
77
+ "sourceMapPathOverrides": {
78
+ "webpack:///../../../src/*": "\${webRoot}/src/*",
79
+ "webpack:///../../../../src/*": "\${webRoot}/src/*",
80
+ "webpack:///../../../../../src/*": "\${webRoot}/src/*"
81
+ },
82
+ "runtimeArgs": [
83
+ "--remote-debugging-port=9222",
84
+ "-incognito"
85
+ ]
86
+ }
87
+ ]
88
+ }`)
48
89
  ];
49
90
  //# sourceMappingURL=upgrade-1.3.4.js.map
@@ -86,7 +86,9 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
86
86
  '1.19.0',
87
87
  '1.20.0',
88
88
  '1.21.0',
89
- '1.21.1'
89
+ '1.21.1',
90
+ '1.22.0',
91
+ '1.22.1'
90
92
  ];
91
93
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
92
94
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
@@ -631,6 +631,36 @@ class SpfxDoctorCommand extends base_project_command_1.BaseProjectCommand {
631
631
  range: '^4 || ^5',
632
632
  fix: 'npm i -g yo@5'
633
633
  }
634
+ },
635
+ '1.22.0': {
636
+ heft: {
637
+ range: '^1',
638
+ fix: 'npm i -g @rushstack/heft@1'
639
+ },
640
+ node: {
641
+ range: '>=22.14.0 < 23.0.0',
642
+ fix: 'Install Node.js >=22.14.0 < 23.0.0'
643
+ },
644
+ sp: SharePointVersion.SPO,
645
+ yo: {
646
+ range: '^4 || ^5 || ^6',
647
+ fix: 'npm i -g yo@6'
648
+ }
649
+ },
650
+ '1.22.1': {
651
+ heft: {
652
+ range: '^1',
653
+ fix: 'npm i -g @rushstack/heft@1'
654
+ },
655
+ node: {
656
+ range: '>=22.14.0 < 23.0.0',
657
+ fix: 'Install Node.js >=22.14.0 < 23.0.0'
658
+ },
659
+ sp: SharePointVersion.SPO,
660
+ yo: {
661
+ range: '^4 || ^5 || ^6',
662
+ fix: 'npm i -g yo@6'
663
+ }
634
664
  }
635
665
  };
636
666
  this.output = '';
@@ -704,6 +734,7 @@ class SpfxDoctorCommand extends base_project_command_1.BaseProjectCommand {
704
734
  yield this.checkYo(prerequisites);
705
735
  yield this.checkGulp();
706
736
  yield this.checkGulpCli(prerequisites);
737
+ yield this.checkHeft(prerequisites);
707
738
  yield this.checkTypeScript();
708
739
  if (this.resultsObject.some(y => y.fix !== undefined)) {
709
740
  yield this.logMessage('Recommended fixes:');
@@ -826,9 +857,13 @@ class SpfxDoctorCommand extends base_project_command_1.BaseProjectCommand {
826
857
  }
827
858
  checkGulpCli(prerequisites) {
828
859
  return __awaiter(this, void 0, void 0, function* () {
860
+ if (!prerequisites.gulpCli) {
861
+ // gulp-cli is not required for this version of SPFx
862
+ return;
863
+ }
829
864
  const gulpCliVersion = yield this.getPackageVersion('gulp-cli', PackageSearchMode.GlobalOnly, HandlePromise.Continue);
830
865
  if (gulpCliVersion) {
831
- this.checkStatus('gulp-cli', gulpCliVersion, prerequisites.gulpCli);
866
+ yield this.checkStatus('gulp-cli', gulpCliVersion, prerequisites.gulpCli);
832
867
  }
833
868
  else {
834
869
  const message = 'gulp-cli not found';
@@ -842,6 +877,28 @@ class SpfxDoctorCommand extends base_project_command_1.BaseProjectCommand {
842
877
  }
843
878
  });
844
879
  }
880
+ checkHeft(prerequisites) {
881
+ return __awaiter(this, void 0, void 0, function* () {
882
+ if (!prerequisites.heft) {
883
+ // heft is not required for this version of SPFx
884
+ return;
885
+ }
886
+ const heftVersion = yield this.getPackageVersion('@rushstack/heft', PackageSearchMode.GlobalOnly, HandlePromise.Continue);
887
+ if (heftVersion) {
888
+ yield this.checkStatus('@rushstack/heft', heftVersion, prerequisites.heft);
889
+ }
890
+ else {
891
+ const message = '@rushstack/heft not found';
892
+ this.resultsObject.push({
893
+ check: '@rushstack/heft',
894
+ passed: false,
895
+ message: message,
896
+ fix: prerequisites.heft.fix
897
+ });
898
+ yield this.logMessage(formatting_1.formatting.getStatus(formatting_1.CheckStatus.Failure, message));
899
+ }
900
+ });
901
+ }
845
902
  checkGulp() {
846
903
  return __awaiter(this, void 0, void 0, function* () {
847
904
  const gulpVersion = yield this.getPackageVersion('gulp', PackageSearchMode.GlobalOnly, HandlePromise.Continue);
@@ -42,13 +42,26 @@ class SpoPageGetCommand extends SpoCommand_1.default {
42
42
  if (this.verbose) {
43
43
  logger.logToStderr(`Retrieving information about the page...`);
44
44
  }
45
- let pageName = args.options.name;
46
- if (args.options.name.indexOf('.aspx') < 0) {
47
- pageName += '.aspx';
48
- }
45
+ let pageName = '';
49
46
  try {
47
+ if (args.options.name) {
48
+ pageName = args.options.name.endsWith('.aspx')
49
+ ? args.options.name
50
+ : `${args.options.name}.aspx`;
51
+ }
52
+ else if (args.options.default) {
53
+ const requestOptions = {
54
+ url: `${args.options.webUrl}/_api/Web/RootFolder?$select=WelcomePage`,
55
+ headers: {
56
+ accept: 'application/json;odata=nometadata'
57
+ },
58
+ responseType: 'json'
59
+ };
60
+ const { WelcomePage } = yield request_1.default.get(requestOptions);
61
+ pageName = WelcomePage.split('/').pop();
62
+ }
50
63
  let requestOptions = {
51
- url: `${args.options.webUrl}/_api/web/getfilebyserverrelativeurl('${urlUtil_1.urlUtil.getServerRelativeSiteUrl(args.options.webUrl)}/SitePages/${formatting_1.formatting.encodeQueryParameter(pageName)}')?$expand=ListItemAllFields/ClientSideApplicationId,ListItemAllFields/PageLayoutType,ListItemAllFields/CommentsDisabled`,
64
+ url: `${args.options.webUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${urlUtil_1.urlUtil.getServerRelativeSiteUrl(args.options.webUrl)}/SitePages/${formatting_1.formatting.encodeQueryParameter(pageName)}')?$expand=ListItemAllFields/ClientSideApplicationId,ListItemAllFields/PageLayoutType,ListItemAllFields/CommentsDisabled`,
52
65
  headers: {
53
66
  'content-type': 'application/json;charset=utf-8',
54
67
  accept: 'application/json;odata=nometadata'
@@ -57,7 +70,7 @@ class SpoPageGetCommand extends SpoCommand_1.default {
57
70
  };
58
71
  const page = yield request_1.default.get(requestOptions);
59
72
  if (page.ListItemAllFields.ClientSideApplicationId !== 'b6917cb1-93a0-4b97-a84d-7cf49975d4ec') {
60
- throw `Page ${args.options.name} is not a modern page.`;
73
+ throw `Page ${pageName} is not a modern page.`;
61
74
  }
62
75
  let pageItemData = {};
63
76
  pageItemData = Object.assign({}, page);
@@ -100,6 +113,8 @@ _SpoPageGetCommand_instances = new WeakSet(), _SpoPageGetCommand_initOptions = f
100
113
  option: '-u, --webUrl <webUrl>'
101
114
  }, {
102
115
  option: '--metadataOnly'
116
+ }, {
117
+ option: '--default'
103
118
  });
104
119
  }, _SpoPageGetCommand_initValidators = function _SpoPageGetCommand_initValidators() {
105
120
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.webUrl); }));
@@ -13,11 +13,11 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
13
13
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
14
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
15
  };
16
- var _SpoPageRemoveCommand_instances, _SpoPageRemoveCommand_initOptions, _SpoPageRemoveCommand_initValidators;
16
+ var _SpoPageRemoveCommand_instances, _SpoPageRemoveCommand_initTelemetry, _SpoPageRemoveCommand_initOptions, _SpoPageRemoveCommand_initValidators, _SpoPageRemoveCommand_initTypes;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const Cli_1 = require("../../../../cli/Cli");
19
19
  const request_1 = require("../../../../request");
20
- const spo_1 = require("../../../../utils/spo");
20
+ const formatting_1 = require("../../../../utils/formatting");
21
21
  const urlUtil_1 = require("../../../../utils/urlUtil");
22
22
  const validation_1 = require("../../../../utils/validation");
23
23
  const SpoCommand_1 = require("../../../base/SpoCommand");
@@ -32,8 +32,10 @@ class SpoPageRemoveCommand extends SpoCommand_1.default {
32
32
  constructor() {
33
33
  super();
34
34
  _SpoPageRemoveCommand_instances.add(this);
35
+ __classPrivateFieldGet(this, _SpoPageRemoveCommand_instances, "m", _SpoPageRemoveCommand_initTelemetry).call(this);
35
36
  __classPrivateFieldGet(this, _SpoPageRemoveCommand_instances, "m", _SpoPageRemoveCommand_initOptions).call(this);
36
37
  __classPrivateFieldGet(this, _SpoPageRemoveCommand_instances, "m", _SpoPageRemoveCommand_initValidators).call(this);
38
+ __classPrivateFieldGet(this, _SpoPageRemoveCommand_instances, "m", _SpoPageRemoveCommand_initTypes).call(this);
37
39
  }
38
40
  commandAction(logger, args) {
39
41
  return __awaiter(this, void 0, void 0, function* () {
@@ -56,28 +58,31 @@ class SpoPageRemoveCommand extends SpoCommand_1.default {
56
58
  removePage(logger, args) {
57
59
  return __awaiter(this, void 0, void 0, function* () {
58
60
  try {
59
- let requestDigest = '';
60
61
  let pageName = args.options.name;
61
- const reqDigest = yield spo_1.spo.getRequestDigest(args.options.webUrl);
62
- requestDigest = reqDigest.FormDigestValue;
63
- if (!pageName.endsWith('.aspx')) {
62
+ if (!pageName.toLowerCase().endsWith('.aspx')) {
64
63
  pageName += '.aspx';
65
64
  }
66
65
  if (this.verbose) {
67
66
  logger.logToStderr(`Removing page ${pageName}...`);
68
67
  }
68
+ const filePath = `${urlUtil_1.urlUtil.getServerRelativeSiteUrl(args.options.webUrl)}/SitePages/${pageName}`;
69
69
  const requestOptions = {
70
- url: `${args.options
71
- .webUrl}/_api/web/getfilebyserverrelativeurl('${urlUtil_1.urlUtil.getServerRelativeSiteUrl(args.options.webUrl)}/sitepages/${pageName}')`,
70
+ url: `${args.options.webUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${formatting_1.formatting.encodeQueryParameter(filePath)}')`,
72
71
  headers: {
73
- 'X-RequestDigest': requestDigest,
74
- 'X-HTTP-Method': 'DELETE',
75
- 'content-type': 'application/json;odata=nometadata',
76
72
  accept: 'application/json;odata=nometadata'
77
73
  },
78
74
  responseType: 'json'
79
75
  };
80
- yield request_1.default.post(requestOptions);
76
+ if (args.options.bypassSharedLock) {
77
+ requestOptions.headers.Prefer = 'bypass-shared-lock';
78
+ }
79
+ if (args.options.recycle) {
80
+ requestOptions.url += '/Recycle';
81
+ yield request_1.default.post(requestOptions);
82
+ }
83
+ else {
84
+ yield request_1.default.delete(requestOptions);
85
+ }
81
86
  }
82
87
  catch (err) {
83
88
  this.handleRejectedODataJsonPromise(err);
@@ -85,16 +90,31 @@ class SpoPageRemoveCommand extends SpoCommand_1.default {
85
90
  });
86
91
  }
87
92
  }
88
- _SpoPageRemoveCommand_instances = new WeakSet(), _SpoPageRemoveCommand_initOptions = function _SpoPageRemoveCommand_initOptions() {
93
+ _SpoPageRemoveCommand_instances = new WeakSet(), _SpoPageRemoveCommand_initTelemetry = function _SpoPageRemoveCommand_initTelemetry() {
94
+ this.telemetry.push((args) => {
95
+ Object.assign(this.telemetryProperties, {
96
+ force: !!args.options.force,
97
+ recycle: !!args.options.recycle,
98
+ bypassSharedLock: !!args.options.bypassSharedLock
99
+ });
100
+ });
101
+ }, _SpoPageRemoveCommand_initOptions = function _SpoPageRemoveCommand_initOptions() {
89
102
  this.options.unshift({
103
+ option: '-u, --webUrl <webUrl>'
104
+ }, {
90
105
  option: '-n, --name <name>'
91
106
  }, {
92
- option: '-u, --webUrl <webUrl>'
107
+ option: '--recycle'
108
+ }, {
109
+ option: '--bypassSharedLock'
93
110
  }, {
94
111
  option: '-f, --force'
95
112
  });
96
113
  }, _SpoPageRemoveCommand_initValidators = function _SpoPageRemoveCommand_initValidators() {
97
114
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.webUrl); }));
115
+ }, _SpoPageRemoveCommand_initTypes = function _SpoPageRemoveCommand_initTypes() {
116
+ this.types.string.push('name', 'webUrl');
117
+ this.types.boolean.push('force', 'bypassSharedLock', 'recycle');
98
118
  };
99
119
  module.exports = new SpoPageRemoveCommand();
100
120
  //# sourceMappingURL=page-remove.js.map
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stringUtil = void 0;
4
+ exports.stringUtil = {
5
+ normalizeLineEndings: (str) => str === null || str === void 0 ? void 0 : str.replace(/\r\n/g, '\n')
6
+ };
7
+ //# sourceMappingURL=stringUtil.js.map
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365-spfx-toolkit",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@pnp/cli-microsoft365-spfx-toolkit",
9
- "version": "1.6.0",
9
+ "version": "1.7.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@azure/msal-common": "^13.2.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365-spfx-toolkit",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "CommonJS version of CLI for Microsoft 365 for SPFx Toolkit",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",