Skip to content

Commit

Permalink
Breaking: replace default export with named export
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Nov 7, 2021
1 parent eb819a6 commit 7e9e467
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
## Usage

```js
const supports = require('level-supports')
const { supports } = require('level-supports')

db.supports = supports({
bufferKeys: true,
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

module.exports = function supports (...manifests) {
exports.supports = function supports (...manifests) {
const manifest = manifests.reduce((acc, m) => Object.assign(acc, m), {})

return Object.assign(manifest, {
Expand Down
2 changes: 1 addition & 1 deletion test/cloneable.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const supports = require('..')
const { supports } = require('..')

// Every object in a manifest must have a unique identity, to avoid accidental
// mutation. In supports() we only shallowly clone the manifest object itself
Expand Down
2 changes: 1 addition & 1 deletion test/self.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const test = require('tape')
const supports = require('..')
const { supports } = require('..')
const shape = require('./shape')
const cloneable = require('./cloneable')

Expand Down

0 comments on commit 7e9e467

Please sign in to comment.