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.2 to 5.2.0

5

lib/index.js

@@ -395,2 +395,3 @@ 'use strict';

this.assert(thrown, 'throw an error', err);
return err;
}

@@ -424,2 +425,6 @@

if (thrown) {
internals.assert(this, arguments.length < 2 || message, 'Can not assert with invalid message argument type');
internals.assert(this, arguments.length < 1 || message !== null || typeof type === 'function', 'Can not assert with invalid type argument');
if (type) {

@@ -426,0 +431,0 @@ this.assert(thrown instanceof type, 'reject with ' + (type.name || 'provided type'));

2

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

@@ -6,0 +6,0 @@ "main": "lib/index.js",

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