@datocms/cma-client 3.2.0 → 3.2.1

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.2.0', 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.2.1', 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.2.0', 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.2.1', 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.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": ["datocms", "client"],
6
6
  "author": "Stefano Verna <s.verna@datocms.com>",
@@ -30,12 +30,12 @@
30
30
  "url": "https://github.com/datocms/js-rest-api-clients/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@datocms/rest-client-utils": "^3.2.0",
33
+ "@datocms/rest-client-utils": "^3.2.1",
34
34
  "uuid": "^9.0.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@datocms/dashboard-client": "^3.2.0",
37
+ "@datocms/dashboard-client": "^3.2.1",
38
38
  "@types/uuid": "^9.0.7"
39
39
  },
40
- "gitHead": "f3719571551256439e0800bc6d5dd08547560245"
40
+ "gitHead": "09b5f0f4abbbc3cced5b6afb9f7445dc882a9db8"
41
41
  }
@@ -143,7 +143,7 @@ export class Client {
143
143
  ...this.config,
144
144
  ...options,
145
145
  logFn: this.config.logFn || console.log,
146
- userAgent: '@datocms/cma-client v3.2.0',
146
+ userAgent: '@datocms/cma-client v3.2.1',
147
147
  baseUrl: this.baseUrl,
148
148
  preCallStack: new Error().stack,
149
149
  extraHeaders: {