autolevel.js

Automatically use the right abstract-leveldown module for your configuration
git clone git://git.finwo.net/lib/autolevel.js
Log | Files | Refs | README | LICENSE

commit 7a0681acf27e86de5b2d393eae2005d9c4d29fac
parent 35578b661771b39cf76b59e8a2dac73a32477d79
Author: finwo <finwo@pm.me>
Date:   Sun,  4 Jul 2021 22:41:41 +0200

Removed need for esm during test

Diffstat:
Mpackage-lock.json | 16----------------
Mpackage.json | 1-
Mscripts/test.sh | 3+--
Msrc/index.test.js | 8++++----
4 files changed, 5 insertions(+), 23 deletions(-)

diff --git a/package-lock.json b/package-lock.json @@ -13,7 +13,6 @@ "url-parse": "^1.5.1" }, "devDependencies": { - "esm": "^3.2.25", "is-buffer": "^2.0.5", "rimraf": "^3.0.2", "tape": "^5.2.2" @@ -762,15 +761,6 @@ "node": ">=0.8.0" } }, - "node_modules/esm": { - "version": "3.2.25", - "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", - "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", @@ -3326,12 +3316,6 @@ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "optional": true }, - "esm": { - "version": "3.2.25", - "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", - "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==", - "dev": true - }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", diff --git a/package.json b/package.json @@ -15,7 +15,6 @@ "author": "Robin Bron <robin@finwo.nl>", "license": "MIT", "devDependencies": { - "esm": "^3.2.25", "is-buffer": "^2.0.5", "rimraf": "^3.0.2", "tape": "^5.2.2" diff --git a/scripts/test.sh b/scripts/test.sh @@ -6,7 +6,6 @@ cd "$(dirname "$0")/.." # Ensure our dependencies are installed [ -f "node_modules/.bin/tape" ] || npm install --save-dev tape -[ -d "node_modules/esm" ] || npm install --save-dev esm FILES=$(find -name '*.test.js' | egrep -v '\/node_modules\/') -node_modules/.bin/tape -r esm ${FILES} +node_modules/.bin/tape ${FILES} diff --git a/src/index.test.js b/src/index.test.js @@ -1,8 +1,8 @@ -import test from 'tape'; -import isBuffer from 'is-buffer'; +const test = require('tape'); +const isBuffer = require('is-buffer'); -import rimraf from 'rimraf'; -import absolutePath from './to-absolute-path'; +const rimraf = require('rimraf'); +const absolutePath = require('./to-absolute-path'); // Setup environment if ('object' !== typeof process) process = {};