Socket
Socket
Sign inDemoInstall

fast-redact

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-redact - npm Package Compare versions

Comparing version 1.1.9 to 1.1.10

4

lib/validator.js

@@ -9,3 +9,3 @@ 'use strict'

const {
ERR_CENSOR_MUST_BE_FUNCTION = () => 'fast-redact – censor may not be a function',
ERR_CENSOR_MUST_NOT_BE_FUNCTION = () => 'fast-redact – censor may not be a function',
ERR_PATHS_MUST_BE_STRINGS = () => 'fast-redact - Paths must be strings',

@@ -17,3 +17,3 @@ ERR_INVALID_PATH = (s) => `fast-redact – Invalid path (${s})`

if (typeof censor === 'function') {
throw Error(ERR_CENSOR_MUST_BE_FUNCTION())
throw Error(ERR_CENSOR_MUST_NOT_BE_FUNCTION())
}

@@ -20,0 +20,0 @@ paths.forEach((s) => {

{
"name": "fast-redact",
"version": "1.1.9",
"version": "1.1.10",
"description": "very fast object redaction",

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