move to native esm
master
Kebler Network System Administrator 2021-04-24 18:42:32 -07:00
parent db4dc7bea5
commit df4d13a8e5
2 changed files with 9 additions and 9 deletions

View File

@ -1,11 +1,12 @@
{
"name": "@uci-utils/bind-funcs",
"version": "0.2.4",
"version": "0.3.0",
"description": "Function to bind all functions to a context in an array or object",
"main": "src/bind-functions.js",
"type": "module",
"scripts": {
"test": "./node_modules/.bin/mocha -r esm --timeout 30000",
"testd": "UCI_ENV=dev ./node_modules/.bin/nodemon --exec './node_modules/.bin/mocha -r esm --timeout 30000' || exit 0",
"test": "./node_modules/.bin/mocha --timeout 30000",
"testd": "UCI_ENV=dev ./node_modules/.bin/nodemon --exec './node_modules/.bin/mocha --timeout 30000' || exit 0",
"testdd": "UCI_LOG_LEVEL='trace' npm run testd",
"testde": "UCI_LOG_LEVEL='warn' npm run testd",
"testl": "UCI_ENV=pro UCI_LOG_PATH=./test/test.log 0 npm run test || exit 0"
@ -28,14 +29,13 @@
},
"homepage": "https://github.com/uCOMmandIt/uci-utils#readme",
"dependencies": {
"@uci-utils/type": "^0.2.1",
"@uci-utils/type": "^0.6.1",
"clone": "^2.1.2",
"traverse": "^0.6.6"
},
"devDependencies": {
"chai": "^4.2.0",
"esm": "^3.2.25",
"mocha": "^6.2.0",
"nodemon": "^1.19.1"
"chai": "^4.3.4",
"mocha": "^8.3.2",
"nodemon": "^2.0.7"
}
}

View File

@ -2,7 +2,7 @@ let date = new Date(Date.now())
console.log('run:', date.getMinutes(), ':', date.getSeconds())
import { expect } from 'chai'
import { bindFuncs } from '../src/bind-functions'
import { bindFuncs } from '../src/bind-functions.js'
describe('Bind Functions Utility - ', function () {