Comparing version 0.3.2 to 0.3.3
24
index.js
@@ -41,10 +41,20 @@ #!/usr/bin/env node | ||
function getEnabledApiProposals() { | ||
try { | ||
var packageJsonPath = path_1["default"].resolve(process.cwd(), './package.json'); | ||
var packageJson = JSON.parse(fs_1["default"].readFileSync(packageJsonPath, 'utf-8')); | ||
return Array.isArray(packageJson.enabledApiProposals) ? packageJson.enabledApiProposals : []; | ||
var dir = process.cwd(); | ||
while (true) { | ||
var packageJsonPath = path_1["default"].resolve(dir, './package.json'); | ||
try { | ||
var packageJson = JSON.parse(fs_1["default"].readFileSync(packageJsonPath, 'utf-8')); | ||
return Array.isArray(packageJson.enabledApiProposals) ? packageJson.enabledApiProposals : []; | ||
} | ||
catch (_a) { | ||
// continue | ||
} | ||
var next = path_1["default"].dirname(dir); | ||
if (next === dir) { | ||
return []; | ||
} | ||
else { | ||
dir = next; | ||
} | ||
} | ||
catch (_a) { | ||
return []; | ||
} | ||
} | ||
@@ -51,0 +61,0 @@ function handleDefaultDownload(gitTagOrBranch, force) { |
{ | ||
"name": "vscode-dts", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "CLI utility for downloading vscode.d.ts and vscode.proposed.d.ts", | ||
@@ -5,0 +5,0 @@ "author": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
11158
173