object-treeify
Advanced tools
Comparing version 1.1.29 to 1.1.30
"use strict"; | ||
const assert = require('assert'); | ||
// eslint-disable-next-line no-console | ||
const assert = console.assert; | ||
@@ -15,8 +16,9 @@ const buildCtx = opts => { | ||
}; | ||
assert(typeof ctx.joined === 'boolean'); | ||
assert(typeof ctx.spacerNoNeighbour === 'string'); | ||
assert(typeof ctx.spacerNeighbour === 'string'); | ||
assert(typeof ctx.keyNoNeighbour === 'string'); | ||
assert(typeof ctx.keyNeighbour === 'string'); | ||
assert(typeof ctx.sortFn === 'function' || ctx.sortFn === null); | ||
assert(Object.keys(ctx).length === 6, 'Unexpected Option(s) provided'); | ||
assert(typeof ctx.joined === 'boolean', 'Option "joined" has invalid format'); | ||
assert(typeof ctx.spacerNoNeighbour === 'string', 'Option "spacerNoNeighbour" has invalid format'); | ||
assert(typeof ctx.spacerNeighbour === 'string', 'Option "spacerNeighbour" has invalid format'); | ||
assert(typeof ctx.keyNoNeighbour === 'string', 'Option "keyNoNeighbour" has invalid format'); | ||
assert(typeof ctx.keyNeighbour === 'string', 'Option "keyNeighbour" has invalid format'); | ||
assert(typeof ctx.sortFn === 'function' || ctx.sortFn === null, 'Option "sortFn" has invalid format'); | ||
return ctx; | ||
@@ -23,0 +25,0 @@ }; |
{ | ||
"name": "object-treeify", | ||
"version": "1.1.29", | ||
"version": "1.1.30", | ||
"description": "Stringify Object as tree structure", | ||
@@ -47,12 +47,12 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@babel/cli": "7.12.1", | ||
"@babel/core": "7.12.3", | ||
"@babel/cli": "7.12.8", | ||
"@babel/core": "7.12.9", | ||
"@babel/register": "7.12.1", | ||
"@blackflux/eslint-plugin-rules": "1.3.40", | ||
"@blackflux/robo-config-plugin": "3.10.9", | ||
"@blackflux/eslint-plugin-rules": "1.3.42", | ||
"@blackflux/robo-config-plugin": "3.10.14", | ||
"babel-eslint": "10.1.0", | ||
"chai": "4.2.0", | ||
"coveralls": "3.1.0", | ||
"eslint": "7.11.0", | ||
"eslint-config-airbnb-base": "14.2.0", | ||
"eslint": "7.14.0", | ||
"eslint-config-airbnb-base": "14.2.1", | ||
"eslint-plugin-import": "2.22.1", | ||
@@ -62,6 +62,6 @@ "eslint-plugin-json": "2.1.2", | ||
"eslint-plugin-mocha": "8.0.0", | ||
"js-gardener": "2.0.177", | ||
"js-gardener": "2.0.181", | ||
"nyc": "15.1.0", | ||
"semantic-release": "17.2.1", | ||
"babel-preset-latest-node": "5.0.0" | ||
"semantic-release": "17.3.0", | ||
"babel-preset-latest-node": "5.1.1" | ||
}, | ||
@@ -68,0 +68,0 @@ "nyc": { |
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
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
9671
41