Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04e15a6

Browse files
committed
Update npm modules
1 parent 93f9795 commit 04e15a6

File tree

5 files changed

+243
-202
lines changed

5 files changed

+243
-202
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- GOOGLE_SECRET=xxxxx
1919
- TWITTER_KEY=xxxxx
2020
- TWITTER_SECRET=xxxxx
21-
- image: postgres:9.6.5-alpine
21+
- image: postgres:10.0-alpine
2222
- image: redis:4.0.2-alpine
2323
working_directory: ~/repo
2424
steps:

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ This project was bootstraped with [Node.js API Starter Kit][nodejskit] ([support
2020
* [Docker][docker], [Node.js][node], [Yarn][yarn], [JavaScript][js], [Babel][babel], [Flow][flow], [Prettier][prettier] — core platform and dev tools
2121
* [Express][express], [Passport.js][passport], [session][session], [flash][flash], [cors][cors] etc. — common HTTP-server features
2222
* [GraphQL.js][gqljs], [GraphQL.js Relay][gqlrelay], [DataLoader][loader], [validator][validator][GraphQL][gql] schema and API endpoint
23-
* [PostgreSQL][pg], [Redis][redis], [Knex][knex], [pg][nodepg] — SQL, document, key/value data store and data acess
23+
* [PostgreSQL][pg], [Redis][redis], [Knex][knex], [pg][nodepg] — SQL, document, key/value data store; data acess and migrations
2424
* [Nodemailer][mailer], [Handlebars][hbs], [Juice][juice] — transactional email and email templates /w layout support
2525
* [I18next][i18next], [I18next Middleware][i18nextmid], [I18next Backend][i18nextback] — localization and translations
26+
* [Jest][jest] - unit and snapshot testing
2627

2728
## Directory Layout
2829

@@ -174,8 +175,12 @@ However, if you decide to get involved, please take a moment to review the [guid
174175
* [Stop using JWT for sesstions](http://cryto.net/~joepie91/blog/2016/06/13/stop-using-jwt-for-sessions/)
175176
([part 2](http://cryto.net/~joepie91/blog/2016/06/19/stop-using-jwt-for-sessions-part-2-why-your-solution-doesnt-work/))
176177
by [Sven Slootweg](https://github.com/joepie91)
177-
* [How to Safely Store Your Users' Passwords](https://paragonie.com/blog/2016/02/how-safely-store-password-in-2016) by [P.I.E.](https://paragonie.com/)
178-
* [How to set up Node.js API Starter on Windows 10](https://medium.com/@daveyedwards/how-to-setup-kriasofts-nodejs-api-starter-on-windows-10-a092d6e34882) ([video](https://youtu.be/IV4IsYyfdKI)) by [Davey Edwards](https://twitter.com/daveyedwards)
178+
* [How to Safely Store Your Users' Passwords](https://paragonie.com/blog/2016/02/how-safely-store-password-in-2016)
179+
by [P.I.E.](https://paragonie.com/)
180+
* [How to set up Node.js API Starter on Windows 10](https://medium.com/@daveyedwards/how-to-setup-kriasofts-nodejs-api-starter-on-windows-10-a092d6e34882)
181+
([video](https://youtu.be/IV4IsYyfdKI)) by [Davey Edwards](https://twitter.com/daveyedwards)
182+
* [How to call C/C++ code from Node.js](https://medium.com/@tarkus/how-to-call-c-c-code-from-node-js-86a773033892)
183+
by [Konstantin Tarkus](https://twitter.com/koistya)
179184

180185

181186
## Related Projects
@@ -238,4 +243,5 @@ Made with ♥ by Konstantin Tarkus ([@koistya](https://twitter.com/koistya), [bl
238243
[i18next]: https://www.i18next.com/
239244
[i18nextmid]: https://github.com/i18next/i18next-express-middleware
240245
[i18nextback]: https://github.com/i18next/i18next-node-fs-backend
246+
[jest]: http://facebook.github.io/jest/
241247
[gitter]: https://gitter.im/kriasoft/nodejs-api-starter

package.json

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,40 @@
55
"gypfile": true,
66
"dependencies": {
77
"bindings": "^1.3.0",
8-
"bluebird": "^3.5.0",
8+
"bluebird": "^3.5.1",
99
"body-parser": "^1.18.2",
1010
"compression": "^1.7.1",
11-
"connect-redis": "^3.3.0",
11+
"connect-redis": "^3.3.2",
1212
"cookie-parser": "^1.4.3",
1313
"cors": "^2.8.4",
1414
"dataloader": "^1.3.0",
15-
"express": "^4.15.5",
15+
"express": "^4.16.1",
1616
"express-flash": "^0.0.2",
1717
"express-graphql": "^0.6.11",
1818
"express-session": "^1.15.6",
1919
"faker": "^4.1.0",
20-
"graphql": "^0.11.4",
21-
"graphql-relay": "^0.5.2",
20+
"graphql": "^0.11.7",
21+
"graphql-relay": "^0.5.3",
2222
"handlebars": "^4.0.10",
2323
"handlebars-layouts": "^3.1.4",
24-
"i18next": "^9.0.0",
24+
"i18next": "^9.0.1",
2525
"i18next-express-middleware": "^1.0.6",
2626
"i18next-node-fs-backend": "^1.0.0",
27-
"jest": "^21.2.0",
28-
"juice": "^4.1.1",
27+
"jest": "^21.2.1",
28+
"juice": "^4.2.0",
2929
"knex": "^0.13.0",
3030
"node-addon-api": "^1.0.0",
3131
"node-fetch": "^1.7.3",
32-
"nodemailer": "^4.1.1",
32+
"nodemailer": "^4.1.2",
3333
"passport": "^0.4.0",
3434
"passport-facebook": "^2.1.1",
3535
"passport-google-oauth": "^1.0.0",
3636
"passport-twitter": "^1.0.4",
3737
"pg": "^7.3.0",
3838
"pretty-error": "^2.1.1",
3939
"redis": "^2.8.0",
40-
"source-map-support": "^0.4.18",
41-
"validator": "^8.2.0"
40+
"source-map-support": "^0.5.0",
41+
"validator": "^9.0.0"
4242
},
4343
"devDependencies": {
4444
"babel-cli": "^6.26.0",
@@ -54,16 +54,16 @@
5454
"babel-register": "^6.26.0",
5555
"chokidar": "^1.7.0",
5656
"del": "3.0.0",
57-
"eslint": "^4.7.2",
58-
"eslint-config-airbnb-base": "^12.0.1",
57+
"eslint": "^4.8.0",
58+
"eslint-config-airbnb-base": "^12.0.2",
5959
"eslint-config-prettier": "^2.6.0",
60-
"eslint-plugin-flowtype": "^2.36.0",
60+
"eslint-plugin-flowtype": "^2.38.0",
6161
"eslint-plugin-import": "^2.7.0",
6262
"eslint-plugin-prettier": "^2.3.1",
63-
"flow-bin": "^0.55.0",
63+
"flow-bin": "^0.56.0",
6464
"husky": "^0.14.3",
6565
"lint-staged": "^4.2.3",
66-
"prettier": "^1.7.1"
66+
"prettier": "^1.7.4"
6767
},
6868
"jest": {
6969
"setupTestFrameworkScriptFile": "<rootDir>/tools/jest.setup.js"
@@ -87,6 +87,7 @@
8787
"db-rollback": "node tools/db.js rollback",
8888
"db-migration": "node tools/db.js migration",
8989
"db-seed": "node tools/db.js seed",
90+
"docker": "docker-compose run --rm api yarn",
9091
"docker-install": "docker-compose run --rm --no-deps api yarn install",
9192
"docker-upgrade": "docker-compose run --rm --no-deps api yarn upgrade",
9293
"docker-test": "docker-compose run api yarn test",

src/utils/__tests__/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ describe('utils', () => {
5353
});
5454

5555
test('passwordVerify()', async () => {
56-
const hash = '$argon2i$v=19$m=32768,t=4,p=1$/N3vumg47o4EfbdB5FZ5xQ$utzaQCjEKmBTW1g1+50KUOgsRdUmRhNI1TfuxA8X9qU';
56+
const hash =
57+
'$argon2i$v=19$m=32768,t=4,p=1$/N3vumg47o4EfbdB5FZ5xQ$utzaQCjEKmBTW1g1+50KUOgsRdUmRhNI1TfuxA8X9qU';
5758
const result1 = await passwordVerify('Passw0rd', hash);
5859
const result2 = await passwordVerify('wrong-pass', hash);
5960
expect(result1).toBe(true);

0 commit comments

Comments
 (0)