Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
fix: remove node globals
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias authored and vmx committed Apr 21, 2020
1 parent 79adbe8 commit 98d9ac6
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
},
"dependencies": {
"cids": "~0.8.0",
"buffer": "^5.5.0",
"class-is": "^1.1.0",
"multicodec": "^1.0.0",
"multihashing-async": "~0.8.0",
Expand Down
1 change: 1 addition & 0 deletions src/dag-link/dagLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const CID = require('cids')
const withIs = require('class-is')
const { Buffer } = require('buffer')

// Link represents an IPFS Merkle DAG Link between Nodes.
class DAGLink {
Expand Down
1 change: 1 addition & 0 deletions src/dag-node/dagNode.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict'

const withIs = require('class-is')
const { Buffer } = require('buffer')
const sortLinks = require('./sortLinks')
const DAGLink = require('../dag-link/dagLink')
const { serializeDAGNode } = require('../serialize.js')
Expand Down
1 change: 1 addition & 0 deletions src/dag-node/rmLink.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict'

const CID = require('cids')
const { Buffer } = require('buffer')

const rmLink = (dagNode, nameOrCid) => {
// It's a name
Expand Down
1 change: 1 addition & 0 deletions src/dag-node/sortLinks.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict'

const sort = require('stable')
const { Buffer } = require('buffer')

const linkSort = (a, b) => {
return Buffer.compare(a.nameAsBuffer, b.nameAsBuffer)
Expand Down
1 change: 1 addition & 0 deletions src/util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'

const { Buffer } = require('buffer')
const protons = require('protons')
const proto = protons(require('./dag.proto'))
const DAGLink = require('./dag-link/dagLink')
Expand Down
1 change: 1 addition & 0 deletions test/dag-link-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
'use strict'

const chai = require('chai')
const { Buffer } = require('buffer')
const dirtyChai = require('dirty-chai')
const expect = chai.expect
chai.use(dirtyChai)
Expand Down
1 change: 1 addition & 0 deletions test/dag-node-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
'use strict'

const chai = require('chai')
const { Buffer } = require('buffer')
const dirtyChai = require('dirty-chai')
const expect = chai.expect
chai.use(dirtyChai)
Expand Down
1 change: 1 addition & 0 deletions test/resolver.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
'use strict'

const chai = require('chai')
const { Buffer } = require('buffer')
const dirtyChai = require('dirty-chai')
const expect = chai.expect
chai.use(dirtyChai)
Expand Down
1 change: 1 addition & 0 deletions test/util.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
'use strict'

const CID = require('cids')
const { Buffer } = require('buffer')
const chai = require('chai')
const dirtyChai = require('dirty-chai')
const expect = chai.expect
Expand Down

0 comments on commit 98d9ac6

Please sign in to comment.