Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ramp-resources

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ramp-resources - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

lib/resource-set.js

@@ -79,2 +79,8 @@ var _ = require("lodash");

return patterns.filter(function (pattern) {
// prevent exclude pattern to be interpreted as unmatched
if (pattern.charAt(0) === "!") {
return false;
}
pattern = pattern.replace(/^\/?/, "/");

@@ -81,0 +87,0 @@ return mm.match(paths, pattern, options).length === 0;

2

package.json
{
"name": "ramp-resources",
"version": "1.0.0",
"version": "1.0.1",
"description": "Virtual file systems for exposing files and other resources on e.g. web servers",

@@ -5,0 +5,0 @@ "homepage": "http://busterjs.org/docs/resources",

var buster = require("buster-node");
var assert = buster.assert;
var refute = buster.refute;
var fail = buster.referee.fail;
var rr = require("../lib/ramp-resources");

@@ -17,3 +18,5 @@ var Path = require("path");

return function () {
if (--num == 0) done();
if (--num === 0) {
done();
}
};

@@ -1011,2 +1014,9 @@ }

}));
},
"does not fail for unmatched exclude pattern": function (done) {
var paths = ["*.js", "!some-test.js"];
this.rs.appendLoad(paths).then(done(assert), done(function () {
fail("error callback should not be called!");
}));
}

@@ -1088,2 +1098,9 @@ },

}));
},
"does not fail for unmatched exclude pattern": function (done) {
var paths = ["*.js", "!some-test.js"];
this.rs.prependLoad(paths).then(done(assert), done(function () {
fail("error callback should not be called!");
}));
}

@@ -1090,0 +1107,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