Fix command line fails for nested properties (#2480)

* Fix command line fails for nested properties

* Update dependencies
This commit is contained in:
Veeck
2019-12-06 11:26:21 +01:00
committed by GitHub
parent 3675d7f683
commit 06c035c9e0
3 changed files with 672 additions and 530 deletions

View File

@@ -120,7 +120,13 @@ if (argv.o || argv.f) {
.replace(/-/g, ',')
.split(',')
.map(function(prop) {
var obj = _.find(source, {property: prop});
var obj = _.find(source, function(o) {
if (o.property instanceof Array) {
return o.property.includes(prop);
} else {
return o.property === prop;
}
});
// setClasses is technically a flag, not an option. But it is passed
// in as an option. Since it doesn't exist as an option we have to

1180
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -12,18 +12,18 @@
"markdown-it": "^10.0.0",
"mkdirp": "^0.5.1",
"requirejs": "^2.3.6",
"yargs": "^14.2.0"
"yargs": "^15.0.2"
},
"devDependencies": {
"@alrra/travis-scripts": "^3.0.1",
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.6.3",
"@babel/register": "^7.6.2",
"auto-changelog": "^1.16.1",
"@babel/core": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@babel/register": "^7.7.4",
"auto-changelog": "^1.16.2",
"chai": "^4.2.0",
"del": "^5.1.0",
"eslint": "^6.6.0",
"eslint-plugin-jsdoc": "^15.12.1",
"eslint": "^6.7.2",
"eslint-plugin-jsdoc": "^18.4.3",
"find-parent-dir": "^0.3.0",
"fs-extra": "^8.1.0",
"globby": "^10.0.1",