Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,7 @@ dist

.DS_Store

.claude

lib
lib-esm
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
package-lock=false
ignore-scripts=true
33 changes: 17 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
],
"scripts": {
"check-types": "tsc --noEmit",
"clean": "rimraf lib",
"clean": "rimraf coverage lib",
"createSchema": "typescript-json-schema --refs false ./tsconfig.json FilterXYType > FilterXYSchema.json",
"eslint": "eslint . --cache",
"eslint-fix": "node --run eslint -- --fix",
"eslint": "eslint .",
"eslint-fix": "eslint . --fix",
"prepack": "npm run createSchema && npm run tsc",
"prettier": "prettier --check .",
"prettier-write": "prettier --write .",
"test": "npm run test-only && npm run eslint && npm run prettier && npm run check-types",
"test": "npm run test-only && npm run check-types && npm run eslint && npm run prettier",
"test-only": "vitest run --coverage",
"tsc": "npm run clean && npm run tsc-build",
"tsc-build": "tsc --project tsconfig.build.json"
Expand All @@ -37,23 +37,24 @@
"url": "https://github.com/mljs/signal-processing/issues"
},
"homepage": "https://github.com/mljs/signal-processing#readme",
"dependencies": {
"baselines": "^1.1.10",
"cheminfo-types": "^1.15.0",
"ml-gsd": "^14.2.0",
"ml-savitzky-golay-generalized": "^5.0.0",
"ml-spectra-processing": "^14.29.1"
},
"devDependencies": {
"@vitest/coverage-v8": "^4.1.5",
"@types/node": "^25.6.0",
"@vitest/coverage-istanbul": "^4.1.9",
"@zakodium/tsconfig": "^1.0.5",
"eslint": "^9.39.2",
"eslint-config-cheminfo-typescript": "^22.0.0",
"eslint-config-cheminfo-typescript": "^22.1.0",
"jest-matcher-deep-close-to": "^3.0.2",
"prettier": "^3.8.3",
"prettier": "^3.8.4",
"rimraf": "^6.1.3",
"typescript": "^6.0.3",
"typescript-json-schema": "^0.67.1",
"vitest": "^4.1.5"
},
"dependencies": {
"baselines": "^1.1.10",
"cheminfo-types": "^1.15.0",
"ml-gsd": "^13.1.1",
"ml-savitzky-golay-generalized": "^5.0.0",
"ml-spectra-processing": "^14.28.1"
"typescript-json-schema": "^0.67.4",
"vitest": "^4.1.9"
}
}
2 changes: 1 addition & 1 deletion src/filters/x/ensureGrowing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface EnsureGrowingFilter {

/**
* Ensure X values are strictly monotonic increasing
* http://www-groups.mcs.st-andrews.ac.uk/~john/analysis/Lectures/L8.html
* https://www-groups.mcs.st-andrews.ac.uk/~john/analysis/Lectures/L8.html
* @param data
*/
export function ensureGrowing(data: DataXY<Float64Array>): {
Expand Down
2 changes: 1 addition & 1 deletion src/filters/x/reverseIfNeeded.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface ReverseIfNeededFilter {

/**
* Ensure X values are strictly monotonic increasing
* http://www-groups.mcs.st-andrews.ac.uk/~john/analysis/Lectures/L8.html
* https://www-groups.mcs.st-andrews.ac.uk/~john/analysis/Lectures/L8.html
* @param data
*/
export function reverseIfNeeded(data: DataXY<Float64Array>): {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"extends": "@zakodium/tsconfig",
"compilerOptions": {
"noUncheckedIndexedAccess": false,
"outDir": "lib",
"noUncheckedIndexedAccess": false
"types": ["node"]
},
"include": ["src", "vite*.ts"]
}
4 changes: 4 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ export default defineConfig({
test: {
coverage: {
include: ['src/**'],
provider: 'istanbul',
},
setupFiles: ['vitest.setup.ts'],
snapshotFormat: {
maxOutputLength: Number.MAX_SAFE_INTEGER,
},
},
});
Loading