diff --git a/package.json b/package.json index f91a6ab..2b5f4ac 100644 --- a/package.json +++ b/package.json @@ -41,16 +41,16 @@ }, "homepage": "https://github.com/mljs/regression-simple-linear#readme", "devDependencies": { - "@vitest/coverage-v8": "^0.34.1", - "eslint": "^8.47.0", - "eslint-config-cheminfo-typescript": "^12.0.4", + "@vitest/coverage-v8": "^1.6.0", + "eslint": "^8.57.0", + "eslint-config-cheminfo-typescript": "^12.4.0", "prettier": "^3.0.1", - "rimraf": "^5.0.1", - "typescript": "^5.1.6", - "vitest": "^0.34.1" + "rimraf": "^5.0.7", + "typescript": "^5.4.5", + "vitest": "^1.6.0" }, "dependencies": { - "cheminfo-types": "^1.7.2", - "ml-regression-base": "^3.0.0" + "cheminfo-types": "^1.7.3", + "ml-regression-base": "^4.0.0" } } diff --git a/src/index.ts b/src/index.ts index ae9d829..143e714 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,6 @@ import type { NumberArray } from 'cheminfo-types'; -import BaseRegression, { +import { + BaseRegression, checkArrayLength, maybeToPrecision, } from 'ml-regression-base'; diff --git a/tsconfig.json b/tsconfig.json index dd2cb73..005eb7f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,14 +1,15 @@ { - "compilerOptions": { - "allowJs": true, - "checkJs":true, - "esModuleInterop": true, - "moduleResolution": "node", - "outDir": "lib", - "sourceMap": true, - "strict": true, - "target": "es2020", - "noImplicitAny": false - }, - "include": ["./src/**/*"] - } + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "esModuleInterop": true, + "skipLibCheck": true, + "moduleResolution": "node", + "outDir": "lib", + "sourceMap": true, + "strict": true, + "target": "es2020", + "noImplicitAny": false + }, + "include": ["./src/**/*"] +}