@mimik/oauth-helper 3.0.0 → 3.0.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/.eslintrc +1 -0
- package/.husky/pre-commit +1 -4
- package/.husky/pre-push +1 -4
- package/package.json +20 -20
- package/test/oauthHelper.spec.js +2 -2
package/.eslintrc
CHANGED
package/.husky/pre-commit
CHANGED
package/.husky/pre-push
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimik/oauth-helper",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Oauth helper for mimik microservices",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
|
11
11
|
"prepublishOnly": "npm run docs && npm run lint && npm run test-ci",
|
|
12
12
|
"commit-ready": "npm run docs && npm run lint && npm run test-ci",
|
|
13
|
-
"prepare": "husky
|
|
13
|
+
"prepare": "husky"
|
|
14
14
|
},
|
|
15
15
|
"husky": {
|
|
16
16
|
"hooks": {
|
|
@@ -29,29 +29,29 @@
|
|
|
29
29
|
"url": "https://bitbucket.org/mimiktech/oauth-helper"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@mimik/request-retry": "^3.0.
|
|
33
|
-
"@mimik/response-helper": "^3.
|
|
34
|
-
"@mimik/sumologic-winston-logger": "^1.6.
|
|
32
|
+
"@mimik/request-retry": "^3.0.1",
|
|
33
|
+
"@mimik/response-helper": "^3.1.0",
|
|
34
|
+
"@mimik/sumologic-winston-logger": "^1.6.21",
|
|
35
35
|
"bluebird": "3.7.2",
|
|
36
|
-
"jsonwebtoken": "9.0.
|
|
36
|
+
"jsonwebtoken": "9.0.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@mimik/eslint-plugin-dependencies": "^2.4.
|
|
40
|
-
"@mimik/eslint-plugin-document-env": "^1.0.
|
|
41
|
-
"@mimik/request-helper": "^1.7.
|
|
39
|
+
"@mimik/eslint-plugin-dependencies": "^2.4.6",
|
|
40
|
+
"@mimik/eslint-plugin-document-env": "^1.0.6",
|
|
41
|
+
"@mimik/request-helper": "^1.7.11",
|
|
42
42
|
"body-parser": "1.20.2",
|
|
43
|
-
"chai": "4.
|
|
44
|
-
"eslint": "8.
|
|
43
|
+
"chai": "4.4.1",
|
|
44
|
+
"eslint": "8.57.0",
|
|
45
45
|
"eslint-config-airbnb": "19.0.4",
|
|
46
|
-
"eslint-plugin-import": "2.
|
|
47
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
48
|
-
"eslint-plugin-react": "7.
|
|
49
|
-
"eslint-plugin-react-hooks": "4.6.
|
|
50
|
-
"express": "4.
|
|
51
|
-
"husky": "
|
|
52
|
-
"jsdoc-to-markdown": "8.0.
|
|
53
|
-
"mocha": "10.
|
|
46
|
+
"eslint-plugin-import": "2.29.1",
|
|
47
|
+
"eslint-plugin-jsx-a11y": "6.9.0",
|
|
48
|
+
"eslint-plugin-react": "7.35.0",
|
|
49
|
+
"eslint-plugin-react-hooks": "4.6.2",
|
|
50
|
+
"express": "4.19.2",
|
|
51
|
+
"husky": "9.1.1",
|
|
52
|
+
"jsdoc-to-markdown": "8.0.3",
|
|
53
|
+
"mocha": "10.7.0",
|
|
54
54
|
"mochawesome": "7.1.3",
|
|
55
|
-
"nyc": "
|
|
55
|
+
"nyc": "17.0.0"
|
|
56
56
|
}
|
|
57
57
|
}
|
package/test/oauthHelper.spec.js
CHANGED
|
@@ -67,7 +67,7 @@ describe('OauthHelper Unit Tests', () => {
|
|
|
67
67
|
return oauthAppUnknownIssuer.rpAuth('test1', requestOptions)
|
|
68
68
|
.then((response) => expect(response).to.equal('should not return a valid response'))
|
|
69
69
|
.catch((err) => {
|
|
70
|
-
expect(err.message).to.include('request error response
|
|
70
|
+
expect(err.message).to.include('request error response');
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
73
|
it('should get a response test ok, setting up expiredTokenAndFail ', () => oauthAppExpiredTokenAndFail.rpAuth('test1', requestOptions)
|
|
@@ -123,7 +123,7 @@ describe('OauthHelper Unit Tests', () => {
|
|
|
123
123
|
it('should generate an error on GET', () => oauthAppGeneric.authProfile('GET', '123', correlationId)
|
|
124
124
|
.then((response) => expect(response).to.equal('should not return a valid response'))
|
|
125
125
|
.catch((err) => {
|
|
126
|
-
expect(err.message).to.include('could perform operation on identity server
|
|
126
|
+
expect(err.message).to.include('could perform operation on identity server');
|
|
127
127
|
}));
|
|
128
128
|
it('should return nothing', () => oauthAppGeneric.authProfile('DELETE', '123', correlationId)
|
|
129
129
|
.then((response) => {
|