Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
Depends on:

- [ ] ipfs/eslint-config-ipfs#4

BREAKING CHANGE: ipfs-repo dep update requires an database migration to v10
  • Loading branch information
achingbrain committed Jan 29, 2021
1 parent 41a00d4 commit 0ec5d82
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const errCode = require('err-code')
const { Blob } = require('ipfs-utils/src/globalthis')
const { Blob } = globalThis
const itPeekable = require('it-peekable')
const browserStreamToIt = require('browser-readablestream-to-it')
const all = require('it-all')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { Blob } = require('ipfs-utils/src/globalthis')
const { Blob } = globalThis

/**
* @param {any} obj
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { expect } = require('aegir/utils/chai')
const blobToIt = require('blob-to-it')
const uint8ArrayFromString = require('uint8arrays/from-string')
const all = require('it-all')
const { Blob, ReadableStream } = require('ipfs-utils/src/globalthis')
const { Blob, ReadableStream } = globalThis
const { isBrowser, isWebWorker, isElectronRenderer } = require('ipfs-utils/src/env')

let normalise = require('../../src/files/normalise-input')
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-core/test/create-node.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const IPFS = require('../')

// This gets replaced by `create-repo-browser.js` in the browser
const createTempRepo = require('./utils/create-repo-nodejs.js')
const { console } = require('ipfs-utils/src/globalthis')
const { console } = globalThis

describe('create node', function () {
let tempRepo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// version and fail.
const normaliseInput = require('ipfs-core-utils/src/files/normalise-input/index.browser')
const modeToString = require('./mode-to-string')
const { File, FormData } = require('ipfs-utils/src/globalthis')
const { File, FormData } = globalThis

async function multipartRequest (source = '', abortController, headers = {}) {
const parts = []
Expand Down
1 change: 0 additions & 1 deletion packages/ipfs-http-client/test/constructor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const multiaddr = require('multiaddr')
const { expect } = require('aegir/utils/chai')
const f = require('./utils/factory')()
const ipfsClient = require('../src/index.js')
const globalThis = require('ipfs-utils/src/globalthis')
const { isBrowser } = require('ipfs-utils/src/env')

describe('ipfs-http-client constructor tests', () => {
Expand Down
1 change: 0 additions & 1 deletion packages/ipfs-message-port-server/test/transfer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

/* eslint-env mocha */
const { encodeCID } = require('ipfs-message-port-protocol/src/cid')
const globalThis = require('ipfs-utils/src/globalthis')

const CID = require('cids')
const { Server } = require('../src/server')
Expand Down

0 comments on commit 0ec5d82

Please sign in to comment.