@uniformdev/canvas 19.214.1-alpha.34 → 19.214.1-alpha.36
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.
- package/dist/index.esm.js +3 -0
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
@@ -805,6 +805,9 @@ var _ContentClient = class _ContentClient extends ApiClient3 {
|
|
805
805
|
}
|
806
806
|
async upsertContentType(body, opts = {}) {
|
807
807
|
const fetchUri = this.createUrl(__privateGet(_ContentClient, _contentTypesUrl));
|
808
|
+
if (typeof body.contentType.slugSettings === "object" && body.contentType.slugSettings !== null && Object.keys(body.contentType.slugSettings).length === 0) {
|
809
|
+
delete body.contentType.slugSettings;
|
810
|
+
}
|
808
811
|
await this.apiClient(fetchUri, {
|
809
812
|
method: "PUT",
|
810
813
|
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
package/dist/index.js
CHANGED
@@ -965,6 +965,9 @@ var _ContentClient = class _ContentClient extends import_api4.ApiClient {
|
|
965
965
|
}
|
966
966
|
async upsertContentType(body, opts = {}) {
|
967
967
|
const fetchUri = this.createUrl(__privateGet(_ContentClient, _contentTypesUrl));
|
968
|
+
if (typeof body.contentType.slugSettings === "object" && body.contentType.slugSettings !== null && Object.keys(body.contentType.slugSettings).length === 0) {
|
969
|
+
delete body.contentType.slugSettings;
|
970
|
+
}
|
968
971
|
await this.apiClient(fetchUri, {
|
969
972
|
method: "PUT",
|
970
973
|
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
package/dist/index.mjs
CHANGED
@@ -805,6 +805,9 @@ var _ContentClient = class _ContentClient extends ApiClient3 {
|
|
805
805
|
}
|
806
806
|
async upsertContentType(body, opts = {}) {
|
807
807
|
const fetchUri = this.createUrl(__privateGet(_ContentClient, _contentTypesUrl));
|
808
|
+
if (typeof body.contentType.slugSettings === "object" && body.contentType.slugSettings !== null && Object.keys(body.contentType.slugSettings).length === 0) {
|
809
|
+
delete body.contentType.slugSettings;
|
810
|
+
}
|
808
811
|
await this.apiClient(fetchUri, {
|
809
812
|
method: "PUT",
|
810
813
|
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "19.214.1-alpha.
|
3
|
+
"version": "19.214.1-alpha.36+4b318f1483",
|
4
4
|
"description": "Common functionality and types for Uniform Canvas",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -38,9 +38,9 @@
|
|
38
38
|
"p-throttle": "5.0.0"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@uniformdev/assets": "19.214.1-alpha.
|
42
|
-
"@uniformdev/context": "19.214.1-alpha.
|
43
|
-
"@uniformdev/richtext": "19.214.1-alpha.
|
41
|
+
"@uniformdev/assets": "19.214.1-alpha.36+4b318f1483",
|
42
|
+
"@uniformdev/context": "19.214.1-alpha.36+4b318f1483",
|
43
|
+
"@uniformdev/richtext": "19.214.1-alpha.36+4b318f1483",
|
44
44
|
"immer": "10.1.1"
|
45
45
|
},
|
46
46
|
"files": [
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"publishConfig": {
|
50
50
|
"access": "public"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "4b318f14833bf95e342b4e6047a597ebe72c366a"
|
53
53
|
}
|