@pnp/cli-microsoft365 4.2.0-beta.b126b71 → 4.3.0-beta.5bf07a3
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/.devcontainer/Dockerfile +1 -1
- package/dist/appInsights.js +2 -0
- package/dist/cli/Cli.js +4 -1
- package/dist/m365/aad/commands/app/app-add.js +58 -5
- package/dist/m365/aad/commands/o365group/o365group-add.js +56 -50
- package/dist/m365/aad/commands/sp/sp-add.js +107 -0
- package/dist/m365/aad/commands.js +1 -0
- package/dist/m365/base/M365RcJson.js +3 -0
- package/dist/m365/file/commands/file-list.js +181 -0
- package/dist/m365/file/commands.js +2 -1
- package/dist/m365/search/commands/externalconnection/externalconnection-add.js +99 -0
- package/dist/m365/search/commands.js +7 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.13.1.js +53 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +2 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +176 -62
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +52 -0
- package/dist/m365/spo/commands/list/list-get.js +6 -2
- package/dist/m365/spo/commands/page/Page.js +3 -1
- package/dist/m365/spo/commands/page/page-add.js +7 -10
- package/dist/m365/spo/commands/page/page-set.js +7 -10
- package/dist/m365/spo/commands/site/site-remove.js +98 -30
- package/dist/m365/spo/commands.js +2 -1
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +1 -1
- package/docs/docs/cmd/aad/app/app-add.md +11 -0
- package/docs/docs/cmd/aad/o365group/o365group-add.md +1 -0
- package/docs/docs/cmd/aad/sp/sp-add.md +53 -0
- package/docs/docs/cmd/file/file-list.md +46 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-add.md +43 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-list.md +33 -0
- package/docs/docs/cmd/spo/list/list-get.md +9 -0
- package/docs/docs/cmd/spo/page/page-add.md +2 -2
- package/docs/docs/cmd/spo/page/page-set.md +3 -3
- package/docs/docs/cmd/spo/site/site-remove.md +3 -1
- package/docs/docs/cmd/teams/report/report-directroutingcalls.md +0 -3
- package/npm-shrinkwrap.json +510 -888
- package/package.json +19 -17
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const request_1 = require("../../../../request");
|
|
4
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
5
|
+
const commands_1 = require("../../commands");
|
|
6
|
+
class SearchExternalConnectionAddCommand extends GraphCommand_1.default {
|
|
7
|
+
get name() {
|
|
8
|
+
return commands_1.default.EXTERNALCONNECTION_ADD;
|
|
9
|
+
}
|
|
10
|
+
get description() {
|
|
11
|
+
return 'Adds a new External Connection for Microsoft Search';
|
|
12
|
+
}
|
|
13
|
+
getTelemetryProperties(args) {
|
|
14
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
15
|
+
telemetryProps.authorizedAppIds = typeof args.options.authorizedAppIds !== undefined;
|
|
16
|
+
return telemetryProps;
|
|
17
|
+
}
|
|
18
|
+
commandAction(logger, args, cb) {
|
|
19
|
+
let appIds = [];
|
|
20
|
+
if (args.options.authorizedAppIds !== undefined &&
|
|
21
|
+
args.options.authorizedAppIds !== '') {
|
|
22
|
+
appIds = args.options.authorizedAppIds.split(',');
|
|
23
|
+
}
|
|
24
|
+
const commandData = {
|
|
25
|
+
id: args.options.id,
|
|
26
|
+
name: args.options.name,
|
|
27
|
+
description: args.options.description,
|
|
28
|
+
configuration: {
|
|
29
|
+
authorizedAppIds: appIds
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const requestOptions = {
|
|
33
|
+
url: `${this.resource}/v1.0/external/connections`,
|
|
34
|
+
headers: {
|
|
35
|
+
accept: 'application/json;odata.metadata=none'
|
|
36
|
+
},
|
|
37
|
+
responseType: 'json',
|
|
38
|
+
data: commandData
|
|
39
|
+
};
|
|
40
|
+
request_1.default
|
|
41
|
+
.post(requestOptions)
|
|
42
|
+
.then(_ => cb(), err => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
43
|
+
}
|
|
44
|
+
options() {
|
|
45
|
+
const options = [
|
|
46
|
+
{
|
|
47
|
+
option: '-i, --id <id>'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
option: '-n, --name <name>'
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
option: '-d, --description <description>'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
option: '--authorizedAppIds [authorizedAppIds]'
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
const parentOptions = super.options();
|
|
60
|
+
return options.concat(parentOptions);
|
|
61
|
+
}
|
|
62
|
+
validate(args) {
|
|
63
|
+
const id = args.options.id;
|
|
64
|
+
if (id.length < 3 || id.length > 32) {
|
|
65
|
+
return 'ID must be between 3 and 32 characters in length.';
|
|
66
|
+
}
|
|
67
|
+
const alphaNumericRegEx = /[^\w]|_/g;
|
|
68
|
+
if (alphaNumericRegEx.test(id)) {
|
|
69
|
+
return 'ID must only contain alphanumeric characters.';
|
|
70
|
+
}
|
|
71
|
+
if (id.length > 9 &&
|
|
72
|
+
id.startsWith('Microsoft')) {
|
|
73
|
+
return 'ID cannot begin with Microsoft';
|
|
74
|
+
}
|
|
75
|
+
const invalidIds = ['None',
|
|
76
|
+
'Directory',
|
|
77
|
+
'Exchange',
|
|
78
|
+
'ExchangeArchive',
|
|
79
|
+
'LinkedIn',
|
|
80
|
+
'Mailbox',
|
|
81
|
+
'OneDriveBusiness',
|
|
82
|
+
'SharePoint',
|
|
83
|
+
'Teams',
|
|
84
|
+
'Yammer',
|
|
85
|
+
'Connectors',
|
|
86
|
+
'TaskFabric',
|
|
87
|
+
'PowerBI',
|
|
88
|
+
'Assistant',
|
|
89
|
+
'TopicEngine',
|
|
90
|
+
'MSFT_All_Connectors'
|
|
91
|
+
];
|
|
92
|
+
if (invalidIds.indexOf(id) > -1) {
|
|
93
|
+
return `ID cannot be one of the following values: ${invalidIds.join(', ')}.`;
|
|
94
|
+
}
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
module.exports = new SearchExternalConnectionAddCommand();
|
|
99
|
+
//# sourceMappingURL=externalconnection-add.js.map
|
|
@@ -0,0 +1,53 @@
|
|
|
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 FN002001_DEVDEP_microsoft_sp_build_web_1 = require("./rules/FN002001_DEVDEP_microsoft_sp_build_web");
|
|
23
|
+
const FN002002_DEVDEP_microsoft_sp_module_interfaces_1 = require("./rules/FN002002_DEVDEP_microsoft_sp_module_interfaces");
|
|
24
|
+
const FN002009_DEVDEP_microsoft_sp_tslint_rules_1 = require("./rules/FN002009_DEVDEP_microsoft_sp_tslint_rules");
|
|
25
|
+
const FN006004_CFG_PS_developer_1 = require("./rules/FN006004_CFG_PS_developer");
|
|
26
|
+
const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
|
|
27
|
+
module.exports = [
|
|
28
|
+
new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.13.1'),
|
|
29
|
+
new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.13.1'),
|
|
30
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.13.1'),
|
|
31
|
+
new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.13.1'),
|
|
32
|
+
new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.13.1'),
|
|
33
|
+
new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.13.1'),
|
|
34
|
+
new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.13.1'),
|
|
35
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.13.1'),
|
|
36
|
+
new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.13.1'),
|
|
37
|
+
new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.13.1'),
|
|
38
|
+
new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.13.1'),
|
|
39
|
+
new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.13.1'),
|
|
40
|
+
new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.13.1'),
|
|
41
|
+
new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.13.1'),
|
|
42
|
+
new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.13.1'),
|
|
43
|
+
new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.13.1'),
|
|
44
|
+
new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.13.1'),
|
|
45
|
+
new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.13.1'),
|
|
46
|
+
new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.13.1'),
|
|
47
|
+
new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.13.1'),
|
|
48
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.13.1'),
|
|
49
|
+
new FN002009_DEVDEP_microsoft_sp_tslint_rules_1.FN002009_DEVDEP_microsoft_sp_tslint_rules('1.13.1'),
|
|
50
|
+
new FN006004_CFG_PS_developer_1.FN006004_CFG_PS_developer('1.13.1'),
|
|
51
|
+
new FN010001_YORC_version_1.FN010001_YORC_version('1.13.1')
|
|
52
|
+
];
|
|
53
|
+
//# sourceMappingURL=upgrade-1.13.1.js.map
|
|
@@ -56,288 +56,402 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
56
56
|
this.versions = {
|
|
57
57
|
'1.0.0': {
|
|
58
58
|
gulp: {
|
|
59
|
-
range: '^3
|
|
59
|
+
range: '^3',
|
|
60
60
|
fix: 'npm i -g gulp@3'
|
|
61
61
|
},
|
|
62
62
|
node: {
|
|
63
|
-
range: '^6
|
|
63
|
+
range: '^6',
|
|
64
64
|
fix: 'Install Node.js v6'
|
|
65
65
|
},
|
|
66
66
|
react: {
|
|
67
67
|
range: '^15',
|
|
68
68
|
fix: 'npm i react@15'
|
|
69
69
|
},
|
|
70
|
-
sp: SharePointVersion.All
|
|
70
|
+
sp: SharePointVersion.All,
|
|
71
|
+
yo: {
|
|
72
|
+
range: '^3',
|
|
73
|
+
fix: 'npm i -g yo@3'
|
|
74
|
+
}
|
|
71
75
|
},
|
|
72
76
|
'1.1.0': {
|
|
73
77
|
gulp: {
|
|
74
|
-
range: '^3
|
|
78
|
+
range: '^3',
|
|
75
79
|
fix: 'npm i -g gulp@3'
|
|
76
80
|
},
|
|
77
81
|
node: {
|
|
78
|
-
range: '^6
|
|
82
|
+
range: '^6',
|
|
79
83
|
fix: 'Install Node.js v6'
|
|
80
84
|
},
|
|
81
85
|
react: {
|
|
82
86
|
range: '^15',
|
|
83
87
|
fix: 'npm i react@15'
|
|
84
88
|
},
|
|
85
|
-
sp: SharePointVersion.All
|
|
89
|
+
sp: SharePointVersion.All,
|
|
90
|
+
yo: {
|
|
91
|
+
range: '^3',
|
|
92
|
+
fix: 'npm i -g yo@3'
|
|
93
|
+
}
|
|
86
94
|
},
|
|
87
95
|
'1.2.0': {
|
|
88
96
|
gulp: {
|
|
89
|
-
range: '^3
|
|
97
|
+
range: '^3',
|
|
90
98
|
fix: 'npm i -g gulp@3'
|
|
91
99
|
},
|
|
92
100
|
node: {
|
|
93
|
-
range: '^6
|
|
101
|
+
range: '^6',
|
|
94
102
|
fix: 'Install Node.js v6'
|
|
95
103
|
},
|
|
96
104
|
react: {
|
|
97
105
|
range: '^15',
|
|
98
106
|
fix: 'npm i react@15'
|
|
99
107
|
},
|
|
100
|
-
sp: SharePointVersion.SP2019 | SharePointVersion.SPO
|
|
108
|
+
sp: SharePointVersion.SP2019 | SharePointVersion.SPO,
|
|
109
|
+
yo: {
|
|
110
|
+
range: '^3',
|
|
111
|
+
fix: 'npm i -g yo@3'
|
|
112
|
+
}
|
|
101
113
|
},
|
|
102
114
|
'1.4.0': {
|
|
103
115
|
gulp: {
|
|
104
|
-
range: '^3
|
|
116
|
+
range: '^3',
|
|
105
117
|
fix: 'npm i -g gulp@3'
|
|
106
118
|
},
|
|
107
119
|
node: {
|
|
108
|
-
range: '^6
|
|
120
|
+
range: '^6',
|
|
109
121
|
fix: 'Install Node.js v6'
|
|
110
122
|
},
|
|
111
123
|
react: {
|
|
112
124
|
range: '^15',
|
|
113
125
|
fix: 'npm i react@15'
|
|
114
126
|
},
|
|
115
|
-
sp: SharePointVersion.SP2019 | SharePointVersion.SPO
|
|
127
|
+
sp: SharePointVersion.SP2019 | SharePointVersion.SPO,
|
|
128
|
+
yo: {
|
|
129
|
+
range: '^3',
|
|
130
|
+
fix: 'npm i -g yo@3'
|
|
131
|
+
}
|
|
116
132
|
},
|
|
117
133
|
'1.4.1': {
|
|
118
134
|
gulp: {
|
|
119
|
-
range: '^3
|
|
135
|
+
range: '^3',
|
|
120
136
|
fix: 'npm i -g gulp@3'
|
|
121
137
|
},
|
|
122
138
|
node: {
|
|
123
|
-
range: '^6
|
|
139
|
+
range: '^6 || ^8',
|
|
124
140
|
fix: 'Install Node.js v8'
|
|
125
141
|
},
|
|
126
142
|
react: {
|
|
127
143
|
range: '^15',
|
|
128
144
|
fix: 'npm i react@15'
|
|
129
145
|
},
|
|
130
|
-
sp: SharePointVersion.SP2019 | SharePointVersion.SPO
|
|
146
|
+
sp: SharePointVersion.SP2019 | SharePointVersion.SPO,
|
|
147
|
+
yo: {
|
|
148
|
+
range: '^3',
|
|
149
|
+
fix: 'npm i -g yo@3'
|
|
150
|
+
}
|
|
131
151
|
},
|
|
132
152
|
'1.5.0': {
|
|
133
153
|
gulp: {
|
|
134
|
-
range: '^3
|
|
154
|
+
range: '^3',
|
|
135
155
|
fix: 'npm i -g gulp@3'
|
|
136
156
|
},
|
|
137
157
|
node: {
|
|
138
|
-
range: '^6
|
|
158
|
+
range: '^6 || ^8',
|
|
139
159
|
fix: 'Install Node.js v8'
|
|
140
160
|
},
|
|
141
161
|
react: {
|
|
142
162
|
range: '^15',
|
|
143
163
|
fix: 'npm i react@15'
|
|
144
164
|
},
|
|
145
|
-
sp: SharePointVersion.SPO
|
|
165
|
+
sp: SharePointVersion.SPO,
|
|
166
|
+
yo: {
|
|
167
|
+
range: '^3',
|
|
168
|
+
fix: 'npm i -g yo@3'
|
|
169
|
+
}
|
|
146
170
|
},
|
|
147
171
|
'1.5.1': {
|
|
148
172
|
gulp: {
|
|
149
|
-
range: '^3
|
|
173
|
+
range: '^3',
|
|
150
174
|
fix: 'npm i -g gulp@3'
|
|
151
175
|
},
|
|
152
176
|
node: {
|
|
153
|
-
range: '^6
|
|
177
|
+
range: '^6 || ^8',
|
|
154
178
|
fix: 'Install Node.js v8'
|
|
155
179
|
},
|
|
156
180
|
react: {
|
|
157
181
|
range: '^15',
|
|
158
182
|
fix: 'npm i react@15'
|
|
159
183
|
},
|
|
160
|
-
sp: SharePointVersion.SPO
|
|
184
|
+
sp: SharePointVersion.SPO,
|
|
185
|
+
yo: {
|
|
186
|
+
range: '^3',
|
|
187
|
+
fix: 'npm i -g yo@3'
|
|
188
|
+
}
|
|
161
189
|
},
|
|
162
190
|
'1.6.0': {
|
|
163
191
|
gulp: {
|
|
164
|
-
range: '^3
|
|
192
|
+
range: '^3',
|
|
165
193
|
fix: 'npm i -g gulp@3'
|
|
166
194
|
},
|
|
167
195
|
node: {
|
|
168
|
-
range: '^6
|
|
196
|
+
range: '^6 || ^8',
|
|
169
197
|
fix: 'Install Node.js v8'
|
|
170
198
|
},
|
|
171
199
|
react: {
|
|
172
200
|
range: '^15',
|
|
173
201
|
fix: 'npm i react@15'
|
|
174
202
|
},
|
|
175
|
-
sp: SharePointVersion.SPO
|
|
203
|
+
sp: SharePointVersion.SPO,
|
|
204
|
+
yo: {
|
|
205
|
+
range: '^3',
|
|
206
|
+
fix: 'npm i -g yo@3'
|
|
207
|
+
}
|
|
176
208
|
},
|
|
177
209
|
'1.7.0': {
|
|
178
210
|
gulp: {
|
|
179
|
-
range: '^3
|
|
211
|
+
range: '^3',
|
|
180
212
|
fix: 'npm i -g gulp@3'
|
|
181
213
|
},
|
|
182
214
|
node: {
|
|
183
|
-
range: '^8
|
|
215
|
+
range: '^8',
|
|
184
216
|
fix: 'Install Node.js v8'
|
|
185
217
|
},
|
|
186
218
|
react: {
|
|
187
219
|
range: '16.3.2',
|
|
188
220
|
fix: 'npm i react@16.3.2'
|
|
189
221
|
},
|
|
190
|
-
sp: SharePointVersion.SPO
|
|
222
|
+
sp: SharePointVersion.SPO,
|
|
223
|
+
yo: {
|
|
224
|
+
range: '^3',
|
|
225
|
+
fix: 'npm i -g yo@3'
|
|
226
|
+
}
|
|
191
227
|
},
|
|
192
228
|
'1.7.1': {
|
|
193
229
|
gulp: {
|
|
194
|
-
range: '^3
|
|
230
|
+
range: '^3',
|
|
195
231
|
fix: 'npm i -g gulp@3'
|
|
196
232
|
},
|
|
197
233
|
node: {
|
|
198
|
-
range: '^8
|
|
234
|
+
range: '^8',
|
|
199
235
|
fix: 'Install Node.js v8'
|
|
200
236
|
},
|
|
201
237
|
react: {
|
|
202
238
|
range: '16.3.2',
|
|
203
239
|
fix: 'npm i react@16.3.2'
|
|
204
240
|
},
|
|
205
|
-
sp: SharePointVersion.SPO
|
|
241
|
+
sp: SharePointVersion.SPO,
|
|
242
|
+
yo: {
|
|
243
|
+
range: '^3',
|
|
244
|
+
fix: 'npm i -g yo@3'
|
|
245
|
+
}
|
|
206
246
|
},
|
|
207
247
|
'1.8.0': {
|
|
208
248
|
gulp: {
|
|
209
|
-
range: '^3
|
|
249
|
+
range: '^3',
|
|
210
250
|
fix: 'npm i -g gulp@3'
|
|
211
251
|
},
|
|
212
252
|
node: {
|
|
213
|
-
range: '^8
|
|
253
|
+
range: '^8',
|
|
214
254
|
fix: 'Install Node.js v8'
|
|
215
255
|
},
|
|
216
256
|
react: {
|
|
217
257
|
range: '16.7.0',
|
|
218
258
|
fix: 'npm i react@16.7.0'
|
|
219
259
|
},
|
|
220
|
-
sp: SharePointVersion.SPO
|
|
260
|
+
sp: SharePointVersion.SPO,
|
|
261
|
+
yo: {
|
|
262
|
+
range: '^3',
|
|
263
|
+
fix: 'npm i -g yo@3'
|
|
264
|
+
}
|
|
221
265
|
},
|
|
222
266
|
'1.8.1': {
|
|
223
267
|
gulp: {
|
|
224
|
-
range: '^3
|
|
268
|
+
range: '^3',
|
|
225
269
|
fix: 'npm i -g gulp@3'
|
|
226
270
|
},
|
|
227
271
|
node: {
|
|
228
|
-
range: '^8
|
|
272
|
+
range: '^8',
|
|
229
273
|
fix: 'Install Node.js v8'
|
|
230
274
|
},
|
|
231
275
|
react: {
|
|
232
276
|
range: '16.7.0',
|
|
233
277
|
fix: 'npm i react@16.7.0'
|
|
234
278
|
},
|
|
235
|
-
sp: SharePointVersion.SPO
|
|
279
|
+
sp: SharePointVersion.SPO,
|
|
280
|
+
yo: {
|
|
281
|
+
range: '^3',
|
|
282
|
+
fix: 'npm i -g yo@3'
|
|
283
|
+
}
|
|
236
284
|
},
|
|
237
285
|
'1.8.2': {
|
|
238
286
|
gulp: {
|
|
239
|
-
range: '^3
|
|
287
|
+
range: '^3',
|
|
240
288
|
fix: 'npm i -g gulp@3'
|
|
241
289
|
},
|
|
242
290
|
node: {
|
|
243
|
-
range: '^8
|
|
291
|
+
range: '^8 || ^10',
|
|
244
292
|
fix: 'Install Node.js v10'
|
|
245
293
|
},
|
|
246
294
|
react: {
|
|
247
295
|
range: '16.7.0',
|
|
248
296
|
fix: 'npm i react@16.7.0'
|
|
249
297
|
},
|
|
250
|
-
sp: SharePointVersion.SPO
|
|
298
|
+
sp: SharePointVersion.SPO,
|
|
299
|
+
yo: {
|
|
300
|
+
range: '^3',
|
|
301
|
+
fix: 'npm i -g yo@3'
|
|
302
|
+
}
|
|
251
303
|
},
|
|
252
304
|
'1.9.0': {
|
|
253
305
|
gulp: {
|
|
254
|
-
range: '^3
|
|
306
|
+
range: '^3',
|
|
255
307
|
fix: 'npm i -g gulp@3'
|
|
256
308
|
},
|
|
257
309
|
node: {
|
|
258
|
-
range: '^8
|
|
310
|
+
range: '^8 || ^10',
|
|
259
311
|
fix: 'Install Node.js v10'
|
|
260
312
|
},
|
|
261
313
|
react: {
|
|
262
314
|
range: '16.8.5',
|
|
263
315
|
fix: 'npm i react@16.8.5'
|
|
264
316
|
},
|
|
265
|
-
sp: SharePointVersion.SPO
|
|
317
|
+
sp: SharePointVersion.SPO,
|
|
318
|
+
yo: {
|
|
319
|
+
range: '^3',
|
|
320
|
+
fix: 'npm i -g yo@3'
|
|
321
|
+
}
|
|
266
322
|
},
|
|
267
323
|
'1.9.1': {
|
|
268
324
|
gulp: {
|
|
269
|
-
range: '^3
|
|
325
|
+
range: '^3',
|
|
270
326
|
fix: 'npm i -g gulp@3'
|
|
271
327
|
},
|
|
272
328
|
node: {
|
|
273
|
-
range: '^10
|
|
329
|
+
range: '^10',
|
|
274
330
|
fix: 'Install Node.js v10'
|
|
275
331
|
},
|
|
276
332
|
react: {
|
|
277
333
|
range: '16.8.5',
|
|
278
334
|
fix: 'npm i react@16.8.5'
|
|
279
335
|
},
|
|
280
|
-
sp: SharePointVersion.SPO
|
|
336
|
+
sp: SharePointVersion.SPO,
|
|
337
|
+
yo: {
|
|
338
|
+
range: '^3',
|
|
339
|
+
fix: 'npm i -g yo@3'
|
|
340
|
+
}
|
|
281
341
|
},
|
|
282
342
|
'1.10.0': {
|
|
283
343
|
gulp: {
|
|
284
|
-
range: '^3
|
|
344
|
+
range: '^3',
|
|
285
345
|
fix: 'npm i -g gulp@3'
|
|
286
346
|
},
|
|
287
347
|
node: {
|
|
288
|
-
range: '^10
|
|
348
|
+
range: '^10',
|
|
289
349
|
fix: 'Install Node.js v10'
|
|
290
350
|
},
|
|
291
351
|
react: {
|
|
292
352
|
range: '16.8.5',
|
|
293
353
|
fix: 'npm i react@16.8.5'
|
|
294
354
|
},
|
|
295
|
-
sp: SharePointVersion.SPO
|
|
355
|
+
sp: SharePointVersion.SPO,
|
|
356
|
+
yo: {
|
|
357
|
+
range: '^3',
|
|
358
|
+
fix: 'npm i -g yo@3'
|
|
359
|
+
}
|
|
296
360
|
},
|
|
297
361
|
'1.11.0': {
|
|
298
362
|
gulp: {
|
|
299
|
-
range: '^3
|
|
363
|
+
range: '^3',
|
|
300
364
|
fix: 'npm i -g gulp@3'
|
|
301
365
|
},
|
|
302
366
|
node: {
|
|
303
|
-
range: '^10
|
|
367
|
+
range: '^10',
|
|
304
368
|
fix: 'Install Node.js v10'
|
|
305
369
|
},
|
|
306
370
|
react: {
|
|
307
371
|
range: '16.8.5',
|
|
308
372
|
fix: 'npm i react@16.8.5'
|
|
309
373
|
},
|
|
310
|
-
sp: SharePointVersion.SPO
|
|
374
|
+
sp: SharePointVersion.SPO,
|
|
375
|
+
yo: {
|
|
376
|
+
range: '^3',
|
|
377
|
+
fix: 'npm i -g yo@3'
|
|
378
|
+
}
|
|
311
379
|
},
|
|
312
380
|
'1.12.0': {
|
|
313
381
|
gulp: {
|
|
314
|
-
range: '^4
|
|
382
|
+
range: '^4',
|
|
315
383
|
fix: 'npm i -g gulp@4'
|
|
316
384
|
},
|
|
317
385
|
node: {
|
|
318
|
-
range: '^12
|
|
386
|
+
range: '^12',
|
|
319
387
|
fix: 'Install Node.js v12'
|
|
320
388
|
},
|
|
321
389
|
react: {
|
|
322
390
|
range: '16.9.0',
|
|
323
391
|
fix: 'npm i react@16.9.0'
|
|
324
392
|
},
|
|
325
|
-
sp: SharePointVersion.SPO
|
|
393
|
+
sp: SharePointVersion.SPO,
|
|
394
|
+
yo: {
|
|
395
|
+
range: '^3',
|
|
396
|
+
fix: 'npm i -g yo@3'
|
|
397
|
+
}
|
|
326
398
|
},
|
|
327
399
|
'1.12.1': {
|
|
328
400
|
gulp: {
|
|
329
|
-
range: '^4
|
|
401
|
+
range: '^4',
|
|
330
402
|
fix: 'npm i -g gulp@4'
|
|
331
403
|
},
|
|
332
404
|
node: {
|
|
333
|
-
range: '^12
|
|
405
|
+
range: '^12 || ^14',
|
|
334
406
|
fix: 'Install Node.js v12 or v14'
|
|
335
407
|
},
|
|
336
408
|
react: {
|
|
337
409
|
range: '16.9.0',
|
|
338
410
|
fix: 'npm i react@16.9.0'
|
|
339
411
|
},
|
|
340
|
-
sp: SharePointVersion.SPO
|
|
412
|
+
sp: SharePointVersion.SPO,
|
|
413
|
+
yo: {
|
|
414
|
+
range: '^3',
|
|
415
|
+
fix: 'npm i -g yo@3'
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
'1.13.0': {
|
|
419
|
+
gulp: {
|
|
420
|
+
range: '^4',
|
|
421
|
+
fix: 'npm i -g gulp@4'
|
|
422
|
+
},
|
|
423
|
+
node: {
|
|
424
|
+
range: '^12 || ^14',
|
|
425
|
+
fix: 'Install Node.js v12 or v14'
|
|
426
|
+
},
|
|
427
|
+
react: {
|
|
428
|
+
range: '16.9.0',
|
|
429
|
+
fix: 'npm i react@16.9.0'
|
|
430
|
+
},
|
|
431
|
+
sp: SharePointVersion.SPO,
|
|
432
|
+
yo: {
|
|
433
|
+
range: '^4',
|
|
434
|
+
fix: 'npm i -g yo@4'
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
'1.13.1': {
|
|
438
|
+
gulp: {
|
|
439
|
+
range: '^4',
|
|
440
|
+
fix: 'npm i -g gulp@4'
|
|
441
|
+
},
|
|
442
|
+
node: {
|
|
443
|
+
range: '^12 || ^14',
|
|
444
|
+
fix: 'Install Node.js v12 or v14'
|
|
445
|
+
},
|
|
446
|
+
react: {
|
|
447
|
+
range: '16.9.0',
|
|
448
|
+
fix: 'npm i react@16.9.0'
|
|
449
|
+
},
|
|
450
|
+
sp: SharePointVersion.SPO,
|
|
451
|
+
yo: {
|
|
452
|
+
range: '^4',
|
|
453
|
+
fix: 'npm i -g yo@4'
|
|
454
|
+
}
|
|
341
455
|
}
|
|
342
456
|
};
|
|
343
457
|
}
|
|
@@ -373,7 +487,7 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
373
487
|
})
|
|
374
488
|
.then(_ => this.checkSharePointCompatibility(spfxVersion, prerequisites, args, fixes, logger))
|
|
375
489
|
.then(_ => this.checkNodeVersion(prerequisites, fixes, logger))
|
|
376
|
-
.then(_ => this.checkYo(fixes, logger))
|
|
490
|
+
.then(_ => this.checkYo(prerequisites, fixes, logger))
|
|
377
491
|
.then(_ => this.checkGulp(prerequisites, fixes, logger))
|
|
378
492
|
.then(_ => this.checkReact(prerequisites, fixes, logger))
|
|
379
493
|
.then(_ => this.checkTypeScript(fixes, logger))
|
|
@@ -424,16 +538,16 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
424
538
|
this.checkStatus('Node', nodeVersion, prerequisites.node, OptionalOrRequired.Required, fixes, logger);
|
|
425
539
|
});
|
|
426
540
|
}
|
|
427
|
-
checkYo(fixes, logger) {
|
|
541
|
+
checkYo(prerequisites, fixes, logger) {
|
|
428
542
|
return this
|
|
429
543
|
.getPackageVersion('yo', PackageSearchMode.GlobalOnly, HandlePromise.Continue, logger)
|
|
430
544
|
.then((yoVersion) => {
|
|
431
545
|
if (yoVersion) {
|
|
432
|
-
|
|
546
|
+
this.checkStatus('yo', yoVersion, prerequisites.yo, OptionalOrRequired.Required, fixes, logger);
|
|
433
547
|
}
|
|
434
548
|
else {
|
|
435
549
|
logger.log(this.getStatus(CheckStatus.Failure, `yo not found`));
|
|
436
|
-
fixes.push(
|
|
550
|
+
fixes.push(prerequisites.yo.fix);
|
|
437
551
|
}
|
|
438
552
|
});
|
|
439
553
|
}
|
|
@@ -446,7 +560,7 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
446
560
|
}
|
|
447
561
|
else {
|
|
448
562
|
logger.log(this.getStatus(CheckStatus.Failure, `gulp not found`));
|
|
449
|
-
fixes.push(
|
|
563
|
+
fixes.push(prerequisites.gulp.fix);
|
|
450
564
|
}
|
|
451
565
|
});
|
|
452
566
|
}
|