New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

code

Package Overview
Dependencies
Maintainers
5
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code - npm Package Compare versions

Comparing version 5.1.0 to 5.1.2

3

lib/index.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc