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

Commit

Permalink
fix: add buffer require (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias authored Jun 18, 2020
1 parent 470ca47 commit d8aef0a
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"buffer": "^5.5.0"
},
"devDependencies": {
"aegir": "^22.0.0",
"aegir": "^24.0.0",
"benchmark": "^2.1.4",
"chai": "^4.1.2",
"dirty-chai": "^2.0.1",
Expand Down
1 change: 1 addition & 0 deletions src/base.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use strict'
const { Buffer } = require('buffer')

class Base {
constructor (name, code, implementation, alphabet) {
Expand Down
3 changes: 2 additions & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use strict'

const Base = require('./base.js')
const baseX = require('base-x')
const { Buffer } = require('buffer')
const Base = require('./base.js')
const rfc4648 = require('./rfc4648')

const identity = () => {
Expand Down
1 change: 1 addition & 0 deletions test/multibase.spec.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/spec-test1.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('aegir/utils/chai')
const multibase = require('../src')
const constants = require('../src/constants.js')
Expand Down
1 change: 1 addition & 0 deletions test/spec-test2.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('aegir/utils/chai')
const multibase = require('../src')
const constants = require('../src/constants.js')
Expand Down
1 change: 1 addition & 0 deletions test/spec-test3.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('aegir/utils/chai')
const multibase = require('../src')
const constants = require('../src/constants.js')
Expand Down
1 change: 1 addition & 0 deletions test/spec-test4.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('aegir/utils/chai')
const multibase = require('../src')
const constants = require('../src/constants.js')
Expand Down
1 change: 1 addition & 0 deletions test/spec-test5.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('aegir/utils/chai')
const multibase = require('../src')
const constants = require('../src/constants.js')
Expand Down

0 comments on commit d8aef0a

Please sign in to comment.