0.6.1 move to native esm

master
Kebler Network System Administrator 2021-04-23 18:17:05 -07:00
parent 882aa08424
commit 5d15797fcf
4 changed files with 15 additions and 15 deletions

View File

@ -1,11 +1,12 @@
{
"name": "@uci-utils/type",
"version": "0.5.1",
"version": "0.6.1",
"description": "A variable type check and casting utility - extension of typechecker package plus type casting",
"main": "src/",
"main": "src/index.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"
@ -30,13 +31,12 @@
},
"homepage": "https://github.com/uCOMmandIt/uci-utils#readme",
"dependencies": {
"@uci-utils/to-boolean": "^0.1.5",
"typechecker": "^6.3.0"
"@uci-utils/to-boolean": "^0.2.0",
"typechecker": "^7.17.0"
},
"devDependencies": {
"chai": "^4.2.0",
"esm": "^3.2.25",
"mocha": "^7.1.0",
"nodemon": "^2.0.2"
"chai": "^4.3.4",
"mocha": "^8.3.2",
"nodemon": "^2.0.7"
}
}

View File

@ -1,6 +1,6 @@
// import { cast, typecast, } from './cast'
import check from './check'
import check from './check.js'
export * from './cast'
export { check, typeOf } from './check'
export * from './cast.js'
export { check, typeOf } from './check.js'
export default check // default is just the typechecker only

View File

@ -1,5 +1,5 @@
import assert from 'assert'
import { check, typecast, cast, toString, toBoolean } from '../src'
import { check, typecast, cast, toString, toBoolean } from '../src/index.js'
console.log(typecast.boolean)
console.log(toBoolean)

View File

@ -1,5 +1,5 @@
import { expect } from 'chai'
import u, {typeOf} from '../src'
import u, {typeOf} from '../src/index.js'
describe('Type Check Library - ', function () {