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

chai-nodules-helpers

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-nodules-helpers - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

12

lib/helpers/terror.js

@@ -13,11 +13,5 @@ module.exports = function(chai) {

try {
switch (typeof spec) {
case 'string':
// get code by code name
spec = ErrClass.CODES[spec];
/* falls through */
case 'number':
// get message template by code and convert it to appropriate regexp
spec = new RegExp('^' + ErrClass.MESSAGES[spec].replace(/%.*%/g, '.*') + '$', 'ig');
// in other cases keep the spec as is
if (typeof spec === 'string') {
// get message template by code and convert it to appropriate regexp
spec = new RegExp('^' + ErrClass.MESSAGES[spec].replace(/%.*%/g, '.*') + '$', 'ig');
}

@@ -24,0 +18,0 @@ } catch (error) {

{
"name": "chai-nodules-helpers",
"version": "2.0.0",
"version": "2.0.1",
"description": "nodules-specific assertion helpers for chai",

@@ -5,0 +5,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