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

ipfs-api

Package Overview
Dependencies
Maintainers
3
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipfs-api - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

21

index.js

@@ -27,5 +27,6 @@ var fs = require('fs');

var contentType = 'application/json';
if(files) {
var boundary = randomString();
var contentType = 'multipart/form-data; boundary=' + boundary;
contentType = 'multipart/form-data; boundary=' + boundary;
}

@@ -233,4 +234,18 @@

pin: {
add: argCommand('pin/add'),
remove: argCommand('pin/rm'),
add: function(hash, opts, cb) {
if(typeof opts === 'function') {
cb = opts;
opts = null;
}
send('pin/add', hash, opts, null, cb);
},
remove: function(hash, opts, cb) {
if(typeof opts === 'function') {
cb = opts;
opts = null;
}
send('pin/rm', hash, opts, null, cb);
},
list: function(type, cb) {

@@ -237,0 +252,0 @@ if(typeof type === 'function') {

2

package.json
{
"name": "ipfs-api",
"version": "1.1.2",
"version": "1.2.0",
"description": "A client library for the IPFS API",

@@ -5,0 +5,0 @@ "main": "index.js",

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