Git Product home page Git Product logo

nodejs-api-boilerplate's Introduction

forthebadge forthebadge forthebadge


Code Climate Coverage Status Build Status CircleCI Greenkeeper badge styled with prettier MIT License PRs Welcome Dependency Status dependencies Status devDependencies Status nps code style equimper All Contributors

NodeJS-API-Boilerplate

forthebadge forthebadge forthebadge forthebadge forthebadge forthebadge

Always in progress πŸ‘·β€

Get Started

Build

This Boilerplate use webpack 3 to compile code.

Installation

  1. Clone the project git clone https://github.com/EQuimper/nodejs-api-boilerplate.git.
  2. Install dependencies yarn install or npm i
  3. Create a .env file in the root like the .env.example file.
  4. For dev you need to have mongodb db locally. How to?

Install Mongodb

With Homebrew you can just run brew install mongodb and after brew services start mongodb.


Raven Log

For get raven log create account here: Sentry


Body Whitelist

For security have add a whitelist function for your req.body coming from the front end. You can take a look of it in the contants.js file.

const WHITELIST = {
  posts: {
    create: ['title', 'text'],
    update: ['title', 'text'],
  },
  users: {
    create: ['email', 'username', 'password'],
  },
};

Api Doc

Api doc his hosted on surge. Link. For change the url and have your own docs just add you link in the .env file.


Pre-Commit Hook

I've add pre-commit and lint-staged for lint your code before commit. That can maybe take time :bowtie:


Scripts

DEV

yarn dev

or

npm run dev

PS That can crash if this is the first time but don't worry give it 2 sec the scripts gonna work. He just need to created a dist folder :) This way you have only one command to run.

DEV-DEBUG

yarn dev:debug

or

npm run dev:debug

Why toJSON on methods model ?

toJSON() help us to get only the data we want when we push the info to the client. So now we just need to put the user object in the res.json(user) and we received only what we want. Why toAuthJSON() ? Cause if we populated the post we get the toJSON() so the toAuthJSON() is the on to call on signup and login for get the token and _id.

toAuthJSON() {
  return {
    _id: this._id,
    token: `JWT ${this.createToken()}`,
  };
},

toJSON() {
  return {
    _id: this._id,
    username: this.username,
  };
},

For Validation on Request

I'm using Joi in this boilerplate, that make the validation really easy.

export const validation = {
  create: {
    body: {
      email: Joi.string().email().required(),
      password: Joi.string().regex(/^[a-zA-Z0-9]{3,30}$/).required(),
      username: Joi.string().min(3).max(20).required(),
    },
  },
};

routes.post(
  '/signup',
  validate(UserController.validation.create),
  UserController.create,
);

Seeds

For seed just run one of this following comand. This is helpful in dev for making fake user.

This is only available in dev environment

You can change the number of seed by changing the number in each script inside /scripts/seeds

  • Seeds 10 user yarn db:seeds-user
  • Clear user collection yarn db:seeds-clear-user
  • Clear all collection yarn db:seeds-clear

Monitoring Server on http://localhost:3000/status


Docker

bash scripts/development.sh

Techs


Todo

  • Test seeds controller - Done by cpenarrieta
  • Sendgrid or Other Mail supply
  • Add S3 for user image
  • Change Mocha for Jest

PR are welcome!!! πŸ˜ƒ

Contributors

Thanks goes to these wonderful people (emoji key):


Emanuel Quimper

πŸ’¬ πŸ“ πŸ› πŸ’» πŸ“– πŸ’‘ πŸš‡ πŸ”Œ πŸ‘€ ⚠️ πŸ”§ βœ…

Cristian Penarrieta

⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

nodejs-api-boilerplate's People

Contributors

cpenarrieta avatar equimper avatar fintank avatar greenkeeper[bot] avatar snyk-support avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodejs-api-boilerplate's Issues

An in-range update of webpack is breaking the build 🚨

Version 4.17.3 of webpack was just published.

Branch Build failing 🚨
Dependency webpack
Current Version 4.17.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/webpack-4.17.3 at 0.0% (Details).
  • ❌ ci/circleci: A command timed out during your tests (Details).

Release Notes v4.17.3

Bugfixes

  • Fix exit code when multiple CLIs are installed
  • No longer recommend installing webpack-command, but still support it when installed
Commits

The new version differs by 7 commits.

  • ee27d36 4.17.3
  • 4430524 Merge pull request #7966 from webpack/refactor-remove-webpack-command-from-clis
  • b717aad Show only webpack-cli in the list
  • c5eab67 Merge pull request #8001 from webpack/bugfix/exit-code
  • 943aa6b Fix exit code when multiple CLIs are installed
  • 691cc94 Spelling
  • 898462d refactor: remove webpack-command from CLIs

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of nps is breaking the build 🚨

Version 5.3.1 of nps just got published.

Branch Build failing 🚨
Dependency nps
Current Version 5.3.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As nps is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • βœ… dependency-ci Dependencies checked Details
  • ❌ bitHound - Dependencies 1 failing dependency. Details
  • βœ… bitHound - Code No failing files. Details
  • βœ… continuous-integration/travis-ci/push The Travis CI build passed Details
  • βœ… coverage/coveralls First build on greenkeeper/nps-5.3.1 at 89.92% Details
  • βœ… ci/circleci Your tests passed on CircleCI! Details

Release Notes v5.3.1

<a name"5.3.1">

5.3.1 (2017-05-27)

Bug Fixes

  • cli: do not swallow any exceptions thrown by JS config files (#140) (e607e063)
Commits

The new version differs by 1 commits.

  • e607e06 fix(cli): do not swallow any exceptions thrown by JS config files (#140)

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

API Error: Not Found

Hey, first of all, thanks for such an amazing boilerplate.

I'm trying to create a new route in the boilerplate under:

src/routes/user.routes.js

/**
 * Unique email
 */
routes.get(
	'/unique/:email',
	UserController.uniqueEmail
);

But it's keep throwing API Error: Not Found

Here are the logs:

[dev.start] {
[dev.start]   "res": {
[dev.start]     "statusCode": 404,
[dev.start]     "body": {
[dev.start]       "message": "Not Found!"
[dev.start]     }
[dev.start]   },
[dev.start]   "req": {
[dev.start]     "url": "/api/unique/[email protected]",
[dev.start]     "headers": {
[dev.start]       "host": "localhost:4000",
[dev.start]       "connection": "keep-alive",
[dev.start]       "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36",
[dev.start]       "upgrade-insecure-requests": "1",
[dev.start]       "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
[dev.start]       "accept-encoding": "gzip, deflate, br",
[dev.start]       "accept-language": "en-US,en;q=0.9,en-GB;q=0.8,hi;q=0.7",
[dev.start]       "cookie": "gcgoodness=eyJmbGFzaCI6e319; gcgoodness.sig=rUic2Voyoqv9-NG6JcrJQYcHaYc"
[dev.start]     },
[dev.start]     "method": "GET",
[dev.start]     "httpVersion": "1.1",
[dev.start]     "originalUrl": "/api/unique/[email protected]",
[dev.start]     "query": {}
[dev.start]   },
[dev.start]   "responseTime": 48,
[dev.start]   "level": "info",
[dev.start]   "message": "HTTP GET /api/unique/[email protected] 404 48ms"
[dev.start] }
[dev.start] GET /api/unique/[email protected] 404 47.472 ms - 24

An in-range update of joi is breaking the build 🚨

Version 10.5.1 of joi just got published.

Branch Build failing 🚨
Dependency joi
Current Version 10.5.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

joi is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • βœ… dependency-ci Dependencies checked Details
  • ❌ bitHound - Dependencies 1 failing dependency. Details
  • βœ… bitHound - Code No failing files. Details
  • βœ… ci/circleci Your tests passed on CircleCI! Details
  • βœ… continuous-integration/travis-ci/push The Travis CI build passed Details
  • βœ… coverage/coveralls First build on greenkeeper/joi-10.5.1 at 89.92% Details

Commits

The new version differs by 1 commits.

  • 539760b Fix annotate() exception. Closes #1203

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of slug is breaking the build 🚨

The dependency slug was updated from 0.9.1 to 0.9.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

slug is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ ci/circleci: Your tests failed on CircleCI (Details).

Commits

The new version differs by 4 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of prettier is breaking the build 🚨

Version 1.3.0 of prettier just got published.

Branch Build failing 🚨
Dependency prettier
Current Version 1.2.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As prettier is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details - ❌ **ci/circleci** CircleCI is running your tests [Details](https://circleci.com/gh/EQuimper/nodejs-api-boilerplate/40?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link),- ❌ **bitHound - Dependencies** null [Details](https://www.bithound.io/github/EQuimper/nodejs-api-boilerplate/greenkeeper%2Fprettier-1.3.0),- ❌ **bitHound - Code** null [Details](https://www.bithound.io/github/EQuimper/nodejs-api-boilerplate/greenkeeper%2Fprettier-1.3.0),- ❌ **coverage/coveralls** Coverage pending from Coveralls.io [Details](https://coveralls.io/builds/11342674),- ❌ **continuous-integration/travis-ci/push** The Travis CI build failed [Details](https://travis-ci.org/EQuimper/nodejs-api-boilerplate/builds/228140930?utm_source=github_status&utm_medium=notification)

Release Notes 1.3.0

Facebook Adoption Update

The reason why I (@vjeux) embarked on this journey working on prettier has always been to get the entire Facebook codebase converted over. I would like to give an update on how it is going and what is the process to get there.

The first projects to adopt prettier were Jest, React and immutable-js. Those are small codebases in the order of hundreds of files that have their own infrastructure. There are 5 or less people working on them full time.

Then, Oculus and Nuclide converted their codebase over. The scale is bigger with a few thousands of files and tens of full time contributors but looks pretty similar to the first projects. The conversions went in one big codemod and that's it.

Now, the entire Facebook codebase is way bigger than this and it's not feasible to just convert everything in one go and to convince everyone that their entire codebase is going to be reformatted under their feet. So we need to find a more incremental approach.

Scaling adoption

Running prettier on a piece of code is a pretty expensive operation, it makes your pull request look bad because of a lot of unrelated changes and it causes merge conflicts for all the outstanding pull requests. So once a file has been formatted, you should do everything to make sure it remains formatted.

  • When pretty-printing a file, add @format to the first block comment like @flow.
  • Have a lint rule with autofix that checks if the file is correctly pretty printed when @format is present.
    • When running Nuclide, it's going to show as an inline warning and have a fix button.
    • When sending a pull request, it's going to show the lint failing with a [Yn] prompt that you can just press enter.
  • Update the default code templates to add @format to the header.
  • When you run code formatting via cmd-shift-c inside of Nuclide, automatically insert the @format header.
  • Disable all the stylistic rules like max-len when @format is in the header.
  • Have script to run prettier through an entire folder with everything configured as a one line operation.
  • Have a good guide to help people that want to convert their codebase over with instructions and best practices.
  • When pushing a new release of prettier, also run it through all the files with @format in order to avoid getting warnings afterwards.
  • Add tracking for the number of files with @format over time.

We finally got all those things wired up 1.5 weeks ago and the reception has been insane. Many people from various teams converted their codebase to prettier on their own. As of today, 15% of Facebook codebase has been converted over!

When I started working on prettier, I had a hunch that people were hungry for tools to solve formatting. But I had no idea that once the tooling was in place, people would rush to convert their codebase over! This is great confirmation that this project is useful to people and not just a gimmicky tool.

TypeScript Support Progress

@despairblue, @azz and @JamesHenry have been hard at work around getting TypeScript supported by prettier as it's the top requested feature. 2000 out of 11000 files in the TypeScript test suite are not yet properly printed. You can follow progress on #1480 and do not hesitate to help out!

Flow

Add trailing commas on flow generics (#1381)

The --trailing-comma=all option is supposed to add trailing commas everywhere possible, but as an oversight we forgot to do it for flow generics.

// Before
type Errors = Immutable.Map<
  Ahohohhohohohohohohohohohohooh,
  Fbt | Immutable.Map<ErrorIndex, Fbt>
>;

// After
type Errors = Immutable.Map<
Ahohohhohohohohohohohohohohooh,
Fbt | Immutable.Map<ErrorIndex, Fbt>,
>;

Inline nullable in flow generics (#1426)

The phase after printing things correctly is to tweak the output to make it closer to the way people write code in practice. Inlining optional flow types is a small thing that makes a difference.

// Before
type Cursor = Promise<
  ?{
    newCursor?: number,
    formatted: string,
  }
>;

// After
type Cursor = Promise<?{
newCursor?: number,
formatted: string,
}>;

Allow flow declarations to break on StringLiteralTypeAnnotations (#1437)

We can always find more places to add breaks when things don't fit 80 columns. This time it's around declaring a type as a constant string.

// Before
export type AdamPlacementValidationSingleErrorKey = 'SOME_FANCY_TARGETS.GLOBAL_TARGET';

// After
export type AdamPlacementValidationSingleErrorKey =
'SOME_FANCY_TARGETS.GLOBAL_TARGET';

Add space around = for flow generics default arguments (#1476)

Another example of small thing where we can improve the display of flow code. For function default arguments we put a space around = but didn't around flow generics.

// Before
class PolyDefault<T=string> {}

// After
class PolyDefault<T = string> {}

Don't break for unparenthesised single argument flow function (#1452)

I'm trying to figure out something to write here, but ... it just looks weird!

// Before
const selectorByPath:
  Path
 => SomethingSelector<
  SomethingUEditorContextType,
  SomethingUEditorContextType,
  SomethingBulkValue<string>
> = memoizeWithArgs(/* ... */)

// After
const selectorByPath: Path => SomethingSelector<
SomethingUEditorContextType,
SomethingUEditorContextType,
SomethingBulkValue<string>
> = memoizeWithArgs(/* ... */);

Fix optional flow parenthesis (#1357)

We were a bit too lenient around parenthesis for optional flow types. In one case in the entire Facebook codebase, it generated code with different semantics. As part of this fix, we hardened the list of types that can be written without parenthesis.

// Before
type X = ?(number, number) => number => void;

// After
type X = (?(number, number) => number) => void;

Skip trailing commas with FlowShorthandWithOneArg (#1364)

It is a parse error to add a trailing comma without parenthesis for arguments of arrow function types. We found one case in Facebook codebase when this happened, it's a very rare occurrence.

// Before
type IdeConnectionFactory =
  child_process$ChildProcess,
  => FlowIDEConnection = defaultIDEConnectionFactory;

// After
type IdeConnectionFactory =
child_process$ChildProcess,
=> FlowIDEConnection = defaultIDEConnectionFactory;

Reorder flow object props (#1451)

This one is an example where the way the AST is structured is not our favor. Instead of having a list of elements inside of a type, the AST is structured in a way where normal keys and array keys each have their own group. In order to restore the initial order, we're now reading from the original source :(

// Before
type Foo = {
  [key: string]: void,
  alpha: "hello",
  beta: 10
};

// After
type Foo = {
alpha: 'hello',
[key: string]: void,
beta: 10
}

Template Literal

Proper indentation for template literals (#1385)

A long standing issue with template literals and prettier is around the indentation of code inside of ${}. It used to be the indentation of the backtick but turned out to give poor results. Instead people tend to use the indent of the ${. We changed this behavior and it magically made GraphQL queries look pretty!

// Before
Relay.createContainer({
  nodes: ({ solution_type, time_frame }) => Relay.QL`
    fragment {
      __typename
      ${OptimalSolutionsSection.getFragment("node", {
    solution_type,
    time_frame
  })}
    }
  `
})
// After
Relay.createContainer({
  nodes: ({ solution_type, time_frame }) => Relay.QL`
    fragment {
      __typename
      ${OptimalSolutionsSection.getFragment("node", {
        solution_type,
        time_frame
      })}
    }
  `
})

Do not indent calls with a single template literal argument (#873)

Template literals are very hard to deal with for a pretty printer because the spaces inside are meaningful so you can't re-indent them. We didn't know what to do for a call with a single template literal so we didn't do anything, but we kept receiving reports of people saying that prettier indented it the wrong way, so we are now inlining them. Fingers crossed it is going to cover most use cases.

// Before
insertRule(
  `*, *:before, *:after {
    box-sizing: inherit;
  }`
);

// After
insertRule(</span>*, *:before, *:after {</span> <span class="pl-s"> box-sizing: inherit;</span> <span class="pl-s">}<span class="pl-pds">);

Fix windows line ending on template literals (#1439)

We manipulate line endings in a lot of places in prettier and took great care of handling both \n and \r\n except for template literals where we forgot. Now this is fixed!

// Before
const aLongString = `

Line 1

Line 2

Line 3

`;

// After
const aLongString = </span></span> <span class="pl-s">Line 1</span> <span class="pl-s">Line 2</span> <span class="pl-s">Line 3</span> <span class="pl-s"><span class="pl-pds">;

Inline template literals as arrow body (#1485)

We already inline template literals that are tagged (eg graphql`query`) but didn't for plain template literals. For the anecdote, it turns out the code was supposed to support it but it was using TemplateElement instead of TemplateLiteral :(

// Before
const inlineStore = preloadedState =>
  `
  <script>
    window.preloadedState = ${JSON.stringify(preloadedState).replace(/</g, '\\u003c')}
  </script>
`

// After
const inlineStore = preloadedState => </span></span> <span class="pl-s"> &lt;script&gt;</span> <span class="pl-s"> window.preloadedState = <span class="pl-s1"><span class="pl-pse">${</span><span class="pl-c1">JSON</span>.<span class="pl-en">stringify</span>(preloadedState).<span class="pl-c1">replace</span>(<span class="pl-sr"><span class="pl-pds">/</span>&lt;<span class="pl-pds">/</span>g</span>, <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span>u003c<span class="pl-pds">'</span></span>)<span class="pl-pse">}</span></span></span> <span class="pl-s"> &lt;/script&gt;</span> <span class="pl-s"><span class="pl-pds">

Ternaries

Add parenthesis for unusual nested ternaries (#1386)

While working on printing nested ternaries, everyone focused on the ones with the shape of an if then else cond1 ? elem1_if : cond2 ? elem2_if : elem_else which is the most common. But, if you move move some ? and : around you can have another pattern. It looks almost the same but has a different meaning. In order to reduce confusion, we're adding parenthesis around the uncommon form.

// Before
cond1 ? cond2 ? elem2_if : elem2_else : elem1_else

// After
cond1 ? (cond2 ? elem2_if : elem2_else) : elem1_else

Only add parenthesis on ternaries inside of arrow functions if doesn't break (#1450)

There's an eslint rule no-confusing-arrows which suggests adding parenthesis for ternaries in arrow functions without brackets.

var x = a => 1 ? 2 : 3;
var x = a <= 1 ? 2 : 3;

It makes sense when code is in one line, but when it is split into multiple lines, the parenthesis are unnecessary given the indentation, so we now only put them when they serve their disambiguation purpose.

// Before
var x = a => (1 ? 2 : 3);
var x = a =>
  (1
    ? 2
    : 3);

// After
var x = a => (1 ? 2 : 3);
var x = a =>
1
? 2
: 3;

General JavaScript Improvements

Inline function declaration with single arg as object (#1173)

This one was often requested for React Stateless Functional Components (SFC). If you make use of a lot of them, it's likely going to be a big change for you.

// Before
const X = (
  props: {
    a: boolean,
  },
) => <div />;

// After
const X = (props: {
a: boolean,
}) => <div />;

Break inline object first in function arguments (#1453)

One thing we discovered early on is that people usually break the arguments of the function before breaking the return type. Unfortunately, the code responsible to inline single destructuring argument broke that assumption and it introduced bad looking code like this example. The good news is that it enables us to turn on inlining for single arguments that are typed with an object.

// Before
class X {
  async onDidInsertSuggestion({editor, triggerPosition, suggestion}): Promise<
    void
  > {
  }
}

// After
class X {
async onDidInsertSuggestion({
editor,
triggerPosition,
suggestion
}): Promise<void> {
}
}

Don't break on empty arrays and objects (#1440)

This one has been a long standing issue and is an easy fix, but was an invaluable tool: whenever someone reported that [] or {} would break, we were able to fix the example by fixing something else. So it was a great way to surface edge cases. Fortunately, this vein has now ran out and all the recent examples just look bad with no other reason than the fact that they are breaking. So it's time to finally do it!

// Before
const a = someVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeLong.Expression || [
];

// After
const a = someVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeLong.Expression || [];

Do not break on [0] (#1441)

We have a lot of issues where code breaks in array access when it doesn't look good. We don't yet have a good generic solution for it, but we can add a specific fix a common situation: [0].

// Before
queryThenMutateDOM(() => {
  title = SomeThing.call(root, "someLongStringThatPushesThisTextReall")[
    0
  ];
});

// After
queryThenMutateDOM(() => {
title = SomeThing.call(
root,
"someLongStringThatPushesThisTextReall",
)[0];
});

Indent do while condition (#1373)

We were not using the correct indentation logic for do-while condition but someone noticed, now we do!

// Before
do {}
while (someVeryLongStringA && someVeryLongStringB && someVeryLongStringC && someVeryLongStringD);

// After
do {}
while (
someVeryLongStringA &&
someVeryLongStringB &&
someVeryLongStringC &&
someVeryLongStringD
);

Preserve inline comment as last argument (#1390)

We forgot to add one case in the comment detection code when they appear last for JSX attributes and function arguments which made them go after the closing. In the case of JSX, it generated code that had a different meaning. Fortunately, since we don't usually commit commented out code it didn't affect production code, but it is not a good experience while coding.

// Before
const x = (
  <div
    attr1={1}>
//   attr3={3}
    {children}
  </div>
);

// After
const x = (
<div
attr1={1}
// attr3={3}
>
{children}
</div>
);

Break class expression returned by arrow call (#1464)

In 1.0, we made class be inline inside of arrow functions. It turns out that it doesn't work great when the class is non trivial, so we are reverting this change. We're trying really hard to avoid making trashy decisions like this where the style changes back and forth, but we allow ourselves to do it sometimes to fix mistakes!

// Before
export default (ViewComponent: Function, ContainerComponent: Function) => class
  extends React.Component {
  static propTypes = {};
};

// After
export default (ViewComponent: Function, ContainerComponent: Function) =>
class extends React.Component {
static propTypes = {};
};

Fix empty line in block with EmptyStatement (#1375)

This one was found by fuzzing. You're unlikely going to hit this in real code but it's good to know it is fixed!

// Input
if (a) {
  b;

;
}

// Before
if (a) {
b;

}

// After
if (a) {
b;

}

Commits

The new version differs by 48 commits0.

  • a81d5c1 1.3.0
  • 0785726 Inline template literals as arrow body (#1485)
  • f59aeef Break inline object first in function arguments (#1453) (#1173)
  • 8f9bb3a Break inline object first in function arguments (#1453)
  • 54b8cac Reorder flow object props (#1451)
  • c99a877 Do not break on [0] (#1441)
  • acfb14f Don't break on empty arrays and objects (#1440)
  • bafd724 Don't break for unparenthesised single argument flow function (#1452)
  • a335c26 Add space around = for flow generics default arguments (#1476)
  • 4b7d265 Fix windows line ending on template literals (#1439)
  • e392093 Only add parenthesis on ternaries inside of arrow functions if doesn't break (#1450)
  • 93cad97 Preserve inline comment as last argument (#1390)
  • 314e963 Add parenthesis for unusual nested ternaries (#1386)
  • 13f05fb Proper indentation for template literals (#1385)
  • c521406 [RFC] Do not indent calls with a single template literal argument (#873)

There are 48 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Call methods in toJSON

for example this line

would

toJSON() {
    return {
      _id: this._id,
      title: this.title,
      text: this.text,
      author: this.author,
      createdAt: this.createdAt,
      favoriteCount: this.favoriteCount(),
    };
  },

or call isMyFavorite

An in-range update of semantic-release is breaking the build 🚨

Version 15.9.15 of semantic-release was just published.

Branch Build failing 🚨
Dependency semantic-release
Current Version 15.9.14
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

semantic-release is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/semantic-release-15.9.15 at 0.0% (Details).
  • ❌ ci/circleci: A command timed out during your tests (Details).

Release Notes v15.9.15

15.9.15 (2018-09-11)

Bug Fixes

  • package: update debug to version 4.0.0 (7b8cd99)
Commits

The new version differs by 1 commits.

  • 7b8cd99 fix(package): update debug to version 4.0.0

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Mocha deprecation warning "--compilers" will be removed in a future version of Mocha

When running mocha tests, there is a deprecation warning:

(node:51537) DeprecationWarning: "--compilers" will be removed in a future version of Mocha; see https://git.io/vdcSr for more info
(node:51537) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '_id' of undefined
    at Suite.<anonymous> (/Users/user/dev/nodejs-api-boilerplate/__tests__/models/user.model.test.js:111:49)
    at Generator.next (<anonymous>)
    at step (/Users/user/dev/nodejs-api-boilerplate/__tests__/models/user.model.test.js:19:191)
    at /Users/user/dev/nodejs-api-boilerplate/__tests__/models/user.model.test.js:19:437

https://github.com/mochajs/mocha/wiki/compilers-deprecation

An in-range update of prettier is breaking the build 🚨

The devDependency prettier was updated from 1.14.2 to 1.14.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

prettier is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).
  • ❌ ci/circleci: Your tests failed on CircleCI (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/prettier-1.14.3 at 0.0% (Details).

Release Notes for 1.14.3

πŸ”— Changelog

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of ajv is breaking the build 🚨

Version 5.1.6 of ajv just got published.

Branch Build failing 🚨
Dependency ajv
Current Version 5.1.5
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As ajv is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • βœ… dependency-ci Dependencies checked Details
  • βœ… ci/circleci Your tests passed on CircleCI! Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 8 commits.

  • ff9f93a 5.1.6
  • 0d6ae42 fix: traverse only schema objects, fixes #521
  • daf7d6b docs: using with draft-04
  • 9f0b563 Merge pull request #508 from epoberezkin/greenkeeper/nyc-11.0.2
  • 55727d9 test: remove node v0.12, v5, add v8 to travis test
  • eac5902 chore(package): update nyc to version 11.0.2
  • f1c9f15 Merge pull request #507 from epoberezkin/greenkeeper/chai-4.0.1
  • d74a381 chore(package): update chai to version 4.0.1

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of eslint-config-equimper is breaking the build 🚨

Version 1.6.4 of eslint-config-equimper just got published.

Branch Build failing 🚨
Dependency eslint-config-equimper
Current Version 1.6.3
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As eslint-config-equimper is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details - βœ… **bitHound - Dependencies** No failing dependencies. [Details](https://www.bithound.io/github/EQuimper/nodejs-api-boilerplate/617e3fe343730233f1b6ee58dd6e9094b92bf671/dependencies/npm?status=passing),- βœ… **bitHound - Code** No failing files. [Details](https://www.bithound.io/github/EQuimper/nodejs-api-boilerplate/617e3fe343730233f1b6ee58dd6e9094b92bf671/files?status=passing),- βœ… **ci/circleci** Your tests passed on CircleCI! [Details](https://circleci.com/gh/EQuimper/nodejs-api-boilerplate/44?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link),- ❌ **continuous-integration/travis-ci/push** The Travis CI build failed [Details](https://travis-ci.org/EQuimper/nodejs-api-boilerplate/builds/228344556?utm_source=github_status&utm_medium=notification),- βœ… **coverage/coveralls** First build on greenkeeper/eslint-config-equimper-1.6.4 at 90.125% [Details](https://coveralls.io/builds/11351567)

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of prettier is breaking the build 🚨

Version 1.4.3 of prettier just got published.

Branch Build failing 🚨
Dependency prettier
Current Version 1.4.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As prettier is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ bitHound - Dependencies null Details
  • ❌ bitHound - Code null Details
  • ❌ ci/circleci CircleCI is running your tests Details
  • βœ… dependency-ci Dependencies checked Details
  • ❌ coverage/coveralls Coverage pending from Coveralls.io Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of nodemon is breaking the build 🚨

The devDependency nodemon was updated from 1.18.4 to 1.18.5.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

nodemon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: Your tests failed on CircleCI (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/nodemon-1.18.5 at 0.0% (Details).

Release Notes for v1.18.5

1.18.5 (2018-10-26)

Bug Fixes

  • nodemon installation for node 10.x and beyond (#1441) (3afa52c)
Commits

The new version differs by 1 commits.

  • 3afa52c fix: nodemon installation for node 10.x and beyond (#1441)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

Hello guys!

When creating a user and then having him to login I got this error:


[dev.start] POST /api/users/login 200 207.582 ms - 198
[dev.start]   APIError: Not Found!
[dev.start]
[dev.start]   - error.js?:25 new ExtendableError
[dev.start]     webpack:///./src/services/error.js?:25:11
[dev.start]
[dev.start]   - error.js?:43 new APIError
[dev.start]     webpack:///./src/services/error.js?:43:5
[dev.start]
[dev.start]   - index.js?:52 routes.all
[dev.start]     webpack:///./src/routes/index.js?:52:42
[dev.start]
[dev.start]
[dev.start] Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
[dev.start]     at validateHeader (_http_outgoing.js:503:11)

Any ideas what's wrong?

An in-range update of nps is breaking the build 🚨

Version 5.3.0 of nps just got published.

Branch Build failing 🚨
Dependency nps
Current Version 5.2.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As nps is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • βœ… dependency-ci Dependencies checked Details
  • ❌ bitHound - Dependencies 1 failing dependency. Details
  • βœ… bitHound - Code No failing files. Details
  • βœ… continuous-integration/travis-ci/push The Travis CI build passed Details
  • βœ… ci/circleci Your tests passed on CircleCI! Details
  • βœ… coverage/coveralls First build on greenkeeper/nps-5.3.0 at 89.92% Details

Release Notes v5.3.0

<a name"5.3.0">

5.3.0 (2017-05-27)

Features

Commits

The new version differs by 1 commits.

  • 76bee57 feat(cli): display name of executing script (#126) (#136)

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of lint-staged is breaking the build 🚨

Version 3.5.1 of lint-staged just got published.

Branch Build failing 🚨
Dependency lint-staged
Current Version 3.5.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As lint-staged is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ ci/circleci CircleCI is running your tests Details
  • βœ… dependency-ci Dependencies checked Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build is in progress Details
  • ❌ coverage/coveralls Coverage pending from Coveralls.io Details
  • βœ… bitHound - Code No failing files. Details
  • ❌ bitHound - Dependencies 1 failing dependency. Details

Release Notes v3.5.1

<a name"3.5.1">

3.5.1 (2017-05-29)

Bug Fixes

  • gitDir: Fix for checking if task contains git.exe on Windows (#178) (4c600178)
Commits

The new version differs by 2 commits.

  • 4c60017 fix(gitDir): Fix for checking if task contains git.exe on Windows (#178)
  • 4a91ff4 chore(package): update eslint-config-okonet to version 4.0.0 (#176)

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of mongoose is breaking the build 🚨

The dependency mongoose was updated from 5.2.14 to 5.2.15.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

mongoose is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ ci/circleci: CircleCI is running your tests (Details).
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/mongoose-5.2.15 at 0.0% (Details).

Commits

The new version differs by 26 commits.

  • c4a01ec chore: release 5.2.15
  • 1ba6ca7 fix(model): allow calling Model.init() again after calling dropDatabase()
  • 4108366 test(model): repro #6967
  • 8a178ad docs: add selectPopulatedPaths option
  • 950d223 fix(populate): add selectPopulatedPaths option to opt out of auto-adding populate()-ed fields to select()
  • c0fb363 test(populate): repro #6546
  • 6dd98c8 style: fix lint
  • 8840ffd chore: peg chalk version
  • bdd7432 docs(webpack): make webpack docs use es2015 preset for correct libs and use acorn to test output is valid ES5
  • 25c305d docs(model): add blog post link and example to syncIndexes() docs
  • 2d928b4 style: fix lint
  • dcfb894 fix(populate): handle virtual justOne correctly if it isn't set
  • 0bff408 test(populate): repro #6988
  • a01b827 fix(populate): find connect justOne when double-populating underneath an array
  • b5841c2 test(populate): repro #6798

There are 26 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of http-status is breaking the build 🚨

The dependency http-status was updated from 1.2.0 to 1.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

http-status is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ ci/circleci: Your tests failed on CircleCI (Details).

Commits

The new version differs by 3 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

yarn db:seeds-user

I'm lead to believe the way we're seeding the db with users doesn't create a BCrypt hash correctly. I was stuck on this for almost 20 minutes trying to figure out why I couldn't login with one of the seeded users information. With a bit of further investigation in user.model.js I noticed each user is correctly being created using hashSync & logged in using compareSync.. Perfect so no issues there I was stumped... So I finally read through user.seed.js and noticed you're doing this

     await User.insertMany(users);

which I think could be perfect in the case that I have a UI setup to fetch and display all users but If I needed to seed the db with accounts that would allow me to login this would be an issue. This method also avoids the middleware stack that you're using in

   routes.post(
     '/signup',
     validate(UserController.validation.create),
     UserController.create,
   );

the solution that I came with is very simple I think. Instead of the direct insert I added request as a devDependency so you can do

     return users.forEach((user) => {
    post(
      `http://localhost:${process.env.PORT || 3000}/api/users/signup`,
      { json: user },
      (error, response, body) => {
        if (!error && response.statusCode === 200) {
          console.log(body);
        }
      },
    );
  });

this method was successful for signup and i've tested it for login and it was successful!

My logs are below! Let me know what you think. If you like my idea I can sub a PR! Thanks for your time.

[dev.start]
[dev.start] {
[dev.start]   "res": {
[dev.start]     "statusCode": 500,
[dev.start]     "body": {
[dev.start]       "message": "Internal Server Error."
[dev.start]     }
[dev.start]   },
[dev.start]   "req": {
[dev.start]     "url": "/api/users/login",
[dev.start]     "headers": {
[dev.start]       "cache-control": "no-cache",
[dev.start]       "postman-token": "f66627d3-2cc7-476c-b7c9-d6722d58fb62",
[dev.start]       "content-type": "application/x-www-form-urlencoded",
[dev.start]       "user-agent": "PostmanRuntime/6.1.6",
[dev.start]       "accept": "*/*",
[dev.start]       "host": "localhost:8081",
[dev.start]       "accept-encoding": "gzip, deflate",
[dev.start]       "content-length": "52",
[dev.start]       "connection": "keep-alive"
[dev.start]     },
[dev.start]     "method": "POST",
[dev.start]     "httpVersion": "1.1",
[dev.start]     "originalUrl": "/api/users/login",
[dev.start]     "query": {},
[dev.start]     "body": {
[dev.start]       "email": "[email protected]",
[dev.start]       "password": "password1"
[dev.start]     }
[dev.start]   },
[dev.start]   "responseTime": 8,
[dev.start]   "level": "info",
[dev.start]   "message": "HTTP POST /api/users/login 500 8ms"
[dev.start] }
[dev.start] POST /api/users/login 500 8.087 ms - 36
[dev.start]   Error: Not a valid BCrypt hash.

error An unexpected error occurred: "Reduce of empty array with no initial value".

Arguments: 
  C:\Program Files\nodejs\node.exe C:\Program Files (x86)\Yarn\bin\yarn.js install

PATH: 
  C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Docker\Docker\Resources\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files (x86)\Yarn\bin\;C:\HashiCorp\Vagrant\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Users\Mikk\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Users\Mikk\AppData\Roaming\npm;C:\Users\Mikk\AppData\Local\Yarn\bin;C:\Program Files\heroku\bin;C:\Program Files\MongoDB\Server\4.0\bin;C:\Users\Mikk\AppData\Local\now-cli;C:\Users\Mikk\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin

Yarn version: 
  1.7.0

Node version: 
  8.11.3

Platform: 
  win32 x64

Trace: 
  TypeError: Reduce of empty array with no initial value
      at Array.reduce (<anonymous>)
      at PackageLinker.<anonymous> (C:\Program Files (x86)\Yarn\lib\cli.js:50461:43)
      at Generator.next (<anonymous>)
      at step (C:\Program Files (x86)\Yarn\lib\cli.js:98:30)
      at C:\Program Files (x86)\Yarn\lib\cli.js:109:13
      at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)

npm manifest: 
  {
    "name": "nodejs-api-boilerplate",
    "description": "A NodeJS server boilerplate for help you kickstart you futur node project. ES6/ES7 features.",
    "version": "1.0.3",
    "author": "Emanuel Quimper <[email protected]> <https://github.com/EQuimper>",
    "repository": {
      "type": "git",
      "url": "https://github.com/EQuimper/nodejs-api-boilerplate"
    },
    "bugs": {
      "type": "git",
      "url": "https://github.com/EQuimper/nodejs-api-boilerplate/issues"
    },
    "engines": {
      "node": ">= 6.10",
      "npm": ">= 3.10",
      "yarn": ">=0.20.3"
    },
    "main": "./src/index.js",
    "keywords": [
      "express",
      "es6",
      "es7",
      "rest",
      "api",
      "boilerplate",
      "mongodb",
      "node",
      "javascript",
      "pm2",
      "babel",
      "nps",
      "commitizen",
      "semantic-release",
      "prettier",
      "lint-staged",
      "webpack2"
    ],
    "license": "MIT",
    "lint-staged": {
      "src/**/*.js": [
        "yarn prettier",
        "git add"
      ]
    },
    "scripts": {
      "build": "nps build",
      "start": "nps",
      "test": "nps test",
      "test:watch": "nps test.watch",
      "dev": "nps dev",
      "dev:debug": "nps dev.debug",
      "prettier": "prettier --write '{src,__{tests,mocks}__}/**/*.js'",
      "precommit": "nps lintStaged && nps validate",
      "checkCover": "nps test.checkCover",
      "cover": "nps test.cover",
      "db:seeds-user": "nps db.seedsUser",
      "db:seeds-clear": "nps db.seedsClearUser",
      "db:seeds-clear-user": "nps db.seedsClear",
      "lint": "nps lint",
      "lint:fix": "nps lint.fix",
      "reportCoverage": "nps reportCoverage",
      "doc": "nps doc",
      "doc:deploy": "nps doc.deploy",
      "contributors:add": "all-contributors add",
      "contributors:generate": "all-contributors generate"
    },
    "devDependencies": {
      "ajv": "^6.0.0",
      "ajv-keywords": "^3.0.0",
      "all-contributors-cli": "^4.4.0",
      "apidoc": "^0.17.5",
      "babel-cli": "^6.26.0",
      "babel-loader": "^7.1.2",
      "babel-plugin-transform-object-rest-spread": "^6.26.0",
      "babel-preset-env": "^1.6.0",
      "babel-register": "^6.26.0",
      "chai": "^4.1.1",
      "coveralls": "^3.0.0",
      "eslint": "^4.5.0",
      "eslint-config-equimper": "^2.2.1",
      "eslint-config-prettier": "^2.3.0",
      "faker": "^4.1.0",
      "husky": "^0.14.3",
      "istanbul": "1.1.0-alpha.1",
      "mocha": "^5.0.2",
      "lint-staged": "^7.0.0",
      "morgan": "^1.8.1",
      "nodemon": "^1.11.0",
      "nps": "^5.7.1",
      "nps-utils": "^1.3.0",
      "prettier": "^1.6.1",
      "semantic-release": "^15.0.0",
      "source-list-map": "2.0.0",
      "superagent": "^3.6.0",
      "supertest": "^3.0.0",
      "webpack": "^4.0.0",
      "webpack-node-externals": "^1.6.0",
      "webpack-sources": "1.0.2"
    },
    "dependencies": {
      "bcrypt-nodejs": "^0.0.3",
      "body-parser": "^1.17.1",
      "chalk": "^2.1.0",
      "compression": "^1.7.0",
      "cors": "^2.8.4",
      "dotenv": "^5.0.0",
      "express": "^4.15.4",
      "express-status-monitor": "^1.0.0",
      "express-validation": "^1.0.2",
      "express-winston": "^2.4.0",
      "helmet": "^3.8.1",
      "http-status": "^1.0.1",
      "joi": "^13.0.1",
      "jsonwebtoken": "^8.0.0",
      "method-override": "^2.3.8",
      "mongoose": "^5.0.0",
      "mongoose-unique-validator": "^2.0.0",
      "passport": "^0.4.0",
      "passport-jwt": "^3.0.0",
      "passport-local": "^1.0.0",
      "pm2": "^2.6.1",
      "pretty-error": "^2.1.1",
      "raven": "^2.1.2",
      "slug": "^0.9.1",
      "winston": "^2.3.1"
    }
  }

yarn manifest: 
  No manifest

An in-range update of helmet is breaking the build 🚨

The dependency helmet was updated from 3.13.0 to 3.14.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

helmet is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ ci/circleci: Your tests failed on CircleCI (Details).

Commits

The new version differs by 5 commits.

  • d81dc40 3.14.0
  • c734b30 Update changelog for 3.14.0 release
  • ebf80d7 Travis shouldn't test on EOL'd Node 4; should test on 8
  • db8fdc7 Add featurePolicy middleware
  • 0468c37 Add mocha.opts to check for a few rare bugs

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of mocha is breaking the build 🚨

Version 3.4.0 of mocha just got published.

Branch Build failing 🚨
Dependency mocha
Current Version 3.3.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As mocha is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • βœ… dependency-ci Dependencies checked Details,- ❌ continuous-integration/travis-ci/push The Travis CI build is in progress Details,- βœ… bitHound - Dependencies No failing dependencies. Details,- βœ… bitHound - Code No failing files. Details,- ❌ ci/circleci Your tests failed on CircleCI Details

Release Notes v3.4.0

Mocha is now moving to a quicker release schedule: when non-breaking changes are merged, a release should happen that week.

This week's highlights:

  • allowUncaught added to commandline as --allow-uncaught (and bugfixed)
  • warning-related Node flags

πŸŽ‰ Enhancements

πŸ› Fixes

πŸ”© Other

Commits

The new version differs by 9 commits0.

  • 7554b31 Add Changelog for v3.4.0
  • 9f7f7ed Add --trace-warnings flag
  • 92561c8 Add --no-warnings flag
  • ceee976 lint test/integration/fixtures/simple-reporter.js
  • dcfc094 Revert "use semistandard directly"
  • 93392dd no special case for macOS running Karma locally
  • 4d1d91d --allow-uncaught cli option
  • fb1e083 fix allowUncaught in browser
  • 4ed3fc5 Add license report and scan status

false

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of apidoc is breaking the build 🚨

The devDependency apidoc was updated from 0.17.6 to 0.17.7.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

apidoc is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: Your tests failed on CircleCI (Details).

Commits

The new version differs by 13 commits.

  • 16bf56a Merge pull request #760 from manishsaraan/publish-with-commander
  • 0e262e6 version bump
  • 8c08b52 Merge pull request #752 from panz3r/nomnom-migration
  • 54d32b1 fix(Test): Fix failing test
  • bd27fa0 feat(Commander): Migrate 'nomnom' to 'commander-js'
  • 4675adb Merge pull request #751 from manishsaraan/update-dependencies
  • 6e86605 winston logger code updated
  • faad2d3 Merge pull request #729 from misaon/patch-2
  • b4ec4b8 Merge pull request #728 from misaon/patch-1
  • d8916c1 dependencies updated
  • 9f44fc6 enable Czech translation (PR: #728)
  • 4fcae49 Update cs.js
  • d43a2f6 Add Czech translation.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of nps is breaking the build 🚨

Version 5.3.2 of nps just got published.

Branch Build failing 🚨
Dependency nps
Current Version 5.3.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As nps is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • βœ… dependency-ci Dependencies checked Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build is in progress Details
  • ❌ ci/circleci Your tests failed on CircleCI Details

Release Notes v5.3.2

<a name"5.3.2">

5.3.2 (2017-06-15)

Bug Fixes

Commits

The new version differs by 6 commits.

  • 1bad1f9 fix: scriptName early error (#147)
  • 70568c0 chore: update CONTRIBUTING.md to reflect the updated scripts
  • 7cc66c6 docs: add myself as contributor
  • cf5e805 refactor: organize contributors script
  • 36a4438 refactor: move semantic-release entirely to Travis
  • 092b719 refactor: move codecov reporting entirely to Travis

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of mongoose-unique-validator is breaking the build 🚨

The dependency mongoose-unique-validator was updated from 2.0.1 to 2.0.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

mongoose-unique-validator is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).
  • ❌ ci/circleci: Your tests failed on CircleCI (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/mongoose-unique-validator-2.0.2 at 0.0% (Details).

Commits

The new version differs by 2 commits.

  • 1cc09b1 Marking as 2.0.2
  • 785fa2f changed .count to .countDocuments. Because .count is deprecated and will be removed in future versions. And it's raising flags when being used. (#84)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of ajv is breaking the build 🚨

The devDependency ajv was updated from 6.5.3 to 6.5.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ajv is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: Your tests failed on CircleCI (Details).
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/ajv-6.5.4 at 0.0% (Details).

Commits

The new version differs by 8 commits.

  • 8578816 6.5.4
  • 5c41a84 Merge pull request #863 from epoberezkin/fix-861-property-names
  • c1f929b fix: propertyNames with empty schema, closes #861
  • 70362b9 test: failing test for #861
  • 12e1655 Merge pull request #862 from billytrend/patch-2
  • f01e92a Fixes grammar
  • 851b73c Merge pull request #858 from epoberezkin/greenkeeper/bluebird-pin-3.5.1
  • 9aa65f7 fix: pin bluebird to 3.5.1

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of husky is breaking the build 🚨

Version 0.13.4 of husky just got published.

Branch Build failing 🚨
Dependency husky
Current Version 0.13.3
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As husky is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • βœ… dependency-ci Dependencies checked Details
  • ❌ bitHound - Dependencies 1 failing dependency. Details
  • βœ… bitHound - Code No failing files. Details
  • βœ… ci/circleci Your tests passed on CircleCI! Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details
  • βœ… coverage/coveralls First build on greenkeeper/husky-0.13.4 at 89.92% Details

Commits

The new version differs by 9 commits.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of ajv-keywords is breaking the build 🚨

The devDependency ajv-keywords was updated from 3.3.0 to 3.4.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ajv-keywords is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 13 commits.

  • 1ec78c7 3.4.0
  • 8350454 refactor: return boolean schema true instead of empty schema {}
  • f261c0c feat: metaSchema and dependencies for formatExclusiveMaximum/Minimum, close #63
  • bdcf858 feat: make "format" a dependency of "formatMaximum/Minimum"
  • da6e030 feat: make "properties" a dependency of "allRequired"
  • 13f692a docs: mark "switch" as deprecated
  • 4449d17 style fixes, closes #81
  • 4bc66b4 feat: anyRequired keyword, closes #85
  • 87a637f feat: allRequired keyword, closes #79
  • 16a5695 Merge branch 'willfarrell-feature/transform'
  • f3a159b fix: transform keyword toEnumCase, closes #83
  • 1b6eebb Merge branch 'feature/transform' of https://github.com/willfarrell/ajv-keywords into willfarrell-feature/transform
  • b3c4623 test: add test for when trim and toEnumCase exist

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of lint-staged is breaking the build 🚨

The devDependency lint-staged was updated from 7.2.2 to 7.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

lint-staged is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: Your tests failed on CircleCI (Details).
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/lint-staged-7.3.0 at 0.0% (Details).

Release Notes for v7.3.0

7.3.0 (2018-09-20)

Features

  • Allow linting files outside of project folder (#495) (d386c80)
Commits

The new version differs by 1 commits.

  • d386c80 feat: Allow linting files outside of project folder (#495)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of express-status-monitor is breaking the build 🚨

The dependency express-status-monitor was updated from 1.1.5 to 1.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

express-status-monitor is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).
  • ❌ ci/circleci: Your tests failed on CircleCI (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/express-status-monitor-1.2.0 at 0.0% (Details).

Commits

The new version differs by 9 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Can't start the project in DEV after following getting-started instructions

Cloned the project.
Did yarn install
created .env
Mongo runs

I do yarn dev and get this:

nodejs-jwt-mongo-api-boilerplate git:(master) βœ— yarn dev yarn run v1.10.1 $ nps dev nps is executingdev: node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold" --prefix "[{name}]" --names "dev.watch,dev.start" 'nps dev.watch' 'nps dev.start' [dev.start] nps is executingdev.start: node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development nodemon dist/index.bundle.js [dev.watch] nps is executingdev.watch: webpack -w [dev.start] events.js:165 [dev.start] throw er; // Unhandled 'error' event [dev.start] ^ [dev.start] [dev.start] Error: spawn nodemon ENOENT [dev.start] at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19) [dev.start] at onErrorNT (internal/child_process.js:379:16) [dev.start] at process._tickCallback (internal/process/next_tick.js:178:19) [dev.start] at Function.Module.runMain (internal/modules/cjs/loader.js:697:11) [dev.start] at startup (internal/bootstrap/node.js:201:19) [dev.start] at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3) [dev.start] Emitted 'error' event at: [dev.start] at Process.ChildProcess._handle.onexit (internal/child_process.js:207:12) [dev.start] at onErrorNT (internal/child_process.js:379:16) [dev.start] [... lines matching original stack trace ...] [dev.start] at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3) [dev.start] The script called "dev.start" which runs "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development nodemon dist/index.bundle.js" failed with exit code 1 https://github.com/kentcdodds/nps/blob/v5.9.3/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code [dev.start] nps dev.start exited with code 1 --> Sending SIGTERM to other processes.. [dev.watch] nps dev.watch exited with code null The script called "dev" which runs "node node_modules/concurrently/src/main.js --kill-others-on-fail --prefix-colors "bgBlue.bold,bgMagenta.bold" --prefix "[{name}]" --names "dev.watch,dev.start" 'nps dev.watch' 'nps dev.start'" failed with exit code 1 https://github.com/kentcdodds/nps/blob/v5.9.3/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

An in-range update of mongoose is breaking the build 🚨

Version 4.10.0 of mongoose just got published.

Branch Build failing 🚨
Dependency mongoose
Current Version 4.9.10
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

mongoose is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ bitHound - Dependencies null Details
  • ❌ bitHound - Code null Details
  • ❌ ci/circleci CircleCI is running your tests Details
  • βœ… dependency-ci Dependencies checked Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details
  • βœ… coverage/coveralls First build on greenkeeper/mongoose-4.10.0 at 84.748% Details

Commits

The new version differs by 59 commits.

  • 43752e8 chore: release 4.10.0
  • 142fbba Merge pull request #5270 from Automattic/4.10
  • 4bc7b3e docs: add missing ignores to sharding plugin
  • e8c8789 Merge branch '4.10' of github.com:Automattic/mongoose into 4.10
  • 9d4c9d4 Merge branch 'master' into 4.10
  • b8f0dd8 Merge pull request #5253 from Automattic/5145
  • f3805fa Merge pull request #5252 from Automattic/4569
  • 8ba7869 Merge pull request #5268 from clozanosanchez/patch-2
  • 373bb6f Update clone method to include indexes
  • 07b12f0 chore: now working on 4.9.11
  • 2373502 Merge branch '4.10' into 5145
  • 214323d Merge branch '4.10' into 4569
  • 636e922 style: fix lint
  • 6987ba8 fix(document): make nested doc keys not enumerable again
  • 25c350f fix(model): always emit 'index', even if no indexes

There are 59 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of morgan is breaking the build 🚨

Version 1.9.1 of morgan was just published.

Branch Build failing 🚨
Dependency morgan
Current Version 1.9.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

morgan is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/morgan-1.9.1 at 0.0% (Details).
  • ❌ ci/circleci: A command timed out during your tests (Details).

Release Notes 1.9.1
  • Fix using special characters in format
  • deps: depd@~1.1.2
    • perf: remove argument reassignment
Commits

The new version differs by 27 commits.

There are 27 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of snyk is breaking the build 🚨

Version 1.31.1 of snyk just got published.

Branch Build failing 🚨
Dependency snyk
Current Version 1.31.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

snyk is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ ci/circleci CircleCI is running your tests Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build is in progress Details
  • βœ… dependency-ci Dependencies checked Details
  • ❌ bitHound - Dependencies 1 failing dependency. Details
  • βœ… bitHound - Code No failing files. Details

Release Notes v1.31.1

<a name"1.31.1">

1.31.1 (2017-05-29)

Bug Fixes

  • remove and log vulns with no upgradeable path (b1039d36)
Commits

The new version differs by 1 commits.

  • b1039d3 fix: remove and log vulns with no upgradeable path

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Add Rate limit for API Call

I want to add rate limit in rate limit for API call for particular time as per security concern. Can you please guide me regarding this? We can send rate-limit in the header and validate fraud user.

An in-range update of joi is breaking the build 🚨

The dependency joi was updated from 13.6.0 to 13.7.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

joi is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ ci/circleci: Your tests failed on CircleCI (Details).

Commits

The new version differs by 9 commits.

  • e4b82f6 13.7.0
  • 6bbbdaf Add documentation for #1562.
  • 1e837de Merge pull request #1599 from rluba/patch-1
  • fd1911a Link to isemail for email() options
  • a496210 Merge pull request #1572 from dnalborczyk/patch-1
  • 73f3efd Update API.md
  • da70a73 Merge pull request #1562 from kanongil/symbol-support
  • 070d3c9 Remove symbol key for map and revise stringification
  • 8f7f242 Add symbol() type

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of cors is breaking the build 🚨

The dependency cors was updated from 2.8.4 to 2.8.5.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

cors is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ ci/circleci: Your tests failed on CircleCI (Details).

Commits

The new version differs by 52 commits.

There are 52 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml
  • The new Node.js version is in-range for the engines in 1 of your package.json files, so that was left alone

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected πŸ€–


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of jsonwebtoken is breaking the build 🚨

The dependency jsonwebtoken was updated from 8.3.0 to 8.4.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

jsonwebtoken is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ ci/circleci: Your tests failed on CircleCI (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/jsonwebtoken-8.4.0 at 0.0% (Details).

Commits

The new version differs by 27 commits.

  • 86334aa 8.4.0
  • e7938f0 Add verify option for nonce validation (#540)
  • 0268813 devDeps: [email protected] (#539)
  • dc89a64 Edited the README.md to make certain parts of the document for the api easier to read, emphasizing the examples. (#548)
  • 8864542 Refactor tests related to kid and keyid (#545)
  • 0906a3f Refactor tests related to iss and issuer (#543)
  • 1956c40 Update README.md (#538)
  • 7f9604a Fixed error message when empty string passed as expiresIn or notBefore option (#531)
  • cfd1079 Updating Node version in Engines spec in package.json (#528)
  • 1c8ff5a Implement async/sync tests for the aud claim (#535)
  • 88bc965 Implement async/sync tests for nbf claim (#537)
  • 9ae3f20 Implement async/sync tests for exp claim (#536)
  • 342b07b Implement async/sync tests for sub claim (#534)
  • 29cd654 Document NotBeforeError (#529)
  • 683d8a9 Create and implement async/sync test helpers (#523)

There are 27 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.