connect-ready 1.0.9 → 1.0.13
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.
- package/.github/workflows/npm-publish.yml +41 -0
- package/.travis.yml +3 -3
- package/README.md +4 -3
- package/alerts.jsonl +849 -0
- package/assets.jsonl +1 -0
- package/package.json +11 -10
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
3
|
+
|
|
4
|
+
name: Node.js Package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
release:
|
|
8
|
+
types: [created]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
node-version: [10.x, 12.x, 14.x, 15.x]
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v2
|
|
20
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
21
|
+
uses: actions/setup-node@v1
|
|
22
|
+
with:
|
|
23
|
+
node-version: ${{ matrix.node-version }}
|
|
24
|
+
- run: npm ci
|
|
25
|
+
- run: npm run build --if-present
|
|
26
|
+
- run: npm test
|
|
27
|
+
|
|
28
|
+
publish-npm:
|
|
29
|
+
needs: build
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
steps:
|
|
32
|
+
- uses: actions/checkout@v2
|
|
33
|
+
- uses: actions/setup-node@v1
|
|
34
|
+
with:
|
|
35
|
+
node-version: 14
|
|
36
|
+
registry-url: https://registry.npmjs.org/
|
|
37
|
+
- run: npm ci
|
|
38
|
+
- run: npm publish
|
|
39
|
+
env:
|
|
40
|
+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
41
|
+
|
package/.travis.yml
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
[](https://travis-ci.org/dcolens/connect-ready) [](https://travis-ci.org/dcolens/connect-ready)
|
|
2
|
-
|
|
3
1
|
# connect-ready
|
|
2
|
+
|
|
3
|
+
[](https://travis-ci.org/dcolens/connect-ready) [](https://coveralls.io/github/dcolens/connect-ready?branch=master)
|
|
4
|
+
|
|
4
5
|
express route that indicates whether a service is ready or not. Mostly created to make graceful restart of node express servers in a Kubernetes environment.
|
|
5
6
|
|
|
6
7
|
|
|
@@ -68,7 +69,7 @@ Another use of the readinessProbe can be to indicate if the server is too busy,
|
|
|
68
69
|
|
|
69
70
|
### Usage
|
|
70
71
|
|
|
71
|
-
1. npm install toobusy-js
|
|
72
|
+
1. npm install toobusy-js
|
|
72
73
|
2. enable toobusy in connect-ready:
|
|
73
74
|
```javascript
|
|
74
75
|
ready.enableTooBusy(70)
|