From 31ac575ec9eb5dc73b4c632784b6fad2146aac2b Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Mon, 3 Feb 2020 22:31:46 +0900 Subject: [PATCH] fix: update dependencies (fixes #21) --- .README/README.md | 2 +- README.md | 2 +- package.json | 40 +++++++++---------- .../factories/createLightship.js | 4 +- 4 files changed, 24 insertions(+), 24 deletions(-) rename test/{ => lightship}/factories/createLightship.js (98%) diff --git a/.README/README.md b/.README/README.md index d04b685..e69792c 100644 --- a/.README/README.md +++ b/.README/README.md @@ -345,7 +345,7 @@ const beacon = lightship.createBeacon(); Beacon is live upon creation. Shutdown handlers are suspended until there are no live beacons. -To singnal that a beacon is dead, use `die()` method: +To signal that a beacon is dead, use `die()` method: ```js beacon.die(); diff --git a/README.md b/README.md index 40e5ff4..32ff8de 100644 --- a/README.md +++ b/README.md @@ -378,7 +378,7 @@ const beacon = lightship.createBeacon(); Beacon is live upon creation. Shutdown handlers are suspended until there are no live beacons. -To singnal that a beacon is dead, use `die()` method: +To signal that a beacon is dead, use `die()` method: ```js beacon.die(); diff --git a/package.json b/package.json index 0c4e111..fcb2f33 100644 --- a/package.json +++ b/package.json @@ -5,48 +5,48 @@ "url": "http://gajus.com" }, "ava": { + "babel": { + "compileAsTests": [ + "test/helpers/**/*" + ] + }, "files": [ - "test/**/*" - ], - "helpers": [ - "test/helpers/**/*" + "test/lightship/**/*" ], "require": [ "@babel/register" - ], - "sources": [ - "src/**/*" ] }, "dependencies": { "delay": "^4.3.0", "express": "^4.17.1", - "http-terminator": "^1.2.2", - "roarr": "^2.14.6", + "http-terminator": "^2.0.1", + "roarr": "^2.15.2", "serialize-error": "^5.0.0" }, "description": "Abstracts readiness, liveness and startup checks and graceful shutdown of Node.js services running in Kubernetes.", "devDependencies": { - "@babel/cli": "^7.8.3", - "@babel/core": "^7.8.3", - "@babel/node": "^7.8.3", + "@ava/babel": "^1.0.0", + "@babel/cli": "^7.8.4", + "@babel/core": "^7.8.4", + "@babel/node": "^7.8.4", "@babel/plugin-transform-flow-strip-types": "^7.8.3", - "@babel/preset-env": "^7.8.3", + "@babel/preset-env": "^7.8.4", "@babel/register": "^7.8.3", - "ava": "^2.4.0", - "axios": "^0.19.1", + "ava": "^3.2.0", + "axios": "^0.19.2", "babel-plugin-istanbul": "^6.0.0", "coveralls": "^3.0.9", "eslint": "^6.8.0", - "eslint-config-canonical": "^18.1.0", - "flow-bin": "^0.116.1", + "eslint-config-canonical": "^18.1.1", + "flow-bin": "^0.117.0", "flow-copy-source": "^2.0.9", "get-port": "^5.1.1", "gitdown": "^3.1.2", - "husky": "^4.0.10", + "husky": "^4.2.1", "nyc": "^15.0.0", - "semantic-release": "^16.0.2", - "sinon": "^8.1.0" + "semantic-release": "^17.0.2", + "sinon": "^8.1.1" }, "engines": { "node": ">=10" diff --git a/test/factories/createLightship.js b/test/lightship/factories/createLightship.js similarity index 98% rename from test/factories/createLightship.js rename to test/lightship/factories/createLightship.js index d62dad3..71db46a 100644 --- a/test/factories/createLightship.js +++ b/test/lightship/factories/createLightship.js @@ -7,13 +7,13 @@ import test, { import sinon from 'sinon'; import delay from 'delay'; import axios from 'axios'; -import createLightship from '../../src/factories/createLightship'; +import createLightship from '../../../src/factories/createLightship'; import { SERVER_IS_NOT_READY, SERVER_IS_NOT_SHUTTING_DOWN, SERVER_IS_READY, SERVER_IS_SHUTTING_DOWN, -} from '../../src/states'; +} from '../../../src/states'; type ProbeStateType = {| +message: string,