@pnp/cli-microsoft365 6.4.0-beta.006c079 → 6.4.0-beta.27e599e
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/Auth.js +1 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014009_CODE_launch_hostedWorkbench_url.js +62 -0
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.17.0-beta.1.js → upgrade-1.17.0-beta.3.js} +35 -27
- package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +2 -2
- package/package.json +1 -1
package/dist/Auth.js
CHANGED
|
@@ -535,9 +535,7 @@ class Auth {
|
|
|
535
535
|
resource = resource.substr(0, pos);
|
|
536
536
|
}
|
|
537
537
|
if (resource === 'https://api.bap.microsoft.com' || resource === 'https://api.powerapps.com') {
|
|
538
|
-
|
|
539
|
-
// we need to use https://management.azure.com/ instead
|
|
540
|
-
resource = 'https://management.azure.com/';
|
|
538
|
+
resource = 'https://service.powerapps.com/';
|
|
541
539
|
}
|
|
542
540
|
if (resource === 'https://api.powerbi.com') {
|
|
543
541
|
// api.powerbi.com is not a valid resource
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FN014009_CODE_launch_hostedWorkbench_url = void 0;
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const JsonRule_1 = require("../../JsonRule");
|
|
6
|
+
class FN014009_CODE_launch_hostedWorkbench_url extends JsonRule_1.JsonRule {
|
|
7
|
+
constructor(url) {
|
|
8
|
+
super();
|
|
9
|
+
this.url = url;
|
|
10
|
+
}
|
|
11
|
+
get id() {
|
|
12
|
+
return 'FN014009';
|
|
13
|
+
}
|
|
14
|
+
get title() {
|
|
15
|
+
return 'Hosted workbench URL in .vscode/launch.json';
|
|
16
|
+
}
|
|
17
|
+
get description() {
|
|
18
|
+
return `In the .vscode/launch.json file, update the url property for the hosted workbench launch configuration`;
|
|
19
|
+
}
|
|
20
|
+
get resolution() {
|
|
21
|
+
return `{
|
|
22
|
+
"configurations": [
|
|
23
|
+
{
|
|
24
|
+
"url": "${this.url}"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}`;
|
|
28
|
+
}
|
|
29
|
+
get resolutionType() {
|
|
30
|
+
return 'json';
|
|
31
|
+
}
|
|
32
|
+
get severity() {
|
|
33
|
+
return 'Recommended';
|
|
34
|
+
}
|
|
35
|
+
get file() {
|
|
36
|
+
return '.vscode/launch.json';
|
|
37
|
+
}
|
|
38
|
+
visit(project, findings) {
|
|
39
|
+
if (!project.vsCode ||
|
|
40
|
+
!project.vsCode.launchJson ||
|
|
41
|
+
!project.vsCode.launchJson.configurations) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const occurrences = [];
|
|
45
|
+
project.vsCode.launchJson.configurations.forEach((configuration, i) => {
|
|
46
|
+
if (configuration.name === 'Hosted workbench' &&
|
|
47
|
+
configuration.url !== this.url) {
|
|
48
|
+
const node = this.getAstNodeFromFile(project.vsCode.launchJson, `configurations[${i}].url`);
|
|
49
|
+
occurrences.push({
|
|
50
|
+
file: path.relative(project.path, this.file),
|
|
51
|
+
resolution: this.resolution,
|
|
52
|
+
position: this.getPositionFromNode(node)
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
if (occurrences.length > 0) {
|
|
57
|
+
this.addFindingWithOccurrences(occurrences, findings);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.FN014009_CODE_launch_hostedWorkbench_url = FN014009_CODE_launch_hostedWorkbench_url;
|
|
62
|
+
//# sourceMappingURL=FN014009_CODE_launch_hostedWorkbench_url.js.map
|
|
@@ -26,34 +26,42 @@ const FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5_1 = require("./rules/FN0
|
|
|
26
26
|
const FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1 = require("./rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx");
|
|
27
27
|
const FN002023_DEVDEP_microsoft_eslint_config_spfx_1 = require("./rules/FN002023_DEVDEP_microsoft_eslint_config_spfx");
|
|
28
28
|
const FN002024_DEVDEP_eslint_1 = require("./rules/FN002024_DEVDEP_eslint");
|
|
29
|
+
const FN007002_CFG_S_initialPage_1 = require("./rules/FN007002_CFG_S_initialPage");
|
|
29
30
|
const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
|
|
31
|
+
const FN010010_YORC_sdkVersions_teams_js_1 = require("./rules/FN010010_YORC_sdkVersions_teams_js");
|
|
32
|
+
const FN014008_CODE_launch_hostedWorkbench_type_1 = require("./rules/FN014008_CODE_launch_hostedWorkbench_type");
|
|
33
|
+
const FN014009_CODE_launch_hostedWorkbench_url_1 = require("./rules/FN014009_CODE_launch_hostedWorkbench_url");
|
|
30
34
|
module.exports = [
|
|
31
|
-
new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.17.0-beta.
|
|
32
|
-
new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.17.0-beta.
|
|
33
|
-
new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.17.0-beta.
|
|
34
|
-
new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.17.0-beta.
|
|
35
|
-
new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.17.0-beta.
|
|
36
|
-
new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.17.0-beta.
|
|
37
|
-
new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.17.0-beta.
|
|
38
|
-
new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.17.0-beta.
|
|
39
|
-
new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.17.0-beta.
|
|
40
|
-
new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.17.0-beta.
|
|
41
|
-
new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.17.0-beta.
|
|
42
|
-
new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.17.0-beta.
|
|
43
|
-
new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.17.0-beta.
|
|
44
|
-
new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.17.0-beta.
|
|
45
|
-
new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.17.0-beta.
|
|
46
|
-
new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.17.0-beta.
|
|
47
|
-
new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.17.0-beta.
|
|
48
|
-
new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.17.0-beta.
|
|
49
|
-
new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.17.0-beta.
|
|
50
|
-
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.17.0-beta.
|
|
51
|
-
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.17.0-beta.
|
|
52
|
-
new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.17.0-beta.
|
|
53
|
-
new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.17.0-beta.
|
|
54
|
-
new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.17.0-beta.
|
|
55
|
-
new FN010001_YORC_version_1.FN010001_YORC_version('1.17.0-beta.1'),
|
|
35
|
+
new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.17.0-beta.3'),
|
|
36
|
+
new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.17.0-beta.3'),
|
|
37
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.17.0-beta.3'),
|
|
38
|
+
new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.17.0-beta.3'),
|
|
39
|
+
new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.17.0-beta.3'),
|
|
40
|
+
new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.17.0-beta.3'),
|
|
41
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.17.0-beta.3'),
|
|
42
|
+
new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.17.0-beta.3'),
|
|
43
|
+
new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.17.0-beta.3'),
|
|
44
|
+
new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.17.0-beta.3'),
|
|
45
|
+
new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.17.0-beta.3'),
|
|
46
|
+
new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.17.0-beta.3'),
|
|
47
|
+
new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.17.0-beta.3'),
|
|
48
|
+
new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.17.0-beta.3'),
|
|
49
|
+
new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.17.0-beta.3'),
|
|
50
|
+
new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.17.0-beta.3'),
|
|
51
|
+
new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.17.0-beta.3'),
|
|
52
|
+
new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.17.0-beta.3'),
|
|
53
|
+
new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.17.0-beta.3'),
|
|
54
|
+
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.17.0-beta.3'),
|
|
55
|
+
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.17.0-beta.3'),
|
|
56
|
+
new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.17.0-beta.3'),
|
|
57
|
+
new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.17.0-beta.3'),
|
|
58
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.17.0-beta.3'),
|
|
56
59
|
new FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5_1.FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5('0.4.0'),
|
|
57
|
-
new FN002024_DEVDEP_eslint_1.FN002024_DEVDEP_eslint('8.7.0')
|
|
60
|
+
new FN002024_DEVDEP_eslint_1.FN002024_DEVDEP_eslint('8.7.0'),
|
|
61
|
+
new FN007002_CFG_S_initialPage_1.FN007002_CFG_S_initialPage('https://{tenantDomain}/_layouts/workbench.aspx'),
|
|
62
|
+
new FN010001_YORC_version_1.FN010001_YORC_version('1.17.0-beta.3'),
|
|
63
|
+
new FN010010_YORC_sdkVersions_teams_js_1.FN010010_YORC_sdkVersions_teams_js('2.9.1'),
|
|
64
|
+
new FN014008_CODE_launch_hostedWorkbench_type_1.FN014008_CODE_launch_hostedWorkbench_type('edge'),
|
|
65
|
+
new FN014009_CODE_launch_hostedWorkbench_url_1.FN014009_CODE_launch_hostedWorkbench_url('https://{tenantDomain}/_layouts/workbench.aspx')
|
|
58
66
|
];
|
|
59
|
-
//# sourceMappingURL=upgrade-1.17.0-beta.
|
|
67
|
+
//# sourceMappingURL=upgrade-1.17.0-beta.3.js.map
|
|
@@ -77,7 +77,7 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
|
|
|
77
77
|
'1.15.2',
|
|
78
78
|
'1.16.0',
|
|
79
79
|
'1.16.1',
|
|
80
|
-
'1.17.0-beta.
|
|
80
|
+
'1.17.0-beta.3'
|
|
81
81
|
];
|
|
82
82
|
__classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
|
|
83
83
|
__classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
|
|
@@ -41,8 +41,8 @@ class SpoTenantRecycleBinItemRemoveCommand extends SpoCommand_1.default {
|
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
const removeDeletedSite = () => __awaiter(this, void 0, void 0, function* () {
|
|
43
43
|
try {
|
|
44
|
-
|
|
45
|
-
const res = yield spo_1.spo.ensureFormDigest(
|
|
44
|
+
this.spoAdminUrl = yield spo_1.spo.getSpoAdminUrl(logger, this.debug);
|
|
45
|
+
const res = yield spo_1.spo.ensureFormDigest(this.spoAdminUrl, logger, this.context, this.debug);
|
|
46
46
|
if (this.verbose) {
|
|
47
47
|
logger.logToStderr(`Removing deleted site collection ${args.options.siteUrl}...`);
|
|
48
48
|
}
|
package/package.json
CHANGED