@mimik/oauth-helper 4.0.1 → 4.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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +14 -14
package/index.js CHANGED
@@ -44,7 +44,7 @@ const createToken = (value) => {
44
44
  return token;
45
45
  };
46
46
 
47
- export default (config) => {
47
+ const oauthHelper = (config) => {
48
48
  const { server } = config.security;
49
49
  const getToken = (type, origin, correlationId, options) => {
50
50
  const tokenOptions = {
@@ -238,6 +238,7 @@ export default (config) => {
238
238
  };
239
239
  };
240
240
 
241
+ export default oauthHelper;
241
242
  /**
242
243
  * This callback is displayed as a global member.
243
244
  * @callback requestCallback
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimik/oauth-helper",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Oauth helper for mimik microservices",
5
5
  "main": "./index.js",
6
6
  "type": "module",
@@ -29,26 +29,26 @@
29
29
  "url": "https://bitbucket.org/mimiktech/oauth-helper"
30
30
  },
31
31
  "dependencies": {
32
- "@mimik/request-retry": "^4.0.1",
33
- "@mimik/response-helper": "^4.0.1",
34
- "@mimik/sumologic-winston-logger": "^2.0.2",
32
+ "@mimik/request-retry": "^4.0.3",
33
+ "@mimik/response-helper": "^4.0.4",
34
+ "@mimik/sumologic-winston-logger": "^2.0.3",
35
35
  "bluebird": "3.7.2",
36
36
  "jsonwebtoken": "9.0.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@eslint/js": "9.24.0",
40
- "@mimik/eslint-plugin-document-env": "^2.0.5",
41
- "@mimik/request-helper": "2.0.1",
42
- "@stylistic/eslint-plugin": "4.2.0",
39
+ "@eslint/js": "9.31.0",
40
+ "@mimik/eslint-plugin-document-env": "^2.0.8",
41
+ "@mimik/request-helper": "2.0.2",
42
+ "@stylistic/eslint-plugin": "5.2.1",
43
43
  "c8": "10.1.3",
44
44
  "body-parser": "2.2.0",
45
- "chai": "5.2.0",
46
- "eslint": "9.24.0",
47
- "eslint-plugin-import": "2.31.0",
48
- "express": "4.21.2",
45
+ "chai": "5.2.1",
46
+ "eslint": "9.31.0",
47
+ "eslint-plugin-import": "2.32.0",
48
+ "express": "5.1.0",
49
49
  "husky": "9.1.7",
50
- "jsdoc-to-markdown": "9.1.1",
51
- "mocha": "11.1.0",
50
+ "jsdoc-to-markdown": "9.1.2",
51
+ "mocha": "11.7.1",
52
52
  "mochawesome": "7.1.3"
53
53
  }
54
54
  }