@trunkrs/common 1.4.15 → 1.4.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trunkrs/common",
3
- "version": "1.4.15",
3
+ "version": "1.4.16",
4
4
  "description": "Common standards library for development in Trunkrs",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/Trunkrs/common.git",
@@ -8,7 +8,7 @@ const enum_1 = require("../../models/enum");
8
8
  class CognitoOAuthClient extends OAuthClient_1.default {
9
9
  async clientCredentialsFlow(credentials) {
10
10
  try {
11
- const { data } = await this.httpClient.post({
11
+ const data = await this.httpClient.post({
12
12
  url: `${credentials.domain}/oauth2/token?grant_type=client_credentials`,
13
13
  authentication: {
14
14
  username: credentials.clientId,
@@ -1 +1 @@
1
- {"version":3,"file":"CognitoOAuthClient.js","sourceRoot":"","sources":["../../../services/client/CognitoOAuthClient.ts"],"names":[],"mappings":";;;;;AAAA,gEAGsB;AACtB,4CAA4C;AAE5C,MAAM,kBAAmB,SAAQ,qBAAW;IACnC,KAAK,CAAC,qBAAqB,CAChC,WAAqC;QAErC,IAAI;YACF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;gBAC1C,GAAG,EAAE,GAAG,WAAW,CAAC,MAAM,6CAA6C;gBACvE,cAAc,EAAE;oBACd,QAAQ,EAAE,WAAW,CAAC,QAAQ;oBAC9B,QAAQ,EAAE,WAAW,CAAC,YAAY;iBACnC;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,eAAQ,CAAC,cAAc;iBACxC;aACF,CAAC,CAAA;YAEF,OAAO,qBAAW,CAAC,eAAe,CAAC,IAAI,CAAC,CAAA;SACzC;QAAC,OAAO,KAAU,EAAE;YACnB,MAAM,qBAAW,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;SACtC;IACH,CAAC;CACF;AAED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