@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 CHANGED
@@ -23,6 +23,7 @@
23
23
  "@mimik/document-env/validate-document-env": 2,
24
24
  "@mimik/dependencies/case-sensitive": 2,
25
25
  "@mimik/dependencies/no-cycles": 2,
26
+ "@mimik/dependencies/no-unresolved": 2,
26
27
  "@mimik/dependencies/require-json-ext": 2
27
28
  },
28
29
  "settings":{
package/.husky/pre-commit CHANGED
@@ -1,4 +1 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- npm run commit-ready
1
+ npm run commit-ready
package/.husky/pre-push CHANGED
@@ -1,4 +1 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- npm run test
1
+ npm run test
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimik/oauth-helper",
3
- "version": "3.0.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 install"
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.0",
33
- "@mimik/response-helper": "^3.0.0",
34
- "@mimik/sumologic-winston-logger": "^1.6.15",
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.0"
36
+ "jsonwebtoken": "9.0.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@mimik/eslint-plugin-dependencies": "^2.4.5",
40
- "@mimik/eslint-plugin-document-env": "^1.0.5",
41
- "@mimik/request-helper": "^1.7.8",
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.3.7",
44
- "eslint": "8.39.0",
43
+ "chai": "4.4.1",
44
+ "eslint": "8.57.0",
45
45
  "eslint-config-airbnb": "19.0.4",
46
- "eslint-plugin-import": "2.27.5",
47
- "eslint-plugin-jsx-a11y": "6.7.1",
48
- "eslint-plugin-react": "7.32.2",
49
- "eslint-plugin-react-hooks": "4.6.0",
50
- "express": "4.18.2",
51
- "husky": "8.0.3",
52
- "jsdoc-to-markdown": "8.0.0",
53
- "mocha": "10.2.0",
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": "15.1.0"
55
+ "nyc": "17.0.0"
56
56
  }
57
57
  }
@@ -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: Not Found');
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: request error response');
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) => {