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

feathers-blob

Package Overview
Dependencies
Maintainers
3
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.5 to 1.1.0

3

lib/index.js

@@ -77,2 +77,3 @@ 'use strict';

value: function create(body, params, cb) {
var id = body.id;
var uri = body.uri;

@@ -87,3 +88,3 @@

var ext = _mimeTypes2.default.extension(contentType);
var id = hash + '.' + ext;
id = id || hash + '.' + ext;

@@ -90,0 +91,0 @@ (0, _util.fromBuffer)(buffer).pipe(this.Model.createWriteStream({

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

@@ -6,0 +6,0 @@ "main": "lib/",

@@ -29,2 +29,9 @@ # feathers-blob

Optionally, you can specify in the `body` the blob `key` which can be the file
path where you want to store the file, otherwise it would default to
`${hash(content)}.${extension(contentType)}`.
**Tip**: You can use feathers hooks to customize the `id`. You might not want the
client-side to write whereever they want.
returns output 'data' of the form:

@@ -31,0 +38,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