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

feathers-blob

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feathers-blob - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

20

lib/util.js

@@ -13,10 +13,24 @@ 'use strict';

var _from2String = require('from2-string');
var _from = require('from2');
var _from2String2 = _interopRequireDefault(_from2String);
var _from2 = _interopRequireDefault(_from);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// TODO publish to npm as `from2-buffer`
// create a stream from a buffer
// buffer -> stream
function fromBuffer(buffer) {
return (0, _from2String2.default)(buffer.toString());
//assert.ok(Buffer.isBuffer(buffer))
return (0, _from2.default)(function (size, next) {
if (buffer.length <= 0) {
return this.push(null);
}
var chunk = buffer.slice(0, size);
buffer = buffer.slice(size);
next(null, chunk);
});
}

@@ -23,0 +37,0 @@

4

package.json
{
"name": "feathers-blob",
"description": "Feathers blob service",
"version": "1.0.4",
"version": "1.0.5",
"homepage": "https://github.com/feathersjs/feathers-blob",

@@ -55,3 +55,3 @@ "main": "lib/",

"debug": "^2.2.0",
"from2-string": "^1.1.0",
"from2": "^2.1.1",
"mime-types": "^2.1.10",

@@ -58,0 +58,0 @@ "uberproto": "^1.2.0"

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