Skip to content

Commit 4a1c818

Browse files
committed
chore: use extracted utility functions
1 parent 14d9382 commit 4a1c818

File tree

4 files changed

+3
-90
lines changed

4 files changed

+3
-90
lines changed

lib/check-version-range.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { semverIntersect } from '@voxpelli/semver-set';
2-
import { omit, pick } from '@voxpelli/typed-utils';
2+
import { omit, pick, getObjectValueByPath, getStringValueByPath } from '@voxpelli/typed-utils';
33
import { validRange } from 'semver';
44

5-
import { getObjectValueByPath, getStringValueByPath } from './utils.js';
6-
75
/** @typedef {{ valid: boolean|undefined, suggested?: string|undefined, note: string|undefined }} VersionRangeItem */
86

97
/**

lib/fix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { readFile, writeFile } from 'node:fs/promises';
22
import path from 'node:path';
33

4-
import { getObjectValueByPath } from './utils.js';
4+
import { getObjectValueByPath } from '@voxpelli/typed-utils';
55

66
/**
77
* @param {string} content

lib/utils.js

Lines changed: 0 additions & 85 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
"dependencies": {
4747
"@voxpelli/semver-set": "^5.0.2",
48-
"@voxpelli/typed-utils": "^1.6.0",
48+
"@voxpelli/typed-utils": "^1.9.0",
4949
"is-glob": "^4.0.3",
5050
"list-installed": "^5.3.0",
5151
"picomatch": "^4.0.1",

0 commit comments

Comments
 (0)