Socket
Socket
Sign inDemoInstall

buster-configuration

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buster-configuration - npm Package Compare versions

Comparing version 0.7.6 to 0.8.1

.idea/buster-configuration.iml

1

lib/buster-configuration.js
var cgroup = require("./group");
var when = require("when");
var path = require("path");

@@ -4,0 +3,0 @@ var fileLoader = require("./file-loader");

var Path = require("path");
var url = require("url");
var fs = require("fs");
var crypto = require("crypto");
var _ = require("lodash");

@@ -134,9 +132,12 @@ var when = require("when");

function resourceSetFor(rs, group, section, done) {
rs.appendLoad(group[section]).then(function () {
group.emit("load:" + section, rs);
rs.whenAllAdded(function () { done(null, rs); }, done);
}, function (err) {
done(err);
});
function resourceSetFor(rsp, group, section, done) {
when.resolve(rsp)
.then(function (rs) {
rs.appendLoad(group[section]).then(function () {
group.emit("load:" + section, rs);
rs.whenAllAdded(function () { done(null, rs); }, done);
}, function (err) {
done(err);
});
});
}

@@ -163,9 +164,12 @@

when.all(results).then(function () {
rs.concat.apply(rs, results).whenAllAdded(
function (resourceSet) {
group.emit("load:resources", resourceSet);
resourceSet.whenAllAdded(done.bind(null, null), done);
},
done
);
when.resolve(rs.concat.apply(rs, results))
.then(function (rs) {
rs.whenAllAdded(
function (resourceSet) {
group.emit("load:resources", resourceSet);
resourceSet.whenAllAdded(done.bind(null, null), done);
},
done
);
});
}, done);

@@ -172,0 +176,0 @@ });

{
"name": "buster-configuration",
"version": "0.7.6",
"description": "Groks the buster.js configuration file, including resource loading, file globbing, grouped test configs and more",
"homepage": "http://busterjs.org/buster-configuration",
"author": {
"name": "Christian Johansen",
"email": "christian@cjohansen.no",
"url": "http://cjohansen.no"
"name": "buster-configuration",
"version": "0.8.1",
"description": "Groks the buster.js configuration file, including resource loading, file globbing, grouped test configs and more",
"homepage": "http://busterjs.org/buster-configuration",
"author": {
"name": "Christian Johansen",
"email": "christian@cjohansen.no",
"url": "http://cjohansen.no"
},
"contributors": [
{
"name": "August Lilleaas",
"email": "august.lilleaas@gmail.com",
"url": "http://augustl.com"
},
"contributors": [{
"name": "August Lilleaas",
"email": "august.lilleaas@gmail.com",
"url": "http://augustl.com"
}, {
"name": "Daniel Wittner",
"email": "d.wittner@gmx.de",
"url": "https://github.com/dwittner"
}, {
"name": "Elliot Winkler",
"email": "elliot.winkler@gmail.com"
}, {
"name": "Sam Riley",
"email": "samriley@hotmail.co.uk"
}, {
"name": "Stein Magnus Jodal",
"email": "stein.magnus@jodal.no",
"url": "http://jodal.no"
}],
"main": "./lib/buster-configuration",
"repository": {
"type": "git",
"url": "https://github.com/busterjs/buster-configuration.git"
{
"name": "Daniel Wittner",
"email": "d.wittner@gmx.de",
"url": "https://github.com/dwittner"
},
"bin": {
"buster-configuration": "./bin/buster-configuration"
{
"name": "Elliot Winkler",
"email": "elliot.winkler@gmail.com"
},
"scripts": {
"test": "node run-tests.js",
"test-debug": "node --debug-brk run-tests.js"
{
"name": "Sam Riley",
"email": "samriley@hotmail.co.uk"
},
"dependencies": {
"lodash": "~1.0",
"when": "https://github.com/cujojs/when/tarball/1.3.0",
"async": "~0.1",
"ramp-resources": "~1.0",
"glob": "~3.1",
"bane": "~1.0"
},
"devDependencies": {
"buster-node": "*",
"rimraf": "~1"
{
"name": "Stein Magnus Jodal",
"email": "stein.magnus@jodal.no",
"url": "http://jodal.no"
}
],
"main": "./lib/buster-configuration",
"license": "BSD-3-Clause",
"repository": {
"type": "git",
"url": "https://github.com/busterjs/buster-configuration.git"
},
"bin": {
"buster-configuration": "./bin/buster-configuration"
},
"scripts": {
"test": "node run-tests.js",
"test-debug": "node --debug-brk run-tests.js"
},
"engines": {
"node": ">= 4"
},
"dependencies": {
"lodash": "3.x",
"when": "3.x",
"async": "1.x",
"ramp-resources": "2.x",
"glob": "5.x",
"bane": "1.x"
},
"devDependencies": {
"buster-node": "0.7.x",
"rimraf": "2.x"
}
}

@@ -10,18 +10,22 @@ # buster-configuration

##Changelog
## Changelog
**0.7.6** (13.11.2014)
**0.8.1** (2015-Nov-26)
* Dependency updates, incl. majors for `lodash`, `when`, `async`, `ramp-resources`, `glob`
**0.7.6** (2014-Nov-13)
* Type of comment changed in binary to print given configuration file as JSON to console. [Feature request #388](https://github.com/busterjs/buster/issues/388)
**0.7.5** (31.10.2014)
**0.7.5** (2014-Oct-31)
* Binary added to print given configuration file as JSON to console. [Feature request #388](https://github.com/busterjs/buster/issues/388)
**0.7.4** (05.09.2014)
**0.7.4** (2014-Sep-05)
* fix for issue [#420 - Resources array isn't cloned for extending configuration groups](https://github.com/busterjs/buster/issues/420)
**0.7.3** (25.03.2014)
**0.7.3** (2014-Mar-25)
* feature [custom test beds](http://docs.busterjs.org/en/latest/overview/#custom-test-beds) added

@@ -33,3 +33,2 @@ var path = require("path");

this.loader.load("", done(function (err, config) {
console.log(err, config, "\n");
assert.defined(err);

@@ -91,3 +90,3 @@ assert.match(err.message,

this.loader.load([], done(function (err, config) {
refute.defined(err);
assert.isNull(err);
}));

@@ -94,0 +93,0 @@ };

@@ -260,7 +260,7 @@ var buster = require("buster-node");

group.resolve();
assert.equals(group.resources.length, 1);
assert.equals(group.resources[0].path, "/");
assert.equals(group.resources[0].file, "testbed.html");
return group.resolve().then(function () {
assert.equals(group.resources.length, 1);
assert.equals(group.resources[0].path, "/");
assert.equals(group.resources[0].file, "testbed.html");
});
},

@@ -267,0 +267,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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