@vscode/vsce 3.1.2-2 → 3.1.2-3

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/vsce.d.ts CHANGED
@@ -196,6 +196,21 @@ export declare interface IPublishOptions {
196
196
  */
197
197
  export declare type IPublishVSIXOptions = IPublishOptions & Pick<IPackageOptions, 'target'>;
198
198
 
199
+ /**
200
+ * Options for the `unpublish` function.
201
+ * @public
202
+ */
203
+ declare interface IUnpublishOptions extends IPublishOptions {
204
+ id?: string;
205
+ force?: boolean;
206
+ }
207
+
208
+ /**
209
+ * Options for the `unpublishVSIX` function.
210
+ * @public
211
+ */
212
+ export declare type IUnpublishVSIXOptions = IPublishOptions & Pick<IUnpublishOptions, 'id'>;
213
+
199
214
  /**
200
215
  * Lists the files included in the extension's package.
201
216
  * @public
@@ -224,4 +239,10 @@ export declare function publish(options?: IPublishOptions): Promise<any>;
224
239
  */
225
240
  export declare function publishVSIX(packagePath: string | string[], options?: IPublishVSIXOptions): Promise<any>;
226
241
 
242
+ /**
243
+ * Deletes a specific extension from the marketplace.
244
+ * @public
245
+ */
246
+ export declare function unpublishVSIX(options?: IUnpublishVSIXOptions): Promise<any>;
247
+
227
248
  export { }
package/out/api.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.publishVSIX = exports.listFiles = exports.publish = exports.createVSIX = exports.PackageManager = void 0;
3
+ exports.unpublishVSIX = exports.publishVSIX = exports.listFiles = exports.publish = exports.createVSIX = exports.PackageManager = void 0;
4
4
  const publish_1 = require("./publish");
5
5
  const package_1 = require("./package");
6
6
  /**
@@ -54,4 +54,12 @@ function publishVSIX(packagePath, options = {}) {
54
54
  });
55
55
  }
56
56
  exports.publishVSIX = publishVSIX;
57
+ /**
58
+ * Deletes a specific extension from the marketplace.
59
+ * @public
60
+ */
61
+ function unpublishVSIX(options = {}) {
62
+ return (0, publish_1.unpublish)({ force: true, ...options });
63
+ }
64
+ exports.unpublishVSIX = unpublishVSIX;
57
65
  //# sourceMappingURL=api.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/vsce",
3
- "version": "3.1.2-2",
3
+ "version": "3.1.2-3",
4
4
  "description": "VS Code Extensions Manager",
5
5
  "repository": {
6
6
  "type": "git",