Socket
Socket
Sign inDemoInstall

jetpack-id

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

.travis.yml

2

index.js

@@ -35,3 +35,3 @@ /**

function isDomain (s) {
return /^[0-9a-zA-Z\-]*\@[0-9a-zA-Z\-]+(\.[0-9a-zA-Z\-]+)*$/.test(s);
return /^[0-9a-zA-Z\-_]*\@[0-9a-zA-Z\-]+(\.[0-9a-zA-Z\-]+)*$/.test(s);
}
{
"name": "jetpack-id",
"version": "0.0.1",
"version": "0.0.2",
"description": "Creates an ID from a Firefox Jetpack manifest",

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

@@ -17,2 +17,6 @@ var getID = require("../");

});
it("allows underscores in ID", function () {
var id = "my_addon";
expect(getID({ id: id })).to.be.equal(id + "@jetpack");
});
it("Returns valid name when `name` exists", function () {

@@ -19,0 +23,0 @@ var id = "my-addon";

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc