Skip to content

Commit 23860cf

Browse files
authored
Merge pull request #4 from smooth-code/upgrade-dependencies
feat: upgrade dependencies
2 parents 3eab87c + 15da8f6 commit 23860cf

File tree

6 files changed

+3872
-2834
lines changed

6 files changed

+3872
-2834
lines changed

.babelrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"presets": [
33
[
4-
"env",
4+
"@babel/preset-env",
55
{
66
"loose": true,
77
"targets": {
8-
"node": "8.4"
8+
"node": "10"
99
}
1010
}
1111
]
1212
],
13-
"plugins": ["transform-object-rest-spread", "transform-class-properties"]
13+
"plugins": ["@babel/plugin-proposal-class-properties"]
1414
}

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
/lib/
3+
package.json
4+
CHANGELOG.md

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ services:
66
addons:
77
postgresql: '9.6'
88
node_js:
9-
- 8
10-
- 9
9+
- 10
10+
- 12

package.json

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,40 @@
99
"build": "babel -d lib src",
1010
"lint": "eslint .",
1111
"prebuild": "rm -rf lib",
12+
"format": "prettier --write \"**/*.{js,md,mdx}\"",
1213
"test": "yarn lint && yarn build && jest --ci && bin/knex-scripts create && bin/knex-scripts dump && bin/knex-scripts load && bin/knex-scripts drop && bin/knex-scripts check-structure",
1314
"release": "yarn build && standard-version && conventional-github-releaser -p angular"
1415
},
1516
"bin": {
1617
"knex-scripts": "bin/knex-scripts"
1718
},
1819
"dependencies": {
19-
"chalk": "^2.3.0",
20-
"commander": "^2.14.0",
21-
"interpret": "^1.1.0",
22-
"liftoff": "^2.5.0",
20+
"chalk": "^2.4.2",
21+
"commander": "^3.0.0",
22+
"interpret": "^1.2.0",
23+
"liftoff": "^3.1.0",
2324
"minimist": "^1.2.0",
2425
"mkdirp": "^0.5.1",
2526
"mz": "^2.7.0",
26-
"tildify": "^1.2.0",
27-
"v8flags": "^3.0.1"
27+
"tildify": "^2.0.0",
28+
"v8flags": "^3.1.3"
2829
},
2930
"devDependencies": {
30-
"babel-cli": "^6.26.0",
31-
"babel-eslint": "^8.2.1",
32-
"babel-jest": "^22.4.1",
33-
"babel-plugin-transform-class-properties": "^6.24.1",
34-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
35-
"babel-preset-env": "^1.6.1",
36-
"conventional-github-releaser": "^2.0.0",
37-
"eslint": "^4.17.0",
38-
"eslint-config-airbnb-base": "^12.1.0",
39-
"eslint-config-prettier": "^2.9.0",
40-
"eslint-plugin-import": "^2.8.0",
41-
"jest": "^22.4.2",
42-
"knex": "^0.14.2",
43-
"pg": "^7.4.1",
44-
"prettier": "^1.10.2",
45-
"standard-version": "^4.3.0"
31+
"@babel/cli": "^7.5.5",
32+
"@babel/core": "^7.5.5",
33+
"@babel/plugin-proposal-class-properties": "^7.5.5",
34+
"@babel/preset-env": "^7.5.5",
35+
"babel-eslint": "^10.0.3",
36+
"babel-jest": "^24.9.0",
37+
"conventional-github-releaser": "^3.1.3",
38+
"eslint": "^6.2.2",
39+
"eslint-config-airbnb-base": "^14.0.0",
40+
"eslint-config-prettier": "^6.1.0",
41+
"eslint-plugin-import": "^2.18.2",
42+
"jest": "^24.9.0",
43+
"knex": "^0.19.2",
44+
"pg": "^7.12.1",
45+
"prettier": "^1.18.2",
46+
"standard-version": "^7.0.0"
4647
}
4748
}

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { readFile, readdir, exists } from 'mz/fs'
22

33
export async function getInsertsFromMigrations(migrationsPath) {
4-
if (!await exists(migrationsPath)) return []
4+
if (!(await exists(migrationsPath))) return []
55
const migrations = await readdir(migrationsPath)
66
return migrations.map(
77
migration =>
@@ -10,7 +10,7 @@ export async function getInsertsFromMigrations(migrationsPath) {
1010
}
1111

1212
export async function getInsertsFromStructure(structurePath) {
13-
if (!await exists(structurePath)) return []
13+
if (!(await exists(structurePath))) return []
1414
const structure = await readFile(structurePath, 'utf-8')
1515
const regExp = /INSERT INTO knex_migrations\(name, batch, migration_time\) VALUES \('.*', 1, NOW\(\)\);/g
1616

0 commit comments

Comments
 (0)