@datocms/cma-client 5.2.0-alpha.0 → 5.2.0-alpha.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.
|
@@ -88,7 +88,7 @@ class Client {
|
|
|
88
88
|
return this.config.baseUrl || Client.defaultBaseUrl;
|
|
89
89
|
}
|
|
90
90
|
request(options) {
|
|
91
|
-
return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.2.0-alpha.
|
|
91
|
+
return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.2.0-alpha.1', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
92
92
|
? { 'X-Environment': this.config.environment }
|
|
93
93
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
|
|
94
94
|
return this.jobResultsFetcher
|
|
@@ -62,7 +62,7 @@ export class Client {
|
|
|
62
62
|
return this.config.baseUrl || Client.defaultBaseUrl;
|
|
63
63
|
}
|
|
64
64
|
request(options) {
|
|
65
|
-
return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.2.0-alpha.
|
|
65
|
+
return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.2.0-alpha.1', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
66
66
|
? { 'X-Environment': this.config.environment }
|
|
67
67
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
|
|
68
68
|
return this.jobResultsFetcher
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -14,6 +14,6 @@ export * from './utilities/normalizedFieldValues';
|
|
|
14
14
|
export * from './utilities/recursiveBlocks';
|
|
15
15
|
export * from './utilities/schemaRepository';
|
|
16
16
|
export type { ApiTypes, RawApiTypes };
|
|
17
|
-
export type { ApiTypes as
|
|
17
|
+
export type { ApiTypes as SimpleSchemaTypes, RawApiTypes as SchemaTypes };
|
|
18
18
|
import type * as ApiTypes from './generated/ApiTypes';
|
|
19
19
|
import type * as RawApiTypes from './generated/RawApiTypes';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -14,6 +14,6 @@ export * from './utilities/normalizedFieldValues';
|
|
|
14
14
|
export * from './utilities/recursiveBlocks';
|
|
15
15
|
export * from './utilities/schemaRepository';
|
|
16
16
|
export type { ApiTypes, RawApiTypes };
|
|
17
|
-
export type { ApiTypes as
|
|
17
|
+
export type { ApiTypes as SimpleSchemaTypes, RawApiTypes as SchemaTypes };
|
|
18
18
|
import type * as ApiTypes from './generated/ApiTypes';
|
|
19
19
|
import type * as RawApiTypes from './generated/RawApiTypes';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "5.2.0-alpha.
|
|
3
|
+
"version": "5.2.0-alpha.1",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"@datocms/dashboard-client": "^5.1.13",
|
|
46
46
|
"@types/uuid": "^9.0.7"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "e349760b5a4704677945f43b03d53987d15b31ff"
|
|
49
49
|
}
|
package/src/generated/Client.ts
CHANGED
|
@@ -147,7 +147,7 @@ export class Client {
|
|
|
147
147
|
...this.config,
|
|
148
148
|
...options,
|
|
149
149
|
logFn: this.config.logFn || console.log,
|
|
150
|
-
userAgent: '@datocms/cma-client v5.2.0-alpha.
|
|
150
|
+
userAgent: '@datocms/cma-client v5.2.0-alpha.1',
|
|
151
151
|
baseUrl: this.baseUrl,
|
|
152
152
|
preCallStack: new Error().stack,
|
|
153
153
|
extraHeaders: {
|
package/src/index.ts
CHANGED
|
@@ -15,7 +15,7 @@ export * from './utilities/recursiveBlocks';
|
|
|
15
15
|
export * from './utilities/schemaRepository';
|
|
16
16
|
export type { ApiTypes, RawApiTypes };
|
|
17
17
|
// Legacy names
|
|
18
|
-
export type { ApiTypes as
|
|
18
|
+
export type { ApiTypes as SimpleSchemaTypes, RawApiTypes as SchemaTypes };
|
|
19
19
|
|
|
20
20
|
import type * as ApiTypes from './generated/ApiTypes';
|
|
21
21
|
import type * as RawApiTypes from './generated/RawApiTypes';
|