Skip to content

Commit 754781c

Browse files
committed
feat: upgrade node to 10.15.1 & deps
1 parent 6142c8a commit 754781c

File tree

8 files changed

+1145
-1741
lines changed

8 files changed

+1145
-1741
lines changed

.babelrc

Lines changed: 0 additions & 19 deletions
This file was deleted.

.mdeprc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"node": "10.14.2",
2+
"node": "10.15.1",
33
"repo": "microfleet",
44
"p": "html-to-pdf",
55
"nycCoverage": false,
66
"tests": "__tests__/**/*.spec.js",
7-
"test_framework": "jest --coverageDirectory <coverageDirectory> --forceExit",
7+
"test_framework": "jest --coverageDirectory <coverageDirectory> --detectOpenHandles --runTestsByPath",
88
"docker_compose": "__tests__/docker-compose.yml",
99
"rebuild": ["64"]
1010
}

.nycrc

Lines changed: 0 additions & 19 deletions
This file was deleted.

__tests__/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ services:
2020

2121
tester:
2222
container_name: tester
23-
image: makeomatic/node:10.14.2-chrome-tester
23+
image: makeomatic/node:10.15.1-chrome-tester
2424
links:
2525
- redis
2626
- rabbitmq

babel.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = (api) => {
2+
const plugins = [
3+
'@babel/plugin-transform-strict-mode',
4+
'@babel/plugin-proposal-class-properties',
5+
['@babel/plugin-proposal-object-rest-spread', {
6+
useBuiltIns: true,
7+
}],
8+
];
9+
10+
api.cache(() => process.env.NODE_ENV);
11+
12+
return {
13+
plugins,
14+
};
15+
};

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,19 @@
4444
"@babel/plugin-proposal-class-properties": "^7.2.3",
4545
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
4646
"@babel/plugin-transform-strict-mode": "^7.2.0",
47-
"@babel/register": "^7.0.0",
48-
"@makeomatic/deploy": "^8.3.0",
47+
"@makeomatic/deploy": "^8.4.0",
4948
"@semantic-release/changelog": "^3.0.1",
5049
"@semantic-release/exec": "^3.3.1",
5150
"@semantic-release/git": "7.0.8",
52-
"babel-core": "^7.0.0-bridge.0",
5351
"babel-eslint": "^10.0.1",
54-
"babel-jest": "^23.4.2",
55-
"babel-plugin-istanbul": "^5.1.0",
5652
"cheerio": "^1.0.0-rc.2",
5753
"codecov": "^3.1.0",
5854
"cross-env": "^5.2.0",
5955
"eslint": "^5.10.0",
6056
"eslint-config-makeomatic": "^3.0.0",
6157
"eslint-plugin-import": "^2.14.0",
6258
"eslint-plugin-promise": "^4.0.1",
63-
"jest": "^23.6.0",
59+
"jest": "^24.1.0",
6460
"json": "^9.0.6",
6561
"rimraf": "^2.6.2"
6662
},

src/configs/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ exports.router = {
2626
},
2727
extensions: {
2828
enabled: ['postRequest', 'preRequest', 'preResponse'],
29-
register: [autoSchema, auditLog],
29+
register: [autoSchema, auditLog()],
3030
},
3131
};

0 commit comments

Comments
 (0)