Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: thebigredgeek/apollo-errors
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.9.0
Choose a base ref
...
head repository: thebigredgeek/apollo-errors
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Apr 18, 2018

  1. Fix typo in README.md

    n1ru4l authored Apr 18, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9eb49fa View commit details

Commits on Apr 21, 2018

  1. Merge pull request #42 from n1ru4l/patch-1

    Fix typo in README.md
    thebigredgeek authored Apr 21, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9416f46 View commit details

Commits on May 13, 2018

  1. readme wrong word fix

    skout90 committed May 13, 2018
    Copy the full SHA
    672a308 View commit details

Commits on May 16, 2018

  1. Merge pull request #45 from skout90/readme

    readme wrong word fix
    thebigredgeek authored May 16, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    cbd92df View commit details

Commits on Apr 10, 2019

  1. Add renovate.json

    renovate-bot committed Apr 10, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    renovate-bot Mend Renovate
    Copy the full SHA
    2c25351 View commit details

Commits on May 3, 2019

  1. Merge pull request #56 from thebigredgeek/renovate/configure

    Configure Renovate
    thebigredgeek authored May 3, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c9938a6 View commit details
  2. Pin dependencies

    renovate-bot committed May 3, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    renovate-bot Mend Renovate
    Copy the full SHA
    5338d55 View commit details

Commits on May 12, 2019

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    renovate-bot Mend Renovate
    Copy the full SHA
    79d5948 View commit details

Commits on May 14, 2019

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4d9b088 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    72f947c View commit details
  3. Merge pull request #58 from thebigredgeek/renovate/assert-2.x

    Update dependency assert to v2
    thebigredgeek authored May 14, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c7c6b1e View commit details

Commits on Sep 23, 2019

  1. fix

    thebigredgeek committed Sep 23, 2019
    Copy the full SHA
    ff5d468 View commit details
  2. fix

    thebigredgeek committed Sep 23, 2019
    Copy the full SHA
    a9ff7e6 View commit details
  3. fix

    thebigredgeek committed Sep 23, 2019
    Copy the full SHA
    555800e View commit details
  4. updated readme

    thebigredgeek committed Sep 23, 2019
    Copy the full SHA
    f6e95ec View commit details
  5. fix

    thebigredgeek committed Sep 23, 2019
    Copy the full SHA
    1af8e5f View commit details

Commits on Jul 14, 2021

  1. Update README.md

    thebigredgeek authored Jul 14, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    fd85a2c View commit details
  2. Update README.md

    thebigredgeek authored Jul 14, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bf1aee7 View commit details
  3. Update README.md

    thebigredgeek authored Jul 14, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    11bcd65 View commit details
  4. Update config.yml

    thebigredgeek authored Jul 14, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    73aec86 View commit details
  5. Update config.yml

    thebigredgeek authored Jul 14, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5e7e23a View commit details
Showing with 78 additions and 30 deletions.
  1. +54 −0 .circleci/config.yml
  2. +3 −3 README.md
  3. +0 −14 circle.yml
  4. +16 −13 package.json
  5. +5 −0 renovate.json
54 changes: 54 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
workflows:
version: 2
node-multi-build:
jobs:
- node-v8
- node-v10
- node-v12
- node-v14
version: 2
jobs:
node-base: &node-base
docker:
- image: node
steps:
- checkout
- restore_cache:
keys:
- npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
- npm-lock-master-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
- npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
- npm-cache-master-{{ .Environment.CIRCLE_JOB }}
- run:
name: Install dependencies
command: npm install
- run:
name: Build
command: npm run build
- run:
name: Test
command: npm run test
- save_cache:
key: npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
paths:
- node_modules
- save_cache:
key: npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
paths:
- ~/.npm/_cacache
node-v8:
<<: *node-base
docker:
- image: circleci/node:8
node-v10:
<<: *node-base
docker:
- image: circleci/node:10
node-v12:
<<: *node-base
docker:
- image: circleci/node:12
node-v14:
<<: *node-base
docker:
- image: circleci/node:14
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ Machine-readable custom errors for Apollostack's GraphQL server

[![NPM](https://nodei.co/npm/apollo-errors.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/apollo-errors/)

[![CircleCI](https://circleci.com/gh/thebigredgeek/apollo-errors.svg?style=shield)](https://circleci.com/gh/thebigredgeek/apollo-errors/tree/master) [![Beerpay](https://beerpay.io/thebigredgeek/apollo-errors/badge.svg?style=beer-square)](https://beerpay.io/thebigredgeek/apollo-errors) [![Beerpay](https://beerpay.io/thebigredgeek/apollo-errors/make-wish.svg?style=flat-square)](https://beerpay.io/thebigredgeek/apollo-errors?focus=wish)
[![CircleCI](https://circleci.com/gh/thebigredgeek/apollo-errors.svg?style=shield)](https://circleci.com/gh/thebigredgeek/apollo-errors/tree/master)

## Example from Apollo Day

@@ -93,7 +93,7 @@ You can utilize this data for logging purposes.
import { isInstance as isApolloErrorInstance, formatError as formatApolloError } from 'apollo-errors';

function formatError(error) {
const { originialError } = error;
const { originalError } = error;
if (isApolloErrorInstance(originalError)) {
// log internalData to stdout but not include it in the formattedError
console.log(JSON.stringify({
@@ -109,7 +109,7 @@ function formatError(error) {

## API

### ApolloError ({ [time_thrown: String, data: Object, internalData: object message: String ]})
### ApolloError ({ [time_thrown: String, data: Object, internalData: object, message: String ]})

Creates a new ApolloError object. Note that `ApolloError` in this context refers
to an error class created and returned by `createError` documented below. Error can be
14 changes: 0 additions & 14 deletions circle.yml

This file was deleted.

29 changes: 16 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,10 @@
"description": "Machine-readable custom errors for Apollostack's GraphQL server",
"main": "dist/index.js",
"scripts": {
"test": "make test"
"test": "mocha",
"build": "tsc",
"lint": "eslint src",
"clean": "rimraf dist"
},
"repository": {
"type": "git",
@@ -25,21 +28,21 @@
},
"homepage": "https://github.com/thebigredgeek/apollo-errors#readme",
"dependencies": {
"assert": "^1.4.1",
"assert": "^2.0.0",
"extendable-error": "^0.1.5"
},
"devDependencies": {
"babel-cli": "^6.18.0",
"babel-core": "^6.17.0",
"babel-eslint": "^7.0.0",
"babel-preset-es2015": "^6.16.0",
"babel-register": "^6.18.0",
"chai": "^3.5.0",
"eslint": "^3.8.1",
"eslint-plugin-babel": "^3.3.0",
"mocha": "^3.1.2",
"rimraf": "^2.5.4",
"typescript": "^2.5.2"
"babel-cli": "6.26.0",
"babel-core": "6.26.3",
"babel-eslint": "7.2.3",
"babel-preset-es2015": "6.24.1",
"babel-register": "6.26.0",
"chai": "3.5.0",
"eslint": "3.19.0",
"eslint-plugin-babel": "3.3.0",
"mocha": "3.5.3",
"rimraf": "2.6.3",
"typescript": "2.9.2"
},
"typings": "dist/index.d.ts"
}
5 changes: 5 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}