Skip to content

Commit beecc73

Browse files
committed
chore(package): update @adobe/eslint-config-aio-lib-config to 1.2.0
node-fetch was not in dependencies, it was only in devDependencies. closes #7
1 parent 6274003 commit beecc73

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ coverage
44
launch.json
55
package-lock.json
66
/node_modules/
7+
junit.xml

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
},
55
"bundleDependencies": false,
66
"dependencies": {
7+
"node-fetch": "^2.6.0",
78
"@adobe/aio-lib-core-errors": "^3.0.0",
89
"@adobe/aio-lib-core-logging": "1.1.0",
910
"fetch-retry": "^3.0.1"
1011
},
1112
"deprecated": false,
1213
"description": "Adobe I/O Lib Core Networking",
1314
"devDependencies": {
14-
"@adobe/eslint-config-aio-lib-config": "^1.1.0",
15+
"@adobe/eslint-config-aio-lib-config": "^1.2.0",
1516
"babel-runtime": "^6.26.0",
1617
"codecov": "^3.5.0",
1718
"dotenv": "^8.1.0",
@@ -33,7 +34,6 @@
3334
"openapi-schema-validator": "^3.0.3",
3435
"stdout-stderr": "^0.1.9",
3536
"tsd-jsdoc": "^2.4.0",
36-
"node-fetch": "^2.6.0",
3737
"fetch-mock": "^9.0.0"
3838
},
3939
"homepage": "https://github.com/adobe/aio-lib-core-networking",

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const logger = require('@adobe/aio-lib-core-logging')(
2121
const originalFetch = require('node-fetch')
2222
const fetch = require('fetch-retry')(originalFetch)
2323

24+
/* global Response */ // for linter
25+
2426
/**
2527
* This class provides methods to implement fetch with retries.
2628
* The retries use exponential backoff strategy

test/.eslintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
"fixtureJson": true,
55
"fakeFileSystem": true,
66
"fetch": true
7-
}
7+
},
8+
"rules": {
9+
"node/no-unpublished-require": 0
10+
}
811
}

0 commit comments

Comments
 (0)