Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nofilter

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nofilter - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

23

lib/index.js

@@ -5,32 +5,13 @@ 'use strict'

const { Buffer } = require('buffer')
const { getGlobalThis } = require('@offirmo/globalthis-ponyfill')
const TextDecoder = require('@cto.af/textdecoder')
let util = null
let customInspect = Symbol.for('nodejs.util.inspect.custom')
const gt = getGlobalThis()
let TD = gt.TextDecoder
try {
util = require('util')
customInspect = util.inspect.custom
/* istanbul ignore next */
if (typeof TD !== 'function') {
// node 10
TD = util.TextDecoder
}
} catch (ignored) {
// Do without
if (typeof TD !== 'function') {
class TextDecoder {
constructor(utfLabel, options) {
this.utfLabel = utfLabel
}
decode(buf) {
return buf.toString(this.utfLabel)
}
}
TD = TextDecoder
}
}
const td = new TD('utf8', {fatal: true, ignoreBOM: true})
const td = new TextDecoder('utf8', {fatal: true, ignoreBOM: true})

@@ -37,0 +18,0 @@ /**

8

package.json
{
"name": "nofilter",
"version": "2.0.2",
"version": "2.0.3",
"description": "Read and write a growable buffer as a stream",

@@ -50,8 +50,8 @@ "main": "lib/index.js",

},
"dependencies": {
"@cto.af/textdecoder": "^0.0.0"
},
"engines": {
"node": ">=10.18"
},
"dependencies": {
"@offirmo/globalthis-ponyfill": "^3.0.1"
}
}
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