buster-configuration
Advanced tools
Comparing version 0.7.6 to 0.8.1
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 @@ }); |
104
package.json
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
HTTP dependency
Supply chain riskContains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.
Found 1 instance in 1 package
87386
32
1417
31
0
4
1
+ Addedasync@1.5.2(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbane@1.1.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedglob@5.0.15(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedlodash@3.10.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedramp-resources@2.0.2(transitive)
+ Addedwhen@3.7.8(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedasync@0.1.22(transitive)
- Removedbane@1.0.0(transitive)
- Removedglob@3.1.213.2.11(transitive)
- Removedgraceful-fs@1.2.3(transitive)
- Removedinherits@1.0.2(transitive)
- Removedlodash@0.5.21.0.2(transitive)
- Removedlru-cache@1.0.62.7.3(transitive)
- Removedminimatch@0.1.50.2.140.3.0(transitive)
- Removedramp-resources@1.0.5(transitive)
- Removedsigmund@1.0.1(transitive)
Updatedasync@1.x
Updatedbane@1.x
Updatedglob@5.x
Updatedlodash@3.x
Updatedramp-resources@2.x
Updatedwhen@3.x