@balena/sbvr-types
Advanced tools
Comparing version
@@ -7,2 +7,7 @@ # Change Log | ||
# v3.4.5 | ||
## (2021-09-07) | ||
* Convert tests to type checked javascript [Pagan Gazzard] | ||
# v3.4.4 | ||
@@ -9,0 +14,0 @@ ## (2021-06-30) |
{ | ||
"name": "@balena/sbvr-types", | ||
"version": "3.4.4", | ||
"version": "3.4.5-js-tests-5708e188a810d6d0ab7c2116243e39589a0955ef", | ||
"description": "SBVR type definitions.", | ||
"main": "out", | ||
"scripts": { | ||
"lint": "balena-lint test && balena-lint --typescript src", | ||
"pretest": "npm run lint && npm run prepare", | ||
"lint": "balena-lint -e js -e ts --typescript src test && npx tsc --noEmit --project tsconfig.js.json", | ||
"pretest": "npm run prepare", | ||
"test": "mocha", | ||
"posttest": "npm run lint", | ||
"prepublish": "require-npm4-to-publish", | ||
"prepare": "tsc", | ||
"prettify": "balena-lint --typescript --fix src" | ||
"prettify": "balena-lint -e js -e ts --typescript --fix src test" | ||
}, | ||
@@ -28,3 +29,7 @@ "repository": "https://github.com/balena-io-modules/sbvr-types.git", | ||
"@balena/lint": "^5.4.1", | ||
"@types/lodash": "^4.14.168", | ||
"@types/chai": "^4.2.21", | ||
"@types/chai-as-promised": "^7.1.4", | ||
"@types/chai-datetime": "^0.0.37", | ||
"@types/lodash": "^4.14.172", | ||
"@types/mocha": "^9.0.0", | ||
"bluebird": "^3.7.2", | ||
@@ -34,9 +39,9 @@ "chai": "^4.3.4", | ||
"chai-datetime": "^1.8.0", | ||
"coffeescript": "^2.5.1", | ||
"husky": "^4.3.8", | ||
"lint-staged": "^10.5.4", | ||
"lint-staged": "^11.1.2", | ||
"lodash": "^4.17.21", | ||
"mocha": "^8.4.0", | ||
"mocha": "^9.1.1", | ||
"require-npm4-to-publish": "^1.0.0", | ||
"typescript": "^4.2.3" | ||
"ts-node": "^10.2.1", | ||
"typescript": "^4.4.2" | ||
}, | ||
@@ -52,4 +57,4 @@ "husky": { | ||
], | ||
"*.coffee": [ | ||
"balena-lint" | ||
"*.js": [ | ||
"balena-lint --typescript --fix" | ||
] | ||
@@ -60,5 +65,8 @@ }, | ||
"recursive": true, | ||
"require": "coffeescript/register", | ||
"_": "test/**/*.coffee" | ||
"require": "ts-node/register/transpile-only", | ||
"_": "test/**/*.js" | ||
}, | ||
"versionist": { | ||
"publishedAt": "2021-09-07T16:43:40.117Z" | ||
} | ||
} |
@@ -30,5 +30,5 @@ import * as TypeUtils from '../type-utils'; | ||
return new Buffer(value, 'hex'); | ||
} catch (e) { | ||
} catch (e: any) { | ||
throw new Error(`could not be converted to binary: ${e.message}`); | ||
} | ||
}); |
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"target": "es2018", | ||
"strict": true, | ||
"noImplicitAny": true, | ||
"noUnusedParameters": true, | ||
"noUnusedLocals": true, | ||
"outDir": "out/", | ||
"preserveConstEnums": true, | ||
"removeComments": true, | ||
"rootDir": "src", | ||
"sourceMap": true, | ||
"target": "es2018", | ||
"declaration": true, | ||
"skipLibCheck": true, | ||
"resolveJsonModule": true | ||
"rootDir": "src", | ||
"outDir": "out", | ||
"allowJs": true | ||
}, | ||
"include": [ | ||
"src/**/*.ts" | ||
"src/**/*" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
102204
1.02%92
1.1%1637
1.17%17
30.77%2
100%