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

string_decoder

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string_decoder - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

lib/string_decoder.js
'use strict';
var Buffer = require('buffer').Buffer;
var bufferShim = require('buffer-shims');
var Buffer = require('safe-buffer').Buffer;

@@ -81,3 +80,3 @@ var isEncoding = Buffer.isEncoding || function (encoding) {

this.lastTotal = 0;
this.lastChar = bufferShim.allocUnsafe(nb);
this.lastChar = Buffer.allocUnsafe(nb);
}

@@ -84,0 +83,0 @@

4

package.json
{
"name": "string_decoder",
"version": "1.0.0",
"version": "1.0.1",
"description": "The string_decoder module from Node core",
"main": "lib/string_decoder.js",
"dependencies": {
"buffer-shims": "~1.0.0"
"safe-buffer": "^5.0.1"
},

@@ -9,0 +9,0 @@ "devDependencies": {

@@ -10,4 +10,2 @@ # string_decoder

[![Sauce Test Status](https://saucelabs.com/browser-matrix/string_decoder.svg)](https://saucelabs.com/u/string_decoder)
```bash

@@ -14,0 +12,0 @@ npm install --save string_decoder

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