You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever you initiate the update notifier and it's not within the interval threshold, it will asynchronously check with npm in the background for available updates, then persist the result. The next time the notifier is initiated, the result will be loaded into the `.update` property. This prevents any impact on your package startup performance.
75
-
The update check is done in a unref'ed [child process](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options). This means that if you call `process.exit`, the check will still be performed in its own process.
75
+
The update check is done in an unref'ed [child process](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options). This means that if you call `process.exit`, the check will still be performed in its own process.
76
76
77
77
The first time the user runs your app, it will check for an update, and even if an update is available, it will wait the specified `updateCheckInterval` before notifying the user. This is done to not be annoying to the user, but might surprise you as an implementer if you're testing whether it works. Check out [`example.js`](example.js) to quickly test out `update-notifier` and see how you can test that it works in your app.
78
78
@@ -129,7 +129,7 @@ Returns an `object` with:
129
129
130
130
-`latest`*(string)* - Latest version.
131
131
-`current`*(string)* - Current version.
132
-
-`type`*(string)* - Type of current update. Possible values: `latest`, `major`, `minor`, `patch`, `prerelease`, `build`.
132
+
-`type`*(string)* - Type of the current update. Possible values: `latest`, `major`, `minor`, `patch`, `prerelease`, `build`.
133
133
-`name`*(string)* - Package name.
134
134
135
135
### notifier.notify(options?)
@@ -147,7 +147,7 @@ Type: `object`
147
147
Type: `boolean`\
148
148
Default: `true`
149
149
150
-
Defer showing the notification to after the process has exited.
150
+
Defer showing the notification until after the process has exited.
151
151
152
152
##### message
153
153
@@ -200,12 +200,12 @@ The idea for this module came from the desire to apply the browser update strate
200
200
201
201
## Users
202
202
203
-
There are a bunch projects using it:
203
+
There are a bunch of projects using it:
204
204
205
205
-[npm](https://github.com/npm/npm) - Package manager for JavaScript
206
206
-[Yeoman](https://yeoman.io) - Modern workflows for modern webapps
207
207
-[AVA](https://avajs.dev) - Simple concurrent test runner
0 commit comments