@pnp/cli-microsoft365-spfx-toolkit 1.4.0 → 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.
|
@@ -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,12 +1,12 @@
|
|
|
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
12
|
"@azure/msal-common": "^13.2.1",
|