New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@filecoin-shipyard/lotus-client-provider-browser

Package Overview
Dependencies
Maintainers
8
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@filecoin-shipyard/lotus-client-provider-browser - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

8

index.js

@@ -23,2 +23,4 @@ class BrowserProvider {

}
this.WebSocket = options.WebSocket || globalThis.WebSocket
this.fetch = options.fetch || globalThis.fetch
}

@@ -31,3 +33,3 @@

if (this.transport !== 'ws') return resolve()
this.ws = new WebSocket(this.url)
this.ws = new this.WebSocket(this.url)
// FIXME: reject on error or timeout

@@ -82,3 +84,3 @@ this.ws.onopen = function () {

}
const response = await fetch(this.httpUrl, {
const response = await this.fetch(this.httpUrl, {
method: 'POST',

@@ -229,3 +231,3 @@ headers,

}
const response = await fetch(this.importUrl, {
const response = await this.fetch(this.importUrl, {
method: 'PUT',

@@ -232,0 +234,0 @@ headers,

{
"name": "@filecoin-shipyard/lotus-client-provider-browser",
"version": "0.0.9",
"version": "0.0.10",
"author": "Jim Pick (@jimpick)",

@@ -8,4 +8,3 @@ "license": "(Apache-2.0 AND MIT)",

"globals": [
"WebSocket",
"fetch"
"globalThis"
]

@@ -31,4 +30,9 @@ },

"import": "./index.js"
},
"./dual-publish-tmp/package.json": "./dual-publish-tmp/package.json",
"./dual-publish-tmp": {
"require": "./dual-publish-tmp/index.cjs",
"import": "./dual-publish-tmp/index.js"
}
}
}

Sorry, the diff of this file is not supported yet

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