Skip to content

Commit

Permalink
chore: use extracted utility functions
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Apr 19, 2024
1 parent 14d9382 commit 4a1c818
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 90 deletions.
4 changes: 1 addition & 3 deletions lib/check-version-range.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { semverIntersect } from '@voxpelli/semver-set';
import { omit, pick } from '@voxpelli/typed-utils';
import { omit, pick, getObjectValueByPath, getStringValueByPath } from '@voxpelli/typed-utils';
import { validRange } from 'semver';

import { getObjectValueByPath, getStringValueByPath } from './utils.js';

/** @typedef {{ valid: boolean|undefined, suggested?: string|undefined, note: string|undefined }} VersionRangeItem */

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/fix.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFile, writeFile } from 'node:fs/promises';
import path from 'node:path';

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

/**
* @param {string} content
Expand Down
85 changes: 0 additions & 85 deletions lib/utils.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"dependencies": {
"@voxpelli/semver-set": "^5.0.2",
"@voxpelli/typed-utils": "^1.6.0",
"@voxpelli/typed-utils": "^1.9.0",
"is-glob": "^4.0.3",
"list-installed": "^5.3.0",
"picomatch": "^4.0.1",
Expand Down

0 comments on commit 4a1c818

Please sign in to comment.