danger 11.0.2 → 11.0.6

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.
Files changed (42) hide show
  1. package/.eslintignore +2 -0
  2. package/.eslintrc.js +66 -0
  3. package/.release-it.json +2 -1
  4. package/CHANGELOG.md +100 -32
  5. package/Dockerfile +1 -1
  6. package/README.md +1 -1
  7. package/SECURITY.md +9 -0
  8. package/distribution/api/fetch.d.ts +1 -1
  9. package/distribution/api/fetch.js +6 -6
  10. package/distribution/api/fetch.js.map +1 -1
  11. package/distribution/ci_source/get_ci_source.js +2 -1
  12. package/distribution/ci_source/get_ci_source.js.map +1 -1
  13. package/distribution/commands/ci/runner.js +1 -1
  14. package/distribution/commands/ci/runner.js.map +1 -1
  15. package/distribution/commands/danger-local.js +2 -2
  16. package/distribution/commands/danger-local.js.map +1 -1
  17. package/distribution/commands/danger-runner.js +1 -3
  18. package/distribution/commands/danger-runner.js.map +1 -1
  19. package/distribution/commands/init/default-dangerfile.js +1 -1
  20. package/distribution/commands/init/default-dangerfile.js.map +1 -1
  21. package/distribution/commands/init/interfaces.d.ts +3 -3
  22. package/distribution/commands/utils/runDangerSubprocess.d.ts +1 -0
  23. package/distribution/commands/utils/runDangerSubprocess.js +6 -3
  24. package/distribution/commands/utils/runDangerSubprocess.js.map +1 -1
  25. package/distribution/danger.d.ts +9 -3
  26. package/distribution/danger.js.flow +1 -1
  27. package/distribution/platforms/BitBucketCloud.js.map +1 -1
  28. package/distribution/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_api.test.js.map +1 -1
  29. package/distribution/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.js +18 -11
  30. package/distribution/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.js.map +1 -1
  31. package/distribution/platforms/git/localGetCommits.js.map +1 -1
  32. package/distribution/platforms/git/localLogGitCommits.d.ts +1 -1
  33. package/distribution/platforms/git/localLogGitCommits.js.map +1 -1
  34. package/distribution/platforms/gitlab/GitLabAPI.js +1 -1
  35. package/distribution/platforms/gitlab/GitLabAPI.js.map +1 -1
  36. package/distribution/runner/Executor.js +7 -3
  37. package/distribution/runner/Executor.js.map +1 -1
  38. package/distribution/runner/dangerDSLJSON.js.map +1 -1
  39. package/distribution/runner/runners/utils/transpiler.js +8 -8
  40. package/distribution/runner/runners/utils/transpiler.js.map +1 -1
  41. package/package.json +30 -24
  42. package/tsconfig.spec.json +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danger",
3
- "version": "11.0.2",
3
+ "version": "11.0.6",
4
4
  "description": "Unit tests for Team Culture",
5
5
  "main": "distribution/danger.js",
6
6
  "typings": "distribution/danger.d.ts",
@@ -30,13 +30,11 @@
30
30
  },
31
31
  "lint-staged": {
32
32
  "*.@(json|md)": [
33
- "yarn prettier --write",
34
- "git add"
33
+ "yarn prettier --write"
35
34
  ],
36
35
  "*.@(ts|tsx)": [
37
- "tslint --fix",
38
- "yarn prettier --write",
39
- "git add"
36
+ "yarn lint:fix",
37
+ "yarn prettier --write"
40
38
  ]
41
39
  },
42
40
  "pkg": {
@@ -56,10 +54,10 @@
56
54
  "test:fixtures": "node ./scripts/run-fixtures.js",
57
55
  "test:update-fixtures": "yarn test:fixtures --update",
58
56
  "test:watch": "jest --watch",
59
- "lint": "tslint \"source/**/*.ts\"",
60
- "lint:fix": "tslint \"source/**/*.ts\" --fix",
57
+ "lint": "eslint \"source/*.ts\" \"source/**/*.ts\"",
58
+ "lint:fix": "yarn --silent lint --fix",
61
59
  "prepublishOnly": "yarn build && yarn jest && yarn declarations && yarn build:flow-types && yarn build:pretty-types",
62
- "build": "shx rm -rf ./distribution && tsc -p tsconfig.production.json && madge ./distribution --circular",
60
+ "build": "shx rm -rf ./distribution && tsc -p tsconfig.production.json && yarn madge ./distribution --circular --exclude debug.js",
63
61
  "build:fast": "tsc -p tsconfig.production.json",
64
62
  "build:flow-types": "cp source/danger.d.ts source/_danger.d.ts && sed -ie 's/api: GitHub/api: any/g' source/_danger.d.ts && npx flowgen@1.3.0 source/_danger.d.ts -o distribution/danger.js.flow && node scripts/update_flow_types.js",
65
63
  "build:schemas": "typescript-json-schema tsconfig.json DangerJSON > source/danger-incoming-process-schema.json; typescript-json-schema tsconfig.json DangerResults > source/danger-outgoing-process-schema.json; yarn prettier --write source/danger-outgoing-process-schema.json source/danger-incoming-process-schema.json",
@@ -87,13 +85,16 @@
87
85
  "url": "https://github.com/danger/danger-js/issues"
88
86
  },
89
87
  "homepage": "https://github.com/danger/danger-js#readme",
88
+ "engines": {
89
+ "node": ">=14.13.1"
90
+ },
90
91
  "devDependencies": {
91
- "@babel/cli": "7.1.2",
92
- "@babel/core": "7.1.2",
93
- "@babel/plugin-transform-flow-strip-types": "7.0.0",
94
- "@babel/plugin-transform-typescript": "7.1.0",
95
- "@babel/preset-env": "7.1.0",
96
- "@babel/traverse": "7.1.0",
92
+ "@babel/cli": "7.16.7",
93
+ "@babel/core": "7.16.7",
94
+ "@babel/plugin-transform-flow-strip-types": "7.16.7",
95
+ "@babel/plugin-transform-typescript": "7.16.7",
96
+ "@babel/preset-env": "7.16.7",
97
+ "@babel/traverse": "7.16.7",
97
98
  "@octokit/openapi-types": "^11.2.0",
98
99
  "@types/async-retry": "^1.4.1",
99
100
  "@types/debug": "0.0.30",
@@ -114,34 +115,38 @@
114
115
  "@types/prettier": "^1.16.1",
115
116
  "@types/readline-sync": "^1.4.3",
116
117
  "@types/voca": "^1.4.0",
118
+ "@typescript-eslint/eslint-plugin": "^5.10.1",
119
+ "@typescript-eslint/parser": "^5.10.1",
117
120
  "danger-plugin-jest": "^1.0.1",
118
121
  "danger-plugin-yarn": "^1.3.1",
119
122
  "date-fns": "^1.29.0",
123
+ "eslint": "^8.8.0",
124
+ "eslint-config-prettier": "^8.3.0",
125
+ "eslint-plugin-jest": "^26.0.0",
126
+ "eslint-plugin-jsdoc": "^37.7.0",
120
127
  "flow-bin": "^0.77.0",
121
128
  "husky": "^1.0.1",
122
129
  "jest": "^24.0.0",
123
130
  "jest-json-reporter": "^1.2.2",
124
- "lint-staged": "^7.3.0",
125
- "madge": "^3.2.0",
131
+ "lint-staged": "^12.3.7",
132
+ "madge": "^5.0.1",
126
133
  "nock": "^10.0.6",
127
- "pkg": "^4.4.2",
128
- "prettier": "^1.14.2",
134
+ "pkg": "^5.4.0",
135
+ "prettier": "^2.5.1",
129
136
  "release-it": "^13.5.2",
130
- "shx": "^0.3.2",
137
+ "shx": "^0.3.4",
131
138
  "ts-jest": "^24.0.2",
132
139
  "ts-node": "^8.0.2",
133
- "tslint": "^5.11.0",
134
- "tslint-config-prettier": "^1.15.0",
135
140
  "typedoc": "0.9.0",
136
141
  "typescript": "^4.5.5",
137
- "typescript-json-schema": "^0.32.0"
142
+ "typescript-json-schema": "^0.53.0"
138
143
  },
139
144
  "dependencies": {
140
- "@babel/polyfill": "^7.2.5",
141
145
  "@octokit/rest": "^18.12.0",
142
146
  "async-retry": "1.2.3",
143
147
  "chalk": "^2.3.0",
144
148
  "commander": "^2.18.0",
149
+ "core-js": "^3.8.2",
145
150
  "debug": "^4.1.1",
146
151
  "fast-json-patch": "^3.0.0-1",
147
152
  "get-stdin": "^6.0.0",
@@ -171,6 +176,7 @@
171
176
  "pinpoint": "^1.1.0",
172
177
  "prettyjson": "^1.2.1",
173
178
  "readline-sync": "^1.4.9",
179
+ "regenerator-runtime": "^0.13.9",
174
180
  "require-from-string": "^2.0.2",
175
181
  "supports-hyperlinks": "^1.0.1"
176
182
  },
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "exclude": ["node_modules", "distribution", "types"]
4
+ }