Skip to content

Commit 5f4ca4f

Browse files
updated dependencies
1 parent d075118 commit 5f4ca4f

File tree

9 files changed

+966
-969
lines changed

9 files changed

+966
-969
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
"devDependencies": {
5151
"@types/json-schema": "^4.0.0",
5252
"bower": "^1.8.0",
53-
"chai": "^4.1.0",
53+
"chai": "^4.1.1",
5454
"coveralls": "^2.13.1",
55-
"eslint": "^4.3.0",
55+
"eslint": "^4.4.1",
5656
"http-server": "^0.10.0",
5757
"istanbul": "^0.4.5",
5858
"jscs": "^3.0.7",
@@ -66,18 +66,18 @@
6666
"karma-safari-launcher": "^1.0.0",
6767
"karma-sauce-launcher": "^1.1.0",
6868
"karma-verbose-reporter": "0.0.6",
69-
"mocha": "^3.4.2",
69+
"mocha": "^3.5.0",
7070
"npm-check-updates": "^2.12.1",
7171
"simplifyify": "^3.2.4",
72-
"sinon": "^2.4.1",
72+
"sinon": "^3.1.0",
7373
"version-bump-prompt": "^3.1.2"
7474
},
7575
"dependencies": {
7676
"call-me-maybe": "^1.0.1",
77-
"debug": "^2.6.8",
77+
"debug": "^3.0.0",
7878
"es6-promise": "^4.1.1",
7979
"js-yaml": "^3.9.1",
8080
"ono": "^4.0.2",
8181
"z-schema": "^3.18.2"
8282
}
83-
}
83+
}

www/bower_components/chai/.bower.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
"dependencies": {},
2525
"devDependencies": {},
2626
"homepage": "https://github.com/chaijs/chai",
27-
"version": "4.1.0",
28-
"_release": "4.1.0",
27+
"version": "4.1.1",
28+
"_release": "4.1.1",
2929
"_resolution": {
3030
"type": "version",
31-
"tag": "4.1.0",
32-
"commit": "df9073cb8eb2bb4dbb173dcaef29d4dda7ad76a2"
31+
"tag": "4.1.1",
32+
"commit": "02ddebd8f274ba94f9eb95c1c8c21176be6fe20c"
3333
},
3434
"_source": "https://github.com/chaijs/chai.git",
3535
"_target": "*",

www/bower_components/chai/chai.js

Lines changed: 75 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var used = [];
1414
* Chai version
1515
*/
1616

17-
exports.version = '4.1.0';
17+
exports.version = '4.1.1';
1818

1919
/*!
2020
* Assertion Error
@@ -830,53 +830,18 @@ module.exports = function (chai, _) {
830830

831831
function include (val, msg) {
832832
if (msg) flag(this, 'message', msg);
833-
834-
_.expectTypes(this, [
835-
'array', 'object', 'string',
836-
'map', 'set', 'weakset',
837-
]);
838-
833+
839834
var obj = flag(this, 'object')
840-
, objType = _.type(obj).toLowerCase();
841-
842-
// This block is for asserting a subset of properties in an object.
843-
if (objType === 'object') {
844-
var props = Object.keys(val)
845-
, negate = flag(this, 'negate')
846-
, firstErr = null
847-
, numErrs = 0;
848-
849-
props.forEach(function (prop) {
850-
var propAssertion = new Assertion(obj);
851-
_.transferFlags(this, propAssertion, true);
852-
flag(propAssertion, 'lockSsfi', true);
853-
854-
if (!negate || props.length === 1) {
855-
propAssertion.property(prop, val[prop]);
856-
return;
857-
}
858-
859-
try {
860-
propAssertion.property(prop, val[prop]);
861-
} catch (err) {
862-
if (!_.checkError.compatibleConstructor(err, AssertionError)) throw err;
863-
if (firstErr === null) firstErr = err;
864-
numErrs++;
865-
}
866-
}, this);
867-
868-
// When validating .not.include with multiple properties, we only want
869-
// to throw an assertion error if all of the properties are included,
870-
// in which case we throw the first property assertion error that we
871-
// encountered.
872-
if (negate && props.length > 1 && numErrs === props.length) throw firstErr;
835+
, objType = _.type(obj).toLowerCase()
836+
, flagMsg = flag(this, 'message')
837+
, negate = flag(this, 'negate')
838+
, ssfi = flag(this, 'ssfi')
839+
, isDeep = flag(this, 'deep')
840+
, descriptor = isDeep ? 'deep ' : '';
873841

874-
return;
875-
}
842+
flagMsg = flagMsg ? flagMsg + ': ' : '';
876843

877-
var isDeep = flag(this, 'deep')
878-
, descriptor = isDeep ? 'deep ' : ''
879-
, included = false;
844+
var included = false;
880845

881846
switch (objType) {
882847
case 'string':
@@ -885,10 +850,6 @@ module.exports = function (chai, _) {
885850

886851
case 'weakset':
887852
if (isDeep) {
888-
var flagMsg = flag(this, 'message')
889-
, ssfi = flag(this, 'ssfi');
890-
flagMsg = flagMsg ? flagMsg + ': ' : '';
891-
892853
throw new AssertionError(
893854
flagMsg + 'unable to use .deep.include with WeakSet',
894855
undefined,
@@ -925,6 +886,53 @@ module.exports = function (chai, _) {
925886
included = obj.indexOf(val) !== -1;
926887
}
927888
break;
889+
890+
default:
891+
// This block is for asserting a subset of properties in an object.
892+
// `_.expectTypes` isn't used here because `.include` should work with
893+
// objects with a custom `@@toStringTag`.
894+
if (val !== Object(val)) {
895+
throw new AssertionError(
896+
flagMsg + 'object tested must be an array, a map, an object,'
897+
+ ' a set, a string, or a weakset, but ' + objType + ' given',
898+
undefined,
899+
ssfi
900+
);
901+
}
902+
903+
var props = Object.keys(val)
904+
, firstErr = null
905+
, numErrs = 0;
906+
907+
props.forEach(function (prop) {
908+
var propAssertion = new Assertion(obj);
909+
_.transferFlags(this, propAssertion, true);
910+
flag(propAssertion, 'lockSsfi', true);
911+
912+
if (!negate || props.length === 1) {
913+
propAssertion.property(prop, val[prop]);
914+
return;
915+
}
916+
917+
try {
918+
propAssertion.property(prop, val[prop]);
919+
} catch (err) {
920+
if (!_.checkError.compatibleConstructor(err, AssertionError)) {
921+
throw err;
922+
}
923+
if (firstErr === null) firstErr = err;
924+
numErrs++;
925+
}
926+
}, this);
927+
928+
// When validating .not.include with multiple properties, we only want
929+
// to throw an assertion error if all of the properties are included,
930+
// in which case we throw the first property assertion error that we
931+
// encountered.
932+
if (negate && props.length > 1 && numErrs === props.length) {
933+
throw firstErr;
934+
}
935+
return;
928936
}
929937

930938
// Assert inclusion in collection or substring in a string.
@@ -1962,28 +1970,25 @@ module.exports = function (chai, _) {
19621970
var target = flag(this, 'object')
19631971
var ssfi = flag(this, 'ssfi');
19641972
var flagMsg = flag(this, 'message');
1965-
var validInstanceOfTarget = constructor === Object(constructor) && (
1966-
typeof constructor === 'function' ||
1967-
(typeof Symbol !== 'undefined' &&
1968-
typeof Symbol.hasInstance !== 'undefined' &&
1969-
Symbol.hasInstance in constructor)
1970-
);
19711973

1972-
if (!validInstanceOfTarget) {
1973-
flagMsg = flagMsg ? flagMsg + ': ' : '';
1974-
var constructorType = constructor === null ? 'null' : typeof constructor;
1975-
throw new AssertionError(
1976-
flagMsg + 'The instanceof assertion needs a constructor but ' + constructorType + ' was given.',
1977-
undefined,
1978-
ssfi
1979-
);
1974+
try {
1975+
var isInstanceOf = target instanceof constructor;
1976+
} catch (err) {
1977+
if (err instanceof TypeError) {
1978+
flagMsg = flagMsg ? flagMsg + ': ' : '';
1979+
throw new AssertionError(
1980+
flagMsg + 'The instanceof assertion needs a constructor but '
1981+
+ _.type(constructor) + ' was given.',
1982+
undefined,
1983+
ssfi
1984+
);
1985+
}
1986+
throw err;
19801987
}
19811988

1982-
var isInstanceOf = target instanceof constructor
1983-
19841989
var name = _.getName(constructor);
19851990
if (name === null) {
1986-
name = 'an unnamed constructor';
1991+
name = 'an unnamed constructor';
19871992
}
19881993

19891994
this.assert(
@@ -5762,10 +5767,10 @@ module.exports = function (chai, util) {
57625767
* You can also provide a single object instead of a `keys` array and its keys
57635768
* will be used as the expected set of keys.
57645769
*
5765-
* assert.hasAnyKey({foo: 1, bar: 2, baz: 3}, ['foo', 'iDontExist', 'baz']);
5766-
* assert.hasAnyKey({foo: 1, bar: 2, baz: 3}, {foo: 30, iDontExist: 99, baz: 1337]);
5767-
* assert.hasAnyKey(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{foo: 1}, 'thisKeyDoesNotExist']);
5768-
* assert.hasAnyKey(new Set([{foo: 'bar'}, 'anotherKey'], [{foo: 'bar'}, 'thisKeyDoesNotExist']);
5770+
* assert.hasAnyKeys({foo: 1, bar: 2, baz: 3}, ['foo', 'iDontExist', 'baz']);
5771+
* assert.hasAnyKeys({foo: 1, bar: 2, baz: 3}, {foo: 30, iDontExist: 99, baz: 1337});
5772+
* assert.hasAnyKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{foo: 1}, 'key']);
5773+
* assert.hasAnyKeys(new Set([{foo: 'bar'}, 'anotherKey']), [{foo: 'bar'}, 'anotherKey']);
57695774
*
57705775
* @name hasAnyKeys
57715776
* @param {Mixed} object

www/bower_components/chai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"Veselin Todorov <[email protected]>",
1818
"John Firebaugh <[email protected]>"
1919
],
20-
"version": "4.1.0",
20+
"version": "4.1.1",
2121
"repository": {
2222
"type": "git",
2323
"url": "https://github.com/chaijs/chai"

www/bower_components/mocha/.bower.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
"tap"
3636
],
3737
"license": "MIT",
38-
"version": "3.4.2",
39-
"_release": "3.4.2",
38+
"version": "3.5.0",
39+
"_release": "3.5.0",
4040
"_resolution": {
4141
"type": "version",
42-
"tag": "v3.4.2",
43-
"commit": "800963464bc4e0e09c2e85e8a9edd8d20a0bbf57"
42+
"tag": "v3.5.0",
43+
"commit": "f37b69bd455fc7ff324fcd9c75e0026ddc4a3af6"
4444
},
4545
"_source": "https://github.com/mochajs/mocha.git",
4646
"_target": "*",

www/bower_components/mocha/CHANGELOG.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,40 @@
1+
# 3.5.0 / 2017-07-31
2+
3+
## :newspaper: News
4+
5+
- Mocha now has a [code of conduct](https://github.com/mochajs/mocha/blob/master/.github/CODE_OF_CONDUCT.md) (thanks [@kungapal]!).
6+
- Old issues and PRs are now being marked "stale" by [Probot's "Stale" plugin](https://github.com/probot/stale). If an issue is marked as such, and you would like to see it remain open, simply add a new comment to the ticket or PR.
7+
- **WARNING**: Support for non-ES5-compliant environments will be dropped starting with version 4.0.0 of Mocha!
8+
9+
## :lock: Security Fixes
10+
11+
- [#2860]: Address [CVE-2015-8315](https://nodesecurity.io/advisories/46) via upgrade of [debug](https://npm.im/debug) ([@boneskull])
12+
13+
## :tada: Enhancements
14+
15+
- [#2696]: Add `--forbid-only` and `--forbid-pending` flags. Use these in CI or hooks to ensure tests aren't accidentally being skipped! ([@charlierudolph])
16+
- [#2813]: Support Node.js 8's `--napi-modules` flag ([@jupp0r])
17+
18+
## :nut_and_bolt: Other
19+
20+
- Various CI-and-test-related fixes and improvements ([@boneskull], [@dasilvacontin], [@PopradiArpad], [@Munter], [@ScottFreeCode])
21+
- "Officially" support Node.js 8 ([@elergy])
22+
23+
[#2860]: https://github.com/mochajs/mocha/pulls/2860
24+
[#2696]: https://github.com/mochajs/mocha/pulls/2696
25+
[#2813]: https://github.com/mochajs/mocha/pulls/2813
26+
[@charlierudolph]: https://github.com/charlierudolph
27+
[@PopradiArpad]: https://github.com/PopradiArpad
28+
[@kungapal]: https://github.com/kungapal
29+
[@elergy]: https://github.com/elergy
30+
[@jupp0r]: https://github.com/jupp0r
31+
132
# 3.4.2 / 2017-05-24
233

334
## :bug: Fixes
435

5-
- [#2802]: Remove call to deprecated os.tmpDir ([@makepanic])
6-
- [#2820]: Eagerly set process.exitCode ([@chrisleck])
36+
- [#2802]: Remove call to deprecated `os.tmpDir` ([@makepanic])
37+
- [#2820]: Eagerly set `process.exitCode` ([@chrisleck])
738

839
## :nut_and_bolt: Other
940

@@ -13,6 +44,7 @@
1344
[@makepanic]: https://github.com/makepanic
1445
[@Munter]: https://github.com/Munter
1546

47+
[#2778]: https://github.com/mochajs/mocha/pulls/2778
1648
[#2802]: https://github.com/mochajs/mocha/issues/2802
1749
[#2820]: https://github.com/mochajs/mocha/pull/2820
1850

0 commit comments

Comments
 (0)