Skip to content

Commit

Permalink
fix: remove node globals (#9)
Browse files Browse the repository at this point in the history
* fix: remove node globals

related to ipfs/js-ipfs#2924

`npx aegir test --node false` works 🎉

* chore: update lock
  • Loading branch information
hugomrdias committed Mar 18, 2020
1 parent 063bf63 commit 4389d64
Show file tree
Hide file tree
Showing 10 changed files with 5,083 additions and 4,302 deletions.
9,366 changes: 5,070 additions & 4,296 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@
"homepage": "https://github.com/alanshaw/it-length-prefixed#readme",
"dependencies": {
"bl": "^4.0.0",
"buffer": "^5.4.3",
"buffer": "^5.5.0",
"varint": "^5.0.0"
},
"devDependencies": {
"aegir": "^20.3.1",
"aegir": "^21.4.0",
"chai": "^4.2.0",
"iso-random-stream": "^1.1.1",
"it-block": "^2.0.0",
"it-pipe": "^1.1.0",
"it-pushable": "^1.4.0",
"it-reader": "^2.0.0",
"p-defer": "^3.0.0",
"random-bytes": "^1.0.0",
"random-int": "^2.0.0",
"streaming-iterables": "^4.1.0"
},
Expand Down
1 change: 1 addition & 0 deletions src/decode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'

const { Buffer } = require('buffer')
const BufferList = require('bl/BufferList')
const varintDecode = require('./varint-decode')

Expand Down
1 change: 1 addition & 0 deletions src/varint-decode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'

const { Buffer } = require('buffer')
const Varint = require('varint')

const toBufferProxy = bl => new Proxy({}, {
Expand Down
2 changes: 1 addition & 1 deletion test/_helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { map } = require('streaming-iterables')
const randomInt = require('random-int')
const randomBytes = require('random-bytes')
const randomBytes = require('iso-random-stream/src/random')

module.exports.toBuffer = map(c => c.slice())
module.exports.times = (n, fn) => Array.from(Array(n), fn)
Expand Down
3 changes: 2 additions & 1 deletion test/decode.from-reader.spec.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/* eslint-env mocha */
'use strict'

const { Buffer } = require('buffer')
const pipe = require('it-pipe')
const Reader = require('it-reader')
const { expect } = require('chai')
const randomBytes = require('random-bytes')
const randomBytes = require('iso-random-stream/src/random')
const { collect } = require('streaming-iterables')
const Varint = require('varint')
const { toBuffer, times, someBytes } = require('./_helpers')
Expand Down
3 changes: 2 additions & 1 deletion test/decode.spec.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/* eslint-env mocha */
'use strict'

const { Buffer } = require('buffer')
const pipe = require('it-pipe')
const { expect } = require('chai')
const randomInt = require('random-int')
const randomBytes = require('random-bytes')
const randomBytes = require('iso-random-stream/src/random')
const { collect } = require('streaming-iterables')
const Varint = require('varint')
const BufferList = require('bl/BufferList')
Expand Down
1 change: 1 addition & 0 deletions test/e2e.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-env mocha */
'use strict'

const { Buffer } = require('buffer')
const { expect } = require('chai')
const Varint = require('varint')
const pipe = require('it-pipe')
Expand Down
1 change: 1 addition & 0 deletions test/encode.single.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-env mocha */
'use strict'

const { Buffer } = require('buffer')
const { expect } = require('chai')
const Varint = require('varint')
const { someBytes } = require('./_helpers')
Expand Down
1 change: 1 addition & 0 deletions test/encode.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-env mocha */
'use strict'

const { Buffer } = require('buffer')
const pipe = require('it-pipe')
const { expect } = require('chai')
const randomInt = require('random-int')
Expand Down

0 comments on commit 4389d64

Please sign in to comment.