Comparing version 5.1.0 to 5.1.2
@@ -6,2 +6,3 @@ 'use strict'; | ||
const NodeUtil = require('util'); | ||
const Hoek = require('hoek'); | ||
@@ -262,3 +263,3 @@ | ||
internals.assert(this, typeof this._ref === 'object' || typeof this._ref === 'string', 'Can only assert empty on object, array or string'); | ||
internals.assert(this, (typeof this._ref === 'object' && this._ref !== null) || typeof this._ref === 'string', 'Can only assert length on object, array or string'); | ||
@@ -265,0 +266,0 @@ const length = this._ref.length !== undefined ? this._ref.length : Object.keys(this._ref).length; |
{ | ||
"name": "code", | ||
"description": "assertion library", | ||
"version": "5.1.0", | ||
"version": "5.1.2", | ||
"repository": "git://github.com/hapijs/code", | ||
@@ -13,9 +13,9 @@ "main": "lib/index.js", | ||
"engines": { | ||
"node": ">=8.0.0" | ||
"node": ">=8.9.0" | ||
}, | ||
"dependencies": { | ||
"hoek": "4.x.x" | ||
"hoek": "5.x.x" | ||
}, | ||
"devDependencies": { | ||
"lab": "14.x.x", | ||
"lab": "15.x.x", | ||
"markdown-toc": "1.1.x" | ||
@@ -22,0 +22,0 @@ }, |
19402
+ Addedhoek@5.0.4(transitive)
- Removedhoek@4.3.1(transitive)
Updatedhoek@5.x.x