Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18, 20, 22]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Test / Lint / Codestyle
run: make all
test-optional:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [24]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Test / Lint / Codestyle
run: make all
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ COVERAGE := $(ROOT)/coverage
#
# Tools and binaries
#
YARN := yarn
NPM := npm
COVERALLS := $(NODE_BIN)/coveralls
ESLINT := $(NODE_BIN)/eslint
Expand All @@ -36,7 +35,7 @@ CONVENTIONAL_RECOMMENDED_BUMP := $(NODE_BIN)/conventional-recommended-bump
#
LCOV := $(ROOT)/coverage/lcov.info
PACKAGE_JSON := $(ROOT)/package.json
YARN_LOCK := $(ROOT)/yarn.lock
PKG_LOCK := $(ROOT)/package-lock.json
GITHOOKS := $(wildcard $(GITHOOKS_SRC)/*)
ALL_FILES := $(shell find $(ROOT) \
-not \( -path $(NODE_MODULES) -prune \) \
Expand All @@ -59,12 +58,12 @@ help:
all: node_modules lint test clean-coverage


$(YARN_LOCK): $(PACKAGE_JSON)
@$(YARN)
$(PKG_LOCK): $(PACKAGE_JSON)
@$(NPM) install


$(NODE_MODULES): $(PACKAGE_JSON)
@$(YARN)
@$(NPM) install
@touch $(NODE_MODULES)


Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# restify-errors

[![NPM Version](https://img.shields.io/npm/v/restify-errors.svg)](https://npmjs.org/package/restify-errors)
[![Build Status](https://travis-ci.org/restify/errors.svg?branch=master)](https://travis-ci.org/restify/errors)
[![Coverage Status](https://coveralls.io/repos/restify/errors/badge.svg?branch=master)](https://coveralls.io/r/restify/errors?branch=master)
[![Dependency Status](https://david-dm.org/restify/errors.svg)](https://david-dm.org/restify/errors)
[![devDependency Status](https://david-dm.org/restify/errors/dev-status.svg)](https://david-dm.org/restify/errors#info=devDependencies)
[![Build Status](https://github.com/restify/errors/actions/workflows/test.yml/badge.svg)](https://github.com/restify/errors/actions/workflows/test.yml)

> A collection of HTTP and REST Error constructors.

Expand Down
3 changes: 2 additions & 1 deletion lib/baseClasses/HttpError.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ HttpError.prototype.toJSON = function toJSON() {

return {
code: self.body.code,
message: message
message: message,
cause: self.cause
};
};

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"mkdirp": "^0.5.1",
"mocha": "^6.2.2",
"nyc": "^14.1.1",
"restify": "^8.5.0",
"restify-clients": "^2.6.7",
"restify": "^11.1.0",
"restify-clients": "^4.2.0",
"unleash": "^2.0.1"
},
"optionalDependencies": {
Expand Down
Loading