@balena/sbvr-types
Advanced tools
Comparing version 7.0.1 to 7.0.2-build-ts-tests-71d0e6952a6de0ab78df9e2b30e94716c110154c-1
@@ -7,2 +7,7 @@ # Change Log | ||
# v7.0.2 | ||
## (2024-03-12) | ||
* Tests: convert to typescript [Pagan Gazzard] | ||
# v7.0.1 | ||
@@ -9,0 +14,0 @@ ## (2024-03-04) |
{ | ||
"name": "@balena/sbvr-types", | ||
"version": "7.0.1", | ||
"version": "7.0.2-build-ts-tests-71d0e6952a6de0ab78df9e2b30e94716c110154c-1", | ||
"description": "SBVR type definitions.", | ||
"main": "out", | ||
"scripts": { | ||
"lint": "balena-lint -e js -e ts src test && npx tsc --noEmit --project tsconfig.js.json", | ||
"lint-fix": "balena-lint --fix -e js -e ts src test", | ||
"lint": "balena-lint -t tsconfig.dev.json src test && npx tsc --noEmit --project tsconfig.dev.json", | ||
"lint-fix": "balena-lint --fix -t tsconfig.dev.json src test", | ||
"pretest": "npm run prepare", | ||
"test": "mocha", | ||
"posttest": "npm run lint", | ||
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\" && tsc", | ||
"prettify": "balena-lint -e js -e ts --fix src test" | ||
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\" && tsc" | ||
}, | ||
@@ -25,3 +24,3 @@ "repository": "https://github.com/balena-io-modules/sbvr-types.git", | ||
"@balena/abstract-sql-compiler": "^9.0.0", | ||
"@balena/lint": "^6.2.1", | ||
"@balena/lint": "^7.3.0", | ||
"@types/bcrypt": "^5.0.0", | ||
@@ -38,10 +37,7 @@ "@types/chai": "^4.3.4", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.3" | ||
"typescript": "^5.4.2" | ||
}, | ||
"lint-staged": { | ||
"*.ts": [ | ||
"balena-lint --fix" | ||
], | ||
"*.js": [ | ||
"balena-lint --fix" | ||
"balena-lint --fix -t tsconfig.dev.json" | ||
] | ||
@@ -53,3 +49,3 @@ }, | ||
"require": "ts-node/register/transpile-only", | ||
"_": "test/**/*.js" | ||
"_": "test/**/*" | ||
}, | ||
@@ -61,4 +57,4 @@ "engines": { | ||
"versionist": { | ||
"publishedAt": "2024-03-04T17:47:59.396Z" | ||
"publishedAt": "2024-03-12T12:43:43.221Z" | ||
} | ||
} |
@@ -6,2 +6,3 @@ import type { SbvrType } from './type-utils'; | ||
import * as BigSerial from './types/big-serial'; | ||
// eslint-disable-next-line id-denylist | ||
import * as Boolean from './types/boolean'; | ||
@@ -32,2 +33,3 @@ import * as CaseInsensitiveText from './types/case-insensitive-text'; | ||
'Big Serial': BigSerial, | ||
// eslint-disable-next-line id-denylist | ||
Boolean, | ||
@@ -34,0 +36,0 @@ 'Case Insensitive Text': CaseInsensitiveText, |
@@ -41,3 +41,3 @@ import * as TypeUtils from '../type-utils'; | ||
export const fetchProcessing = (data: number) => { | ||
// tslint:disable:no-bitwise | ||
/* eslint-disable no-bitwise */ | ||
return { | ||
@@ -49,3 +49,3 @@ r: (data >> 16) & 0xff, | ||
}; | ||
// tslint:enable:no-bitwise | ||
/* eslint-enable no-bitwise */ | ||
}; | ||
@@ -72,3 +72,3 @@ | ||
} | ||
// tslint:disable:no-bitwise | ||
/* eslint-disable no-bitwise */ | ||
switch (component.toLowerCase()) { | ||
@@ -94,3 +94,3 @@ case 'r': | ||
} | ||
// tslint:enable:no-bitwise | ||
/* eslint-enable no-bitwise */ | ||
}); | ||
@@ -97,0 +97,0 @@ } |
@@ -7,6 +7,4 @@ import type * as Bcrypt from 'bcrypt'; | ||
try { | ||
// tslint:disable-next-line:no-var-requires | ||
bcrypt = require('bcrypt'); | ||
} catch { | ||
// tslint:disable-next-line:no-var-requires | ||
bcrypt = require('bcryptjs'); | ||
@@ -13,0 +11,0 @@ } |
// We are using the P-H-C storing format: | ||
// https://github.com/P-H-C/phc-string-format/blob/master/phc-sf-spec.md | ||
import type * as Crypto from 'crypto'; | ||
import type * as Shajs from 'sha.js'; | ||
import * as TypeUtils from '../type-utils'; | ||
@@ -10,4 +7,4 @@ | ||
try { | ||
// tslint:disable-next-line:no-var-requires | ||
const crypto: typeof Crypto = require('crypto'); | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const crypto = require('crypto') as typeof import('crypto'); | ||
sha256 = (value) => { | ||
@@ -19,4 +16,4 @@ const hash = crypto.createHash('sha256'); | ||
} catch { | ||
// tslint:disable-next-line:no-var-requires | ||
const shajs: typeof Shajs = require('sha.js'); | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const shajs = require('sha.js') as typeof import('sha.js'); | ||
sha256 = (value) => { | ||
@@ -23,0 +20,0 @@ const hash = shajs('sha256'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
136164
2072
2