Skip to content

Commit 384a405

Browse files
author
Roman Heckendorf
committed
BUGFIX: fixed security vulnerabilities
1 parent d128413 commit 384a405

File tree

11 files changed

+13895
-3069
lines changed

11 files changed

+13895
-3069
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"presets": [
3-
"@immowelt/babel-preset-immowelt-node"
3+
"@babel/preset-flow"
44
]
55
}

.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"extends": "@immowelt/eslint-config-immowelt-react"
2+
"extends": "@immowelt/eslint-config-immowelt-base",
3+
"rules": {
4+
"compat/compat": 0
5+
}
36
}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.16.2
1+
12.13.1

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- "8.11.4"
4+
- "12.13.1"
55
cache:
66
directories:
77
- node_modules
88
notifications:
99
email: false
1010
before_install:
11-
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.6.0
11+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.19.2
1212
- export PATH="$HOME/.yarn/bin:$PATH"
1313
install:
1414
- yarn

package.json

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
"scripts": {
2626
"test": "jest",
27-
"clean": "rimraf dist",
27+
"clean": "rimraf dist node_modules flow-typed",
2828
"build": "babel src --out-dir dist --ignore spec.js && flow-copy-source -v src dist --ignore='*.spec.js'",
2929
"dev": "nodemon --quiet --watch src --exec 'yarn build'",
3030
"flow": "flow",
@@ -36,27 +36,31 @@
3636
"release": "semantic-release"
3737
},
3838
"dependencies": {
39-
"@immowelt/babel-preset-immowelt-node": "1.1.1",
40-
"@immowelt/eslint-config-immowelt-react": "2.1.1",
41-
"babel-cli": "6.26.0",
4239
"debug-logger": "0.4.1",
43-
"envalid": "4.2.2",
40+
"envalid": "6.0.0",
4441
"lodash.merge": "4.6.2",
4542
"lodash.omit": "4.5.0",
4643
"node-eval": "2.0.0"
4744
},
4845
"devDependencies": {
46+
"@babel/cli": "7.7.4",
47+
"@babel/core": "7.7.4",
48+
"@babel/preset-flow": "7.7.4",
49+
"@immowelt/eslint-config-immowelt-base": "1.2.0",
4950
"@immowelt/jest-preset-node": "1.1.1",
50-
"eslint": "5.16.0",
51+
"eslint": "6.7.1",
52+
"eslint-plugin-compat": "3.3.0",
53+
"eslint-plugin-flowtype": "4.5.2",
54+
"eslint-plugin-import": "2.18.2",
5155
"flow-bin": "0.112.0",
52-
"flow-copy-source": "1.3.0",
56+
"flow-copy-source": "2.0.9",
5357
"flow-typed": "2.6.2",
54-
"jest": "23.6.0",
58+
"jest": "24.9.0",
5559
"mock-fs": "4.10.4",
56-
"nodemon": "1.19.4",
60+
"nodemon": "2.0.1",
5761
"prettier": "1.19.1",
58-
"rimraf": "2.7.1",
59-
"semantic-release": "13.4.1"
62+
"rimraf": "3.0.0",
63+
"semantic-release": "15.13.31"
6064
},
6165
"jest": {
6266
"preset": "@immowelt/jest-preset-node"

src/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @flow
22

3-
import type {PathsType} from './lib/createPathUtils.js';
4-
import type {EnvironmentType} from './lib/parseEnvironmentVariables.js';
3+
import type {PathsType} from './lib/createPathUtils';
4+
import type {EnvironmentType} from './lib/parseEnvironmentVariables';
55

66
export type OptionsType = {
77
rootDirPath: string,
@@ -62,7 +62,6 @@ function createConfig(opts: OptionsType): ConfigType {
6262
]);
6363
let config = Object.assign({}, rest, {env});
6464

65-
6665
// Utilities and environment globals.
6766
// All globals added here must also be added to your projects `.eslintrc`
6867
config.paths = utils.createPathUtils(rootDirPath, pathsByKey);

src/lib/createPathUtils.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ function createPathUtils(rootDirPath: string = '/', additionalPathsByKey: Additi
2727
const paths: PathsType = {root};
2828

2929
Object.keys(additionalPathsByKey).forEach(key => {
30-
const path = additionalPathsByKey[key];
31-
paths[key] = root.bind(null, path);
30+
paths[key] = root.bind(null, additionalPathsByKey[key]);
3231
});
3332

3433
return paths;

src/lib/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
// @flow
22

3+
const createPathUtils = require('./createPathUtils');
4+
const loadEnvironmentOverrides = require('./loadEnvironmentOverrides');
5+
const parseEnvironmentVariables = require('./parseEnvironmentVariables');
6+
37
module.exports = {
4-
createPathUtils: require('./createPathUtils.js'),
5-
loadEnvironmentOverrides: require('./loadEnvironmentOverrides.js'),
6-
parseEnvironmentVariables: require('./parseEnvironmentVariables.js')
8+
createPathUtils,
9+
loadEnvironmentOverrides,
10+
parseEnvironmentVariables
711
};

src/lib/loadEnvironmentOverrides.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export type OverridesFnType = (config: Object) => Object;
55
const fs = require('fs');
66
const safeEval = require('node-eval');
77
const {warn} = require('debug-logger')('create-config');
8+
89
const defaultOverrides: OverridesFnType = () => ({});
910

1011
/**

0 commit comments

Comments
 (0)