Skip to content

Commit

Permalink
Merge pull request #431 from Nevon/update-ramda
Browse files Browse the repository at this point in the history
Update ramda
  • Loading branch information
Nevon authored May 24, 2023
2 parents b2326f5 + 98dabcf commit 0b22ad6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
- run: yarn install --frozen-lockfile
- run: yarn test

Expand All @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express-physical",
"version": "1.0.2",
"version": "1.0.3",
"description": "Healthcheck middleware for Express 🌡",
"main": "index.js",
"repository": "[email protected]:Nevon/express-physical.git",
Expand Down Expand Up @@ -33,7 +33,7 @@
},
"dependencies": {
"async": "^3.2.2",
"ramda": "^0.27.2",
"ramda": "^0.29.0",
"snakecase-keys": "^2.0.0",
"spected": "^0.7.2"
},
Expand Down
4 changes: 2 additions & 2 deletions src/response/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const notNil = R.compose(
const isString = R.is(String);
const isBoolean = R.is(Boolean);
const isObject = R.is(Object);
const oneOf = collection => R.curry(R.contains)(R.__, R.keys(collection));
const oneOf = collection => R.curry(R.includes)(R.__, R.keys(collection));

const createSuffix = healthy =>
`when healthcheck is ${healthy ? "healthy" : "unhealthy"}`;
Expand All @@ -35,7 +35,7 @@ const unhealthyCheckMessage = msg => `${msg} ${SUFFIX_UNHEALTHY_MSG}`;
const commonRules = input => ({
healthy: [[isBoolean, "Healthy should be a boolean"]],
info: [[R.either(R.isNil, isObject), "Info should be an object"]],
dependentOn: R.contains(input.type, DEPENDENT_ON_REQUIRED_TYPES)
dependentOn: R.includes(input.type, DEPENDENT_ON_REQUIRED_TYPES)
? [
[isString, "DependentOn should be a string"],
[
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3073,16 +3073,16 @@ qs@~6.5.1:
version "6.5.2"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"

ramda@^0.27.2:
version "0.27.2"
resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.27.2.tgz#84463226f7f36dc33592f6f4ed6374c48306c3f1"
integrity sha512-SbiLPU40JuJniHexQSAgad32hfwd+DRUdwF2PlVuI5RZD0/vahUco7R8vD86J/tcEKKF9vZrUVwgtmGCqlCKyA==

ramda@^0.28.0:
version "0.28.0"
resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.28.0.tgz#acd785690100337e8b063cab3470019be427cc97"
integrity sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA==

ramda@^0.29.0:
version "0.29.0"
resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.29.0.tgz#fbbb67a740a754c8a4cbb41e2a6e0eb8507f55fb"
integrity sha512-BBea6L67bYLtdbOqfp8f58fPMqEwx0doL+pAi8TZyp2YWz8R9G8z9x75CZI8W+ftqhFHCpEX2cRnUUXK130iKA==

range-parser@~1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"
Expand Down

0 comments on commit 0b22ad6

Please sign in to comment.