Skip to content

Commit

Permalink
Merge pull request #3 from denis99999/update-semver-package-and-fix-bug
Browse files Browse the repository at this point in the history
update semver package version to fix vulnerabilities and fix a bug
  • Loading branch information
koral-- authored Nov 26, 2024
2 parents d66159d + d9d9db5 commit 6392550
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 820 deletions.
4 changes: 2 additions & 2 deletions .semaphore/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ blocks:
- name: NPM publish
commands:
- checkout
- sem-version node 12
- sem-version node 22
- cache restore
- npm install
- npm publish --access public
Expand All @@ -16,4 +16,4 @@ blocks:
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
os_image: ubuntu2004
4 changes: 2 additions & 2 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: NPM Test
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
os_image: ubuntu2004
blocks:
- name: Test
task:
jobs:
- name: Test
commands:
- checkout
- sem-version node 12
- sem-version node 22
- cache restore
- npm install
- cache store
Expand Down
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ function verify (mod) {
}

try {
depPkg = mod.require(path.join(name, './package.json'))
depPkg = mod.require(path.join(ctx.dir, './node_modules/', name, './package.json'))
} catch (err) {
console.error(ERROR, type, util.format(
'%s is not installed',
chalk.cyan(name)
'%s is not installed (%s)',
chalk.cyan(name),
chalk.red(err.code)
))
return false
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devicefarmer/please-update-dependencies",
"version": "2.0.1",
"version": "2.0.2",
"description": "It checks that currently installed dependencies satisfy the requirements set in your package.json file",
"keywords": [
"dependencies",
Expand All @@ -24,7 +24,7 @@
},
"dependencies": {
"chalk": "^1.1.3",
"semver": "^5.3.0"
"semver": "^7.6.3"
},
"devDependencies": {
"eslint": "^3.9.1",
Expand Down
Loading

0 comments on commit 6392550

Please sign in to comment.