@datocms/cma-client 3.1.4 → 3.1.5

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.
@@ -129,7 +129,7 @@ var Client = /** @class */ (function () {
129
129
  });
130
130
  Client.prototype.request = function (options) {
131
131
  var _this = this;
132
- return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.1.4', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
132
+ return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.1.5', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
133
133
  ? { 'X-Environment': this.config.environment }
134
134
  : {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
135
135
  return _this.jobResultsFetcher
@@ -103,7 +103,7 @@ var Client = /** @class */ (function () {
103
103
  });
104
104
  Client.prototype.request = function (options) {
105
105
  var _this = this;
106
- return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.1.4', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
106
+ return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.1.5', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
107
107
  ? { 'X-Environment': this.config.environment }
108
108
  : {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
109
109
  return _this.jobResultsFetcher
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -37,12 +37,12 @@
37
37
  "url": "https://github.com/datocms/js-rest-api-clients/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@datocms/rest-client-utils": "^3.1.4",
40
+ "@datocms/rest-client-utils": "^3.1.5",
41
41
  "uuid": "^9.0.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@datocms/dashboard-client": "^3.1.4",
44
+ "@datocms/dashboard-client": "^3.1.5",
45
45
  "@types/uuid": "^9.0.7"
46
46
  },
47
- "gitHead": "cad1c1fcae257e50798c58f430a3ff966030078b"
47
+ "gitHead": "889c19a9678129b7b8883d0ee5ee0b281faf4568"
48
48
  }
@@ -139,7 +139,7 @@ export class Client {
139
139
  ...this.config,
140
140
  ...options,
141
141
  logFn: this.config.logFn || console.log,
142
- userAgent: '@datocms/cma-client v3.1.4',
142
+ userAgent: '@datocms/cma-client v3.1.5',
143
143
  baseUrl: this.baseUrl,
144
144
  preCallStack: new Error().stack,
145
145
  extraHeaders: {