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

neuron-pkg

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neuron-pkg - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

index.js

@@ -15,2 +15,6 @@ 'use strict';

function parse (id) {
if (!id) {
throw new TypeError('`id` must be a string.');
}
var match = id.match(REGEX_PARSE_ID);

@@ -17,0 +21,0 @@ var name = match[1];

2

package.json
{
"name": "neuron-pkg",
"version": "0.1.0",
"version": "0.1.1",
"description": "Parses neuron package id into name, version and path.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -74,1 +74,14 @@ 'use strict';

});
describe("error", function(){
it("should throw error if id is not a string", function(){
var error;
try {
pkg();
} catch(e) {
error = e;
}
expect(error).not.to.equal();
});
});
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