diff options
Diffstat (limited to 'node_modules/readable-stream')
3 files changed, 4 insertions, 7 deletions
diff --git a/node_modules/readable-stream/node_modules/string_decoder/README.md b/node_modules/readable-stream/node_modules/string_decoder/README.md index 13d827d89..dc3a2d216 100644 --- a/node_modules/readable-stream/node_modules/string_decoder/README.md +++ b/node_modules/readable-stream/node_modules/string_decoder/README.md @@ -7,8 +7,6 @@ [![NPM](https://nodei.co/npm-dl/string_decoder.png?&months=6&height=3)](https://nodei.co/npm/string_decoder/) -[![Sauce Test Status](https://saucelabs.com/browser-matrix/string_decoder.svg)](https://saucelabs.com/u/string_decoder) - ```bash npm install --save string_decoder ``` diff --git a/node_modules/readable-stream/node_modules/string_decoder/lib/string_decoder.js b/node_modules/readable-stream/node_modules/string_decoder/lib/string_decoder.js index 696d7ab61..26fb94c34 100644 --- a/node_modules/readable-stream/node_modules/string_decoder/lib/string_decoder.js +++ b/node_modules/readable-stream/node_modules/string_decoder/lib/string_decoder.js @@ -1,7 +1,6 @@ 'use strict'; -var Buffer = require('buffer').Buffer; -var bufferShim = require('buffer-shims'); +var Buffer = require('safe-buffer').Buffer; var isEncoding = Buffer.isEncoding || function (encoding) { encoding = '' + encoding; @@ -78,7 +77,7 @@ function StringDecoder(encoding) { } this.lastNeed = 0; this.lastTotal = 0; - this.lastChar = bufferShim.allocUnsafe(nb); + this.lastChar = Buffer.allocUnsafe(nb); } StringDecoder.prototype.write = function (buf) { diff --git a/node_modules/readable-stream/node_modules/string_decoder/package.json b/node_modules/readable-stream/node_modules/string_decoder/package.json index 05ded2068..8978c6fe8 100644 --- a/node_modules/readable-stream/node_modules/string_decoder/package.json +++ b/node_modules/readable-stream/node_modules/string_decoder/package.json @@ -1,10 +1,10 @@ { "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" }, "devDependencies": { "babel-polyfill": "^6.23.0", |