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

ipfs-api

Package Overview
Dependencies
Maintainers
4
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.4 to 1.1.6

test/notes.org

13

index.js

@@ -16,6 +16,15 @@ 'use strict'

module.exports = function (host, port) {
if (!host) host = 'localhost'
module.exports = function (host_or_multiaddr, port) {
var host
if (!host_or_multiaddr) host = 'localhost'
if (!port) port = 5001
if (host_or_multiaddr.match('/')) {
// is a multiaddr
var parts = host_or_multiaddr.split('/')
host = parts[2]
port = parts[4]
}
function send (path, args, opts, files, buffer, cb) {

@@ -22,0 +31,0 @@ if (Array.isArray(path)) path = path.join('/')

3

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

@@ -18,2 +18,3 @@ "main": "index.js",

"standard": "^3.3.2",
"ipfsd-ctl": "0.1.5",
"pre-commit": "^1.0.6"

@@ -20,0 +21,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