Skip to content

Commit 94ea009

Browse files
committed
deps
1 parent cef6dea commit 94ea009

3 files changed

Lines changed: 15 additions & 13 deletions

File tree

es5/transform.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
var o = require('object-tools');
44
var testValue = require('test-value');
5+
var where = testValue.where;
56
var arrayify = require('array-back');
67
var extract = require('reduce-extract');
78

@@ -35,7 +36,7 @@ function transform(data) {
3536
return doclet;
3637
});
3738

38-
var exported = json.filter(testValue.cb({ isExported: true }));
39+
var exported = json.filter(where({ isExported: true }));
3940
var newIDs = exported.map(function (d) {
4041
return d.id;
4142
});
@@ -352,7 +353,7 @@ function fixES6ConstructorMemberLongnames(data) {
352353
if (isES6Class(i)) {
353354
var es6constructor = getEs6Constructor(data, i);
354355
if (es6constructor) {
355-
var constructorChildren = data.filter(testValue.cb({ memberof: es6constructor.longname }));
356+
var constructorChildren = data.filter(where({ memberof: es6constructor.longname }));
356357
constructorChildren.forEach(function (child) {
357358
return child.memberof = i.longname;
358359
});
@@ -372,7 +373,7 @@ function convertIsEnumFlagToKind(doclet) {
372373

373374
function removeEnumChildren(json) {
374375
return json.filter(function (doclet) {
375-
var parent = json.find(testValue.cb({ id: doclet.memberof }));
376+
var parent = json.find(where({ id: doclet.memberof }));
376377
if (parent && parent.kind === 'enum') {
377378
return false;
378379
} else {

lib/transform.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict'
22
const o = require('object-tools')
33
const testValue = require('test-value')
4+
const where = testValue.where
45
const arrayify = require('array-back')
56
const extract = require('reduce-extract')
67

@@ -40,7 +41,7 @@ function transform (data) {
4041
return doclet
4142
})
4243

43-
const exported = json.filter(testValue.cb({ isExported: true }))
44+
const exported = json.filter(where({ isExported: true }))
4445
const newIDs = exported.map(d => d.id)
4546

4647
newIDs.forEach(function (newID) {
@@ -383,7 +384,7 @@ function fixES6ConstructorMemberLongnames (data) {
383384
if (isES6Class(i)) {
384385
const es6constructor = getEs6Constructor(data, i)
385386
if (es6constructor) {
386-
const constructorChildren = data.filter(testValue.cb({ memberof: es6constructor.longname }))
387+
const constructorChildren = data.filter(where({ memberof: es6constructor.longname }))
387388
constructorChildren.forEach(child => child.memberof = i.longname)
388389
}
389390
}
@@ -402,7 +403,7 @@ function convertIsEnumFlagToKind (doclet) {
402403
/* remove properties which have enum parents.. depends on convertIsEnumFlagToKind */
403404
function removeEnumChildren (json) {
404405
return json.filter(function (doclet) {
405-
var parent = json.find(testValue.cb({ id: doclet.memberof }))
406+
var parent = json.find(where({ id: doclet.memberof }))
406407
if (parent && parent.kind === 'enum') {
407408
return false
408409
} else {

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
"es5": "babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"
2323
},
2424
"dependencies": {
25-
"array-back": "^1.0.2",
26-
"core-js": "^2.1.3",
27-
"feature-detect-es6": "^1.2.0",
28-
"object-tools": "^2.0.5",
25+
"array-back": "^1.0.3",
26+
"core-js": "^2.4.1",
27+
"feature-detect-es6": "^1.3.1",
28+
"object-tools": "^2.0.6",
2929
"reduce-extract": "^1.0.0",
30-
"test-value": "^1.1.0"
30+
"test-value": "^2.0.0"
3131
},
3232
"devDependencies": {
33-
"babel-preset-es2015": "^6.6.0",
34-
"tape": "^4.5"
33+
"babel-preset-es2015": "^6.9.0",
34+
"tape": "^4.6"
3535
},
3636
"standard": {
3737
"ignore": [

0 commit comments

Comments
 (0)