@pnp/cli-microsoft365-spfx-toolkit 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Auth.js +1 -1
- package/dist/m365/spo/commands/list/list-remove.js +14 -4
- package/npm-shrinkwrap.json +12 -14
- package/package.json +3 -3
package/dist/Auth.js
CHANGED
|
@@ -237,7 +237,7 @@ class Auth {
|
|
|
237
237
|
thumbprint: certificateThumbprint,
|
|
238
238
|
privateKey: certificatePrivateKey
|
|
239
239
|
};
|
|
240
|
-
let azureCloudInstance =
|
|
240
|
+
let azureCloudInstance = 0;
|
|
241
241
|
switch (this.service.cloudType) {
|
|
242
242
|
case CloudType.Public:
|
|
243
243
|
azureCloudInstance = msal_common_1.AzureCloudInstance.AzurePublic;
|
|
@@ -13,7 +13,7 @@ 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 _SpoListRemoveCommand_instances, _SpoListRemoveCommand_initTelemetry, _SpoListRemoveCommand_initOptions, _SpoListRemoveCommand_initValidators, _SpoListRemoveCommand_initOptionSets;
|
|
16
|
+
var _SpoListRemoveCommand_instances, _SpoListRemoveCommand_initTelemetry, _SpoListRemoveCommand_initOptions, _SpoListRemoveCommand_initValidators, _SpoListRemoveCommand_initOptionSets, _SpoListRemoveCommand_initTypes;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -33,6 +33,7 @@ class SpoListRemoveCommand extends SpoCommand_1.default {
|
|
|
33
33
|
_SpoListRemoveCommand_instances.add(this);
|
|
34
34
|
__classPrivateFieldGet(this, _SpoListRemoveCommand_instances, "m", _SpoListRemoveCommand_initTelemetry).call(this);
|
|
35
35
|
__classPrivateFieldGet(this, _SpoListRemoveCommand_instances, "m", _SpoListRemoveCommand_initOptions).call(this);
|
|
36
|
+
__classPrivateFieldGet(this, _SpoListRemoveCommand_instances, "m", _SpoListRemoveCommand_initTypes).call(this);
|
|
36
37
|
__classPrivateFieldGet(this, _SpoListRemoveCommand_instances, "m", _SpoListRemoveCommand_initValidators).call(this);
|
|
37
38
|
__classPrivateFieldGet(this, _SpoListRemoveCommand_instances, "m", _SpoListRemoveCommand_initOptionSets).call(this);
|
|
38
39
|
}
|
|
@@ -49,6 +50,9 @@ class SpoListRemoveCommand extends SpoCommand_1.default {
|
|
|
49
50
|
else {
|
|
50
51
|
requestUrl = `${args.options.webUrl}/_api/web/lists/GetByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.title)}')`;
|
|
51
52
|
}
|
|
53
|
+
if (args.options.recycle) {
|
|
54
|
+
requestUrl += `/recycle`;
|
|
55
|
+
}
|
|
52
56
|
const requestOptions = {
|
|
53
57
|
url: requestUrl,
|
|
54
58
|
method: 'POST',
|
|
@@ -86,9 +90,10 @@ class SpoListRemoveCommand extends SpoCommand_1.default {
|
|
|
86
90
|
_SpoListRemoveCommand_instances = new WeakSet(), _SpoListRemoveCommand_initTelemetry = function _SpoListRemoveCommand_initTelemetry() {
|
|
87
91
|
this.telemetry.push((args) => {
|
|
88
92
|
Object.assign(this.telemetryProperties, {
|
|
89
|
-
id:
|
|
90
|
-
title:
|
|
91
|
-
force:
|
|
93
|
+
id: typeof args.options.id !== 'undefined',
|
|
94
|
+
title: typeof args.options.title !== 'undefined',
|
|
95
|
+
force: !!args.options.force,
|
|
96
|
+
recycle: !!args.options.recycle
|
|
92
97
|
});
|
|
93
98
|
});
|
|
94
99
|
}, _SpoListRemoveCommand_initOptions = function _SpoListRemoveCommand_initOptions() {
|
|
@@ -98,6 +103,8 @@ _SpoListRemoveCommand_instances = new WeakSet(), _SpoListRemoveCommand_initTelem
|
|
|
98
103
|
option: '-i, --id [id]'
|
|
99
104
|
}, {
|
|
100
105
|
option: '-t, --title [title]'
|
|
106
|
+
}, {
|
|
107
|
+
option: '--recycle'
|
|
101
108
|
}, {
|
|
102
109
|
option: '-f, --force'
|
|
103
110
|
});
|
|
@@ -115,6 +122,9 @@ _SpoListRemoveCommand_instances = new WeakSet(), _SpoListRemoveCommand_initTelem
|
|
|
115
122
|
}));
|
|
116
123
|
}, _SpoListRemoveCommand_initOptionSets = function _SpoListRemoveCommand_initOptionSets() {
|
|
117
124
|
this.optionSets.push({ options: ['id', 'title'] });
|
|
125
|
+
}, _SpoListRemoveCommand_initTypes = function _SpoListRemoveCommand_initTypes() {
|
|
126
|
+
this.types.string.push('id', 'title', 'webUrl');
|
|
127
|
+
this.types.boolean.push('force', 'recycle');
|
|
118
128
|
};
|
|
119
129
|
module.exports = new SpoListRemoveCommand();
|
|
120
130
|
//# sourceMappingURL=list-remove.js.map
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365-spfx-toolkit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.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.
|
|
9
|
+
"version": "1.5.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@azure/msal-common": "^
|
|
13
|
-
"@azure/msal-node": "^
|
|
12
|
+
"@azure/msal-common": "^13.2.1",
|
|
13
|
+
"@azure/msal-node": "^1.17.3",
|
|
14
14
|
"@xmldom/xmldom": "^0.8.8",
|
|
15
15
|
"adaptive-expressions": "^4.20.0",
|
|
16
16
|
"adaptivecards": "^2.11.3",
|
|
@@ -167,26 +167,24 @@
|
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
"node_modules/@azure/msal-common": {
|
|
170
|
-
"version": "
|
|
171
|
-
"resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-
|
|
172
|
-
"integrity": "sha512-
|
|
173
|
-
"license": "MIT",
|
|
170
|
+
"version": "13.2.1",
|
|
171
|
+
"resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-13.2.1.tgz",
|
|
172
|
+
"integrity": "sha512-9CtyVdDtAOw+raemKg8gdBuE7gleObgSb7p4bzMIlUt8eM69/Gaow7uqr1gK3jLYINSrss32OZW8mBbdgVLiHg==",
|
|
174
173
|
"engines": {
|
|
175
174
|
"node": ">=0.8.0"
|
|
176
175
|
}
|
|
177
176
|
},
|
|
178
177
|
"node_modules/@azure/msal-node": {
|
|
179
|
-
"version": "
|
|
180
|
-
"resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-
|
|
181
|
-
"integrity": "sha512-
|
|
182
|
-
"license": "MIT",
|
|
178
|
+
"version": "1.18.1",
|
|
179
|
+
"resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-1.18.1.tgz",
|
|
180
|
+
"integrity": "sha512-B4kUOWJoN4vD8b3pGJ9Q9mIZhaDb8EnQM1aN0x1otlQgTfzDvEk6rWc6fy8uGdtXqcNddBtiXdc4oRiItroVkA==",
|
|
183
181
|
"dependencies": {
|
|
184
|
-
"@azure/msal-common": "
|
|
182
|
+
"@azure/msal-common": "13.2.1",
|
|
185
183
|
"jsonwebtoken": "^9.0.0",
|
|
186
184
|
"uuid": "^8.3.0"
|
|
187
185
|
},
|
|
188
186
|
"engines": {
|
|
189
|
-
"node": "
|
|
187
|
+
"node": "10 || 12 || 14 || 16 || 18"
|
|
190
188
|
}
|
|
191
189
|
},
|
|
192
190
|
"node_modules/@azure/msal-node/node_modules/uuid": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365-spfx-toolkit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "CommonJS version of CLI for Microsoft 365 for SPFx Toolkit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -164,8 +164,8 @@
|
|
|
164
164
|
"Zachariassen Laksafoss, Trygvi <trygvi.laksafoss@gmail.com>"
|
|
165
165
|
],
|
|
166
166
|
"dependencies": {
|
|
167
|
-
"@azure/msal-common": "^
|
|
168
|
-
"@azure/msal-node": "^
|
|
167
|
+
"@azure/msal-common": "^13.2.1",
|
|
168
|
+
"@azure/msal-node": "^1.17.3",
|
|
169
169
|
"@xmldom/xmldom": "^0.8.8",
|
|
170
170
|
"adaptive-expressions": "^4.20.0",
|
|
171
171
|
"adaptivecards": "^2.11.3",
|