sudo-block
Advanced tools
Comparing version 4.0.0 to 5.0.0
/** | ||
Block users from running your app with root permissions. When a file containing this function is run with root permissions it will exit and show an error message telling the user how to fix the problem, so they don't have to run it with `sudo`. | ||
@param message - Custom message. | ||
@param message - A custom message. | ||
@@ -6,0 +6,0 @@ @example |
@@ -0,1 +1,2 @@ | ||
import process from 'node:process'; | ||
import chalk from 'chalk'; | ||
@@ -2,0 +3,0 @@ import isRoot from 'is-root'; |
{ | ||
"name": "sudo-block", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "Block users from running your app with root permissions", | ||
@@ -14,5 +14,8 @@ "license": "MIT", | ||
"type": "module", | ||
"exports": "./index.js", | ||
"exports": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"engines": { | ||
"node": ">=12" | ||
"node": ">=18" | ||
}, | ||
@@ -38,13 +41,13 @@ "scripts": { | ||
"dependencies": { | ||
"chalk": "^4.1.1", | ||
"is-docker": "^2.2.1", | ||
"chalk": "^5.3.0", | ||
"is-docker": "^3.0.0", | ||
"is-root": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^3.15.0", | ||
"ava": "^5.3.1", | ||
"import-fresh": "^3.3.0", | ||
"sinon": "^10.0.0", | ||
"tsd": "^0.14.0", | ||
"xo": "^0.39.1" | ||
"sinon": "^15.2.0", | ||
"tsd": "^0.29.0", | ||
"xo": "^0.56.0" | ||
} | ||
} |
@@ -9,5 +9,5 @@ # sudo-block | ||
```sh | ||
npm install sudo-block | ||
``` | ||
$ npm install sudo-block | ||
``` | ||
@@ -32,2 +32,2 @@ ## Usage | ||
Custom message. | ||
A custom message. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3702
25
+ Addedchalk@5.3.0(transitive)
+ Addedis-docker@3.0.0(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedis-docker@2.2.1(transitive)
- Removedsupports-color@7.2.0(transitive)
Updatedchalk@^5.3.0
Updatedis-docker@^3.0.0