From df4d13a8e5eb8a1c880bb7d961b1be7101791c6d Mon Sep 17 00:00:00 2001 From: "kebler.net" Date: Sat, 24 Apr 2021 18:42:32 -0700 Subject: [PATCH] 0.3.0 move to native esm --- package.json | 16 ++++++++-------- test/bind-funcs.test.js | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index b1cef40..521893a 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/test/bind-funcs.test.js b/test/bind-funcs.test.js index e0b7680..6a68b9a 100644 --- a/test/bind-funcs.test.js +++ b/test/bind-funcs.test.js @@ -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 () {