Socket
Socket
Sign inDemoInstall

@microsoft/vscode-azext-utils

Package Overview
Dependencies
Maintainers
10
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/vscode-azext-utils - npm Package Compare versions

Comparing version 0.5.2 to 1.0.0

4

out/src/activityLog/Activity.js

@@ -17,3 +17,3 @@ "use strict";

exports.ActivityBase = exports.ActivityStatus = void 0;
const crypto_1 = require("crypto");
const uuid_1 = require("uuid");
const vscode_1 = require("vscode");

@@ -37,3 +37,3 @@ const parseError_1 = require("../parseError");

this.cancellationTokenSource = new vscode_1.CancellationTokenSource();
this.id = (0, crypto_1.randomUUID)();
this.id = (0, uuid_1.v4)();
this.task = task;

@@ -40,0 +40,0 @@ this.onStart = this._onStartEmitter.event;

@@ -8,3 +8,2 @@ "use strict";

exports.nonNullValueAndProp = exports.nonNullOrEmptyValue = exports.nonNullValue = exports.nonNullProp = void 0;
const util_1 = require("util");
/**

@@ -23,3 +22,3 @@ * Retrieves a property by name from an object and checks that it's not null and not undefined. It is strongly typed

function nonNullValue(value, propertyNameOrMessage) {
if ((0, util_1.isNullOrUndefined)(value)) {
if (isNullOrUndefined(value)) {
throw new Error('Internal error: Expected value to be neither null nor undefined'

@@ -51,2 +50,5 @@ + (propertyNameOrMessage ? `: ${propertyNameOrMessage}` : ''));

exports.nonNullValueAndProp = nonNullValueAndProp;
function isNullOrUndefined(value) {
return value === null || value === undefined;
}
//# sourceMappingURL=nonNull.js.map

@@ -17,8 +17,11 @@ "use strict";

exports.openUrl = void 0;
const open = require("open");
const vscode_1 = require("vscode");
function openUrl(url) {
return __awaiter(this, void 0, void 0, function* () {
// Using this functionality is blocked by https://github.com/Microsoft/vscode/issues/85930
// await vscode.commands.executeCommand('vscode.open', vscode.Uri.parse(url));
yield open(url);
// Workaround according to https://github.com/Microsoft/vscode/issues/85930
// When a string is passed to openExternal, it is not encoded by VS Code which seems
// to be what is causing issues with some URLs.
// https://github.com/microsoft/vscode/blob/2edb004e8386b2a86b26e8f30ea6969f4f26ffa7/src/vs/editor/browser/services/openerService.ts#L223-L226
// So if a URI is causing errors, try passing a string
yield vscode_1.env.openExternal(url);
});

@@ -25,0 +28,0 @@ }

{
"name": "@microsoft/vscode-azext-utils",
"author": "Microsoft Corporation",
"version": "0.5.2",
"version": "1.0.0",
"description": "Common UI tools for developing Azure extensions for VS Code",

@@ -40,6 +40,7 @@ "tags": [

"html-to-text": "^8.2.0",
"open": "^8.0.4",
"semver": "^7.3.7",
"uuid": "^9.0.0",
"vscode-nls": "^5.0.1",
"vscode-tas-client": "^0.1.47"
"vscode-tas-client": "^0.1.47",
"vscode-uri": "^3.0.6"
},

@@ -49,3 +50,3 @@ "devDependencies": {

"@microsoft/eslint-config-azuretools": "^0.2.0",
"@microsoft/vscode-azext-dev": "^0.2.0",
"@microsoft/vscode-azext-dev": "^1.0.0",
"@types/html-to-text": "^8.1.0",

@@ -55,2 +56,3 @@ "@types/mocha": "^7.0.2",

"@types/semver": "^7.3.9",
"@types/uuid": "^9.0.1",
"@types/vscode": "1.76.0",

@@ -57,0 +59,0 @@ "@typescript-eslint/eslint-plugin": "^5.53.0",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc