New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

detect-node-support

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-node-support - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2-alpha.1

8

lib/loader.js

@@ -97,3 +97,5 @@ 'use strict';

if (err.output && err.output.statusCode === 404) {
throw new Error(`${repository} does not contain a ${filename}`);
const error = new Error(`${repository} does not contain a ${filename}`);
error.code = 'ENOENT';
throw error;
}

@@ -130,6 +132,2 @@

if (!Fs.existsSync(fullPath)) {
return;
}
const buffer = Fs.readFileSync(fullPath);

@@ -136,0 +134,0 @@

@@ -81,6 +81,12 @@ 'use strict';

const buffer = await loadFile('.travis.yml');
try {
var buffer = await loadFile('.travis.yml');
}
catch (err) {
if (buffer === undefined) {
return;
if (err.code === 'ENOENT') {
return;
}
throw err;
}

@@ -87,0 +93,0 @@

{
"name": "detect-node-support",
"version": "1.1.1",
"version": "1.1.2-alpha.1",
"description": "List the Node.js versions supported by the package/repository",

@@ -35,3 +35,2 @@ "bin": {

"nock": "^12.0.1",
"semantic-release": "^17.0.4",
"sinon": "^9.0.0",

@@ -38,0 +37,0 @@ "tmp": "^0.1.0"

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