Skip to content

Commit a1510e8

Browse files
authored
Merge pull request #115 from Staffbase/update_to_node_fetch_3
remove node-fetch library, node has an own fetch implementation since node 18
2 parents 2303e5d + d1e4bd7 commit a1510e8

File tree

6 files changed

+3
-32
lines changed

6 files changed

+3
-32
lines changed

__tests__/jira.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const Jira = require('../jira')
22

3+
// if you want to run the test locally, add an existing JIRA token and email to the new JIRA call
34
xtest('foo', async () => {
45
const jira = new Jira({ token: '***' })
56

arn.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
const fetch = require('node-fetch');
2-
31
class Arn {
42
constructor ({ webhookUrl }) {
53
this.webhookUrl = webhookUrl || '';

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jira.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
const fetch = require('node-fetch');
2-
31
class Jira {
42
constructor ({ baseUrl, token, email }) {
53
this.baseUrl = baseUrl || 'https://mitarbeiterapp.atlassian.net';

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
"author": "",
1515
"license": "ISC",
1616
"dependencies": {
17-
"@actions/core": "^1.10.1",
18-
"node-fetch": "^2.6.7"
17+
"@actions/core": "^1.10.1"
1918
},
2019
"devDependencies": {
2120
"@atlassian-partner-engineering/eslint-config": "^5.1.0",

yarn.lock

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4372,13 +4372,6 @@ nock@^13.2.9:
43724372
json-stringify-safe "^5.0.1"
43734373
propagate "^2.0.0"
43744374

4375-
node-fetch@^2.6.7:
4376-
version "2.6.7"
4377-
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
4378-
integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
4379-
dependencies:
4380-
whatwg-url "^5.0.0"
4381-
43824375
node-int64@^0.4.0:
43834376
version "0.4.0"
43844377
resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b"
@@ -5182,11 +5175,6 @@ to-regex-range@^5.0.1:
51825175
dependencies:
51835176
is-number "^7.0.0"
51845177

5185-
tr46@~0.0.3:
5186-
version "0.0.3"
5187-
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
5188-
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
5189-
51905178
tsconfig-paths@^3.14.1:
51915179
version "3.14.1"
51925180
resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz#ba0734599e8ea36c862798e920bcf163277b137a"
@@ -5337,19 +5325,6 @@ walker@^1.0.8:
53375325
dependencies:
53385326
makeerror "1.0.12"
53395327

5340-
webidl-conversions@^3.0.0:
5341-
version "3.0.1"
5342-
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
5343-
integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==
5344-
5345-
whatwg-url@^5.0.0:
5346-
version "5.0.0"
5347-
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
5348-
integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==
5349-
dependencies:
5350-
tr46 "~0.0.3"
5351-
webidl-conversions "^3.0.0"
5352-
53535328
which-boxed-primitive@^1.0.2:
53545329
version "1.0.2"
53555330
resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6"

0 commit comments

Comments
 (0)