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

@filecoin-saturn/js-client

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@filecoin-saturn/js-client - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

dist/lib.node.js

2

package.json
{
"name": "@filecoin-saturn/js-client",
"version": "0.2.0",
"version": "0.3.0",
"description": "Filecoin Saturn Client",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/filecoin-saturn/js-client",

@@ -8,2 +8,3 @@ import { CID } from 'multiformats'

import { getJWT } from './utils/jwt.js'
import { isBrowserContext } from './utils/runtime.js'

@@ -38,4 +39,4 @@ export class Saturn {

this.reportingLogs = process?.env?.NODE_ENV !== 'development'
this.hasPerformanceAPI = typeof window !== 'undefined' && window?.performance
this.isBrowser = typeof window !== 'undefined'
this.hasPerformanceAPI = isBrowserContext && self?.performance
if (this.reportingLogs && this.hasPerformanceAPI) {

@@ -74,3 +75,3 @@ this._monitorPerformanceBuffer()

if (!this.isBrowser) {
if (!isBrowserContext) {
options.headers = {

@@ -179,3 +180,3 @@ ...(options.headers || {}),

if (this.isBrowser) {
if (isBrowserContext) {
url.searchParams.set('jwt', opts.jwt)

@@ -182,0 +183,0 @@ }

@@ -14,3 +14,3 @@ // @ts-check

export function indexedDbStorage () {
const indexedDbExists = (typeof window !== 'undefined') && window?.indexedDB
const indexedDbExists = (typeof self !== 'undefined') && self?.indexedDB
let dbPromise

@@ -17,0 +17,0 @@ if (indexedDbExists) {

Sorry, the diff of this file is too big to display

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