use-internet-connection-status 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -73,10 +73,10 @@ This project includes security and best practice configurations in the following
73
73
  Configuration file for npm/bun:
74
74
 
75
75
  ```ini
76
- ignoreScripts = true # Prevents scripts from running during installation
76
+ ignore-scripts = true # Prevents scripts from running during installation
77
77
  engine-strict = true # Fails if Node version doesn't satisfy the engines field in package.json
78
78
  audit = true # Reports vulnerabilities in dependencies after installation
79
- minimumReleaseAge = 10080 # Prevents installing packages released in the last 7 days
79
+ min-release-age = 10080 # Prevents installing packages released in the last 7 days
80
80
  ```
81
81
 
82
82
  ### `bunfig.toml`
@@ -85,25 +85,23 @@ Bun-specific configuration file:
85
85
 
86
86
  ```toml
87
87
  [install]
88
- ignoreScripts = true # Prevents scripts from running during installation
89
- audit = true # Reports vulnerabilities in dependencies
88
+ ignoreScripts = true # Prevents scripts from running during installation
89
+ audit = true # Reports vulnerabilities in dependencies
90
90
 
91
- [install.engines]
92
- strict = true # Strict engine version (Node >= 22)
91
+ minimumReleaseAge = 604800 # Prevents installing packages released in the last 7 days
93
92
 
94
- [install.resolution]
95
- minimumReleaseAge = "7d" # Prevents installing packages released in the last 7 days
93
+ minimumReleaseAgeExcludes = [] # These packages will bypass the 7-day minimum age requirement
96
94
  ```
97
95
 
98
96
  ### Configuration Explanation
99
97
 
100
98
  | Configuration | File | What it does |
101
99
  |--------------|------|--------------|
102
- | `ignoreScripts` | .npmrc, bunfig.toml | Prevents malicious scripts from running during `bun install`. Improves security. |
100
+ | `ignore-scripts` | .npmrc, bunfig.toml | Prevents malicious scripts from running during `bun install`. Improves security. |
103
101
  | `engine-strict` | .npmrc | Requires Node.js version to meet `engines` in package.json (>= 22). Prevents incompatible versions. |
104
102
  | `audit` | .npmrc, bunfig.toml | After installing, shows a summary of known vulnerabilities in dependencies. |
105
- | `strict` | bunfig.toml | Strict engine version for bun (equivalent to engine-strict). |
106
103
  | `minimumReleaseAge` | .npmrc, bunfig.toml | Prevents installing packages released in the last 7 days. Avoids vulnerabilities in new packages. |
104
+ | `minimumReleaseAgeExcludes` | bunfig.toml | Packages that will bypass the 7-day minimum age requirement |
107
105
 
108
106
  ### `.npmignore`
109
107
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "use-internet-connection-status",
3
3
  "description": "A React hook to check the internet status of the user.",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",