forest-express-sequelize 8.5.6 → 8.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.husky/pre-commit CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/bin/sh
2
2
  . "$(dirname "$0")/_/husky.sh"
3
3
 
4
- node ./.eslint-bin/pre-commit-hook.js
4
+ npx lint-staged
@@ -0,0 +1,3 @@
1
+ {
2
+ "*.js": ["eslint --cache --quiet --fix"]
3
+ }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [8.5.7](https://github.com/ForestAdmin/forest-express-sequelize/compare/v8.5.6...v8.5.7) (2022-05-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **stripe:** crash early when stripe integration is misconfigured ([#955](https://github.com/ForestAdmin/forest-express-sequelize/issues/955)) ([d48bc1d](https://github.com/ForestAdmin/forest-express-sequelize/commit/d48bc1d3025bee5be24f3af14315268184751c68))
7
+
1
8
  ## [8.5.6](https://github.com/ForestAdmin/forest-express-sequelize/compare/v8.5.5...v8.5.6) (2022-05-04)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "forest-express-sequelize",
3
3
  "description": "Official Express/Sequelize Liana for Forest",
4
- "version": "8.5.6",
4
+ "version": "8.5.7",
5
5
  "author": "Sandro Munda <sandro@munda.me>",
6
6
  "contributors": [
7
7
  "Arnaud Besnier <arnaudibesnier@gmail.com>",
@@ -28,7 +28,7 @@
28
28
  "@babel/runtime": "7.15.4",
29
29
  "bluebird": "2.9.25",
30
30
  "core-js": "3.6.5",
31
- "forest-express": "9.4.7",
31
+ "forest-express": "9.5.1",
32
32
  "http-errors": "1.6.1",
33
33
  "lodash": "4.17.21",
34
34
  "moment": "2.29.2",
@@ -45,8 +45,8 @@
45
45
  "@babel/register": "7.15.3",
46
46
  "@commitlint/cli": "11.0.0",
47
47
  "@commitlint/config-conventional": "11.0.0",
48
- "@semantic-release/changelog": "5.0.1",
49
- "@semantic-release/git": "9.0.0",
48
+ "@semantic-release/changelog": "6.0.1",
49
+ "@semantic-release/git": "10.0.1",
50
50
  "@types/express": "4.17.13",
51
51
  "@types/jest": "26.0.9",
52
52
  "@typescript-eslint/eslint-plugin": "4.26.0",
@@ -60,22 +60,22 @@
60
60
  "husky": "7.0.4",
61
61
  "jest": "26.6.3",
62
62
  "jest-extended": "0.11.5",
63
+ "lint-staged": "12.3.7",
63
64
  "mysql2": "2.1.0",
64
65
  "onchange": "6.0.0",
65
66
  "pg": "8.4.2",
66
- "semantic-release": "17.4.7",
67
+ "semantic-release": "19.0.2",
67
68
  "semantic-release-npm-deprecate-old-versions": "1.3.2",
68
- "semantic-release-slack-bot": "2.1.1",
69
+ "semantic-release-slack-bot": "3.5.2",
69
70
  "sequelize": "5.21.3",
70
71
  "sequelize-fixtures": "1.1.1",
71
- "simple-git": "1.65.0",
72
72
  "tedious": "11.0.8",
73
73
  "typescript": "4.3.2"
74
74
  },
75
75
  "scripts": {
76
76
  "build": "babel src --out-dir dist",
77
77
  "build:watch": "onchange 'src/**/*.js' 'node_modules/forest-express/dist/*' --no-exclude -i -- babel --source-maps inline --out-dir dist src",
78
- "lint": "./node_modules/eslint/bin/eslint.js .eslint-bin src test types/index.d.ts",
78
+ "lint": "./node_modules/eslint/bin/eslint.js src test types/index.d.ts",
79
79
  "prepare": "husky install",
80
80
  "test": "jest",
81
81
  "test:coverage": "jest --coverage"
@@ -1,59 +0,0 @@
1
- const { spawn } = require('child_process');
2
- const simpleGit = require('simple-git')(`${__dirname}/..`);
3
-
4
- let listFilesModified = [];
5
-
6
- function excludeNonCommitedFiles(file) {
7
- return file.index !== 'D' // NOTICE: Deleted files
8
- && file.index !== ' ' // NOTICE: Files not staged for commit
9
- && file.index !== '?'; // NOTICE: Untracked files
10
- }
11
-
12
- function getFilesModified(callback) {
13
- simpleGit.status((error, status) => {
14
- if (error) {
15
- // eslint-disable-next-line no-console
16
- console.error(error);
17
- process.exit(-1);
18
- }
19
-
20
- listFilesModified = status.files
21
- .filter(excludeNonCommitedFiles)
22
- .map((file) => {
23
- if (file.index === 'R') {
24
- // NOTICE: file path equals "old/path.js -> new/path.js" for renames
25
- const matches = file.path.match(/^(?:.* -> )?(.*)$/);
26
-
27
- return matches[1];
28
- }
29
-
30
- return file.path;
31
- })
32
- .filter((file) => file.endsWith('.js'));
33
-
34
- callback();
35
- });
36
- }
37
-
38
- function runEslint(callback) {
39
- if (listFilesModified.length === 0) {
40
- return callback(0);
41
- }
42
-
43
- // eslint-disable-next-line no-console
44
- console.log(`[ESLint] Validating changed files:\n${listFilesModified.join('\n')}`);
45
- const eslintPath = `${__dirname}/../node_modules/.bin/eslint`;
46
- const cmd = spawn(eslintPath, listFilesModified, { stdio: 'inherit', shell: true });
47
-
48
- return cmd.on('exit', (code) => callback(code));
49
- }
50
-
51
- getFilesModified((error) => {
52
- if (error) {
53
- // eslint-disable-next-line no-console
54
- console.error(error);
55
- process.exit(-2);
56
- }
57
-
58
- runEslint((code) => process.exit(code));
59
- });