Huge News!Announcing our $40M Series B led by Abstract Ventures.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 4.0.0 to 4.1.0

10

lib/index.js

@@ -198,2 +198,10 @@ 'use strict';

internals.nan = function () {
return this.assert(Number.isNaN(this._ref), 'be NaN');
};
internals.addMethod('NaN', internals.nan);
internals.include = function (value) {

@@ -271,3 +279,3 @@

return this.assert(compare(this._ref, value), 'equal specified value', this._ref, value);
return this.assert(compare(this._ref, value), `equal specified value: ${internals.display(value)}`, this._ref, value);
};

@@ -274,0 +282,0 @@

6

package.json
{
"name": "code",
"description": "assertion library",
"version": "4.0.0",
"version": "4.1.0",
"repository": "git://github.com/hapijs/code",

@@ -19,4 +19,4 @@ "main": "lib/index.js",

"devDependencies": {
"lab": "11.x.x",
"markdown-toc": "0.12.x"
"lab": "13.x.x",
"markdown-toc": "1.1.x"
},

@@ -23,0 +23,0 @@ "scripts": {

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