@bitmovin/api-sdk 1.219.0 → 1.220.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.
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * @overview es6-promise - a tiny implementation of Promises/A+.
3
+ * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
4
+ * @license Licensed under MIT license
5
+ * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
6
+ * @version v4.2.8+1e68dce6
7
+ */
@@ -53,10 +53,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
54
  exports.RestClient = void 0;
55
55
  exports.copyAndPrepareBody = copyAndPrepareBody;
56
+ var e6p = require("es6-promise");
56
57
  var urljoin = require("url-join");
58
+ var isomorphicFetch = require("isomorphic-fetch");
57
59
  var BaseAPI_1 = require("./BaseAPI");
58
60
  var NullLogger_1 = require("./NullLogger");
59
61
  var BitmovinErrorBuilder_1 = require("./BitmovinErrorBuilder");
62
+ e6p.polyfill();
60
63
  var BASE_URL = 'https://api.bitmovin.com/v1';
61
64
  function prepareUrlParameterValue(parameterValue) {
62
65
  if (parameterValue instanceof Date) {
@@ -152,7 +155,7 @@ var RestClient = /** @class */ (function () {
152
155
  this.apiKey = configuration.apiKey;
153
156
  this.tenantOrgId = configuration.tenantOrgId;
154
157
  this.baseUrl = configuration.baseUrl || BASE_URL;
155
- this.fetch = configuration.fetch || fetch;
158
+ this.fetch = configuration.fetch || isomorphicFetch;
156
159
  this.logger = configuration.logger || new NullLogger_1.default();
157
160
  this.headers = configuration.headers;
158
161
  this.httpHandler = this.buildHttpHandler();
@@ -237,7 +240,7 @@ var HeaderHandler = /** @class */ (function (_super) {
237
240
  var headers = {
238
241
  'X-Api-Key': apiKey,
239
242
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
240
- 'X-Api-Client-Version': '1.219.0',
243
+ 'X-Api-Client-Version': '1.220.0',
241
244
  'Content-Type': 'application/json'
242
245
  };
243
246
  if (tenantOrgId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.219.0",
3
+ "version": "1.220.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [
@@ -24,12 +24,15 @@
24
24
  "format-check": "prettier --list-different \"./src/**/*.{ts,tsx,scss}\""
25
25
  },
26
26
  "dependencies": {
27
+ "es6-promise": "^4.2.5",
28
+ "isomorphic-fetch": ">=3.0.0",
27
29
  "url-join": "^4.0.0"
28
30
  },
29
31
  "files": [
30
32
  "dist"
31
33
  ],
32
34
  "devDependencies": {
35
+ "@types/isomorphic-fetch": ">=0.0.35",
33
36
  "@types/node": "^20.8.9",
34
37
  "ts-loader": "^9.2.8",
35
38
  "cross-env": "^5.2.0",