@mimik/oauth-helper 4.1.0 → 4.1.2
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/README.md +1 -1
- package/index.js +1 -1
- package/package.json +11 -10
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ Make an authProfile request to mID.
|
|
|
76
76
|
**Category**: async
|
|
77
77
|
**Throws**:
|
|
78
78
|
|
|
79
|
-
- <code>Error</code> Will throw a rich error if the request fails or an error if the id is not identified
|
|
79
|
+
- <code>Error</code> Will throw a rich error if the request fails or an error if the id is not identified.
|
|
80
80
|
|
|
81
81
|
**Requires**: <code>module:@mimik/sumologic-winston-logger</code>
|
|
82
82
|
**Fulfil**: <code>object</code> The response of the request made to `mID`.
|
package/index.js
CHANGED
|
@@ -220,7 +220,7 @@ const oauthHelper = (config) => {
|
|
|
220
220
|
* @param {object} [options] - Options to be added to the request. metrics can then be added to the options.
|
|
221
221
|
* @return {Promise} Resolves with the response from mID.
|
|
222
222
|
* @fulfil {object} The response of the request made to `mID`.
|
|
223
|
-
* @throws {Error} Will throw a rich error if the request fails or an error if the id is not identified
|
|
223
|
+
* @throws {Error} Will throw a rich error if the request fails or an error if the id is not identified.
|
|
224
224
|
*/
|
|
225
225
|
const authProfile = (method, id, correlationId, options) => {
|
|
226
226
|
if (!id) return Promise.reject(new Error('Id has to be defined'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimik/oauth-helper",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"description": "Oauth helper for mimik microservices",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"node": ">=24"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
|
-
|
|
12
|
+
"lint": "eslint . --no-error-on-unmatched-pattern",
|
|
13
13
|
"docs": "jsdoc2md index.js > README.md",
|
|
14
14
|
"test": "mocha --reporter mochawesome --bail --check-leaks test/",
|
|
15
15
|
"test-ci": "c8 --reporter=lcov --reporter=text npm test -- --exit",
|
|
@@ -27,21 +27,22 @@
|
|
|
27
27
|
"url": "https://bitbucket.org/mimiktech/oauth-helper"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@mimik/request-retry": "^4.0.
|
|
31
|
-
"@mimik/response-helper": "^4.0.
|
|
32
|
-
"@mimik/sumologic-winston-logger": "^2.
|
|
30
|
+
"@mimik/request-retry": "^4.0.10",
|
|
31
|
+
"@mimik/response-helper": "^4.0.11",
|
|
32
|
+
"@mimik/sumologic-winston-logger": "^2.2.2",
|
|
33
33
|
"bluebird": "3.7.2",
|
|
34
34
|
"jsonwebtoken": "9.0.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@eslint/js": "9.39.
|
|
38
|
-
"@mimik/eslint-plugin-document-env": "^2.0.
|
|
39
|
-
"@mimik/
|
|
40
|
-
"@
|
|
37
|
+
"@eslint/js": "9.39.4",
|
|
38
|
+
"@mimik/eslint-plugin-document-env": "^2.0.9",
|
|
39
|
+
"@mimik/eslint-plugin-logger": "^1.0.3",
|
|
40
|
+
"@mimik/request-helper": "2.0.6",
|
|
41
|
+
"@stylistic/eslint-plugin": "5.10.0",
|
|
41
42
|
"c8": "11.0.0",
|
|
42
43
|
"body-parser": "2.2.2",
|
|
43
44
|
"chai": "6.2.2",
|
|
44
|
-
"eslint": "9.39.
|
|
45
|
+
"eslint": "9.39.4",
|
|
45
46
|
"eslint-plugin-import": "2.32.0",
|
|
46
47
|
"express": "5.2.1",
|
|
47
48
|
"globals": "17.4.0",
|