@wireapp/api-client 23.2.1 → 23.3.0

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.
@@ -23,7 +23,7 @@ export declare class OAuthAPI {
23
23
  /**
24
24
  * Create an OAuth authorization code.
25
25
  */
26
- postOAuthCode(oauthBody: OAuthBody): Promise<void>;
26
+ postOAuthCode(oauthBody: OAuthBody): Promise<string>;
27
27
  /**
28
28
  * Get OAuth client information.
29
29
  */
@@ -1 +1 @@
1
- {"version":3,"file":"OAuthAPI.d.ts","sourceRoot":"","sources":["../../src/oauth/OAuthAPI.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAEnC,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAE/C,gBAAuB,GAAG;;;;;;MAMxB;IAEF;;OAEG;IACU,eAAe,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAU3D;;OAEG;IACU,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAYpE;;OAEG;IACU,aAAa,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAa/D;;OAEG;IACU,SAAS,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CASpE"}
1
+ {"version":3,"file":"OAuthAPI.d.ts","sourceRoot":"","sources":["../../src/oauth/OAuthAPI.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAEnC,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAE/C,gBAAuB,GAAG;;;;;;MAMxB;IAEF;;OAEG;IACU,eAAe,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAU3D;;OAEG;IACU,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAYpE;;OAEG;IACU,aAAa,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IAcjE;;OAEG;IACU,SAAS,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CASpE"}
@@ -53,13 +53,15 @@ class OAuthAPI {
53
53
  * Create an OAuth authorization code.
54
54
  */
55
55
  async postOAuthCode(oauthBody) {
56
+ var _a;
56
57
  const config = {
57
58
  data: oauthBody,
58
59
  method: 'post',
59
60
  url: `${OAuthAPI.URL.OAUTH}/${OAuthAPI.URL.AUTHORIZATION}/${OAuthAPI.URL.CODES}`,
60
61
  };
61
62
  try {
62
- await this.client.sendJSON(config);
63
+ const response = await this.client.sendJSON(config);
64
+ return (_a = response.request) === null || _a === void 0 ? void 0 : _a.responseURL;
63
65
  }
64
66
  catch (error) {
65
67
  throw error;
package/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "@types/ws": "8.5.3",
37
37
  "@wireapp/store-engine": "^5.0.3",
38
38
  "@wireapp/store-engine-fs": "^3.0.4",
39
- "browser-sync": "2.28.3",
39
+ "browser-sync": "2.29.0",
40
40
  "concurrently": "7.6.0",
41
41
  "cross-env": "7.0.3",
42
42
  "dotenv": "16.0.3",
@@ -63,6 +63,6 @@
63
63
  "watch": "webpack serve --config webpack.browser.js",
64
64
  "prepare": "yarn dist"
65
65
  },
66
- "version": "23.2.1",
67
- "gitHead": "e434e72fedca7d1fcadcce76a45036cda5a1bd8e"
66
+ "version": "23.3.0",
67
+ "gitHead": "ba5aa1fee17908d27a04f5236840bd07eea59288"
68
68
  }