@plitzi/sdk-elements 0.37.7 → 0.37.8
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @plitzi/sdk-elements
|
|
2
2
|
|
|
3
|
+
## 0.37.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4d10e0a: ## Fixed: an api container could not read a file from a CDN
|
|
8
|
+
|
|
9
|
+
- **What happened:** the api container sent `Content-Type: application/json` on every request, including a GET with no
|
|
10
|
+
body to describe. That made every read a non-simple cross-origin request, so the browser asked the host's
|
|
11
|
+
permission first.
|
|
12
|
+
- **Who it hit:** hosts that allow plain cross-origin reads (GET and HEAD from any origin, the usual CORS of a public
|
|
13
|
+
bucket, the space's own CDN among them) refused that preflight. The file never loaded. Tremor's world outlines on
|
|
14
|
+
`cdn-dev.plitzi.com` are one example.
|
|
15
|
+
- **What changes:** a read now sends `Accept: application/json`, and `Content-Type` goes only with a body, unless the
|
|
16
|
+
author set their own. Headers the author adds still make the request non-simple, as they must.
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [4d10e0a]
|
|
19
|
+
- @plitzi/sdk-auth@0.37.8
|
|
20
|
+
- @plitzi/sdk-dev-tools@0.37.8
|
|
21
|
+
- @plitzi/sdk-event-bridge@0.37.8
|
|
22
|
+
- @plitzi/sdk-interactions@0.37.8
|
|
23
|
+
- @plitzi/sdk-navigation@0.37.8
|
|
24
|
+
- @plitzi/sdk-schema@0.37.8
|
|
25
|
+
- @plitzi/sdk-shared@0.37.8
|
|
26
|
+
|
|
3
27
|
## 0.37.7
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -26,14 +26,14 @@ var l = 30, u = 300, d = (e) => !!e && e !== "{}" && e !== i, f = (e) => {
|
|
|
26
26
|
data: "URL is required"
|
|
27
27
|
};
|
|
28
28
|
let s = new Headers(r);
|
|
29
|
-
s.has("
|
|
29
|
+
s.has("Accept") || s.set("Accept", "application/json");
|
|
30
30
|
let c = {
|
|
31
31
|
method: t,
|
|
32
32
|
credentials: n,
|
|
33
33
|
headers: s,
|
|
34
34
|
signal: i
|
|
35
35
|
};
|
|
36
|
-
t !== "get" && (c.body = "{}");
|
|
36
|
+
t !== "get" && (c.body = "{}", s.has("Content-Type") || s.set("Content-Type", "application/json"));
|
|
37
37
|
try {
|
|
38
38
|
let t = await fetch(e, c), n = await t.json(), r = a(t.status, n);
|
|
39
39
|
return r && o({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-elements",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.8",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -1078,13 +1078,13 @@
|
|
|
1078
1078
|
"dependencies": {
|
|
1079
1079
|
"@plitzi/nexus": "^1.3.1",
|
|
1080
1080
|
"@plitzi/plitzi-ui": "^1.6.24",
|
|
1081
|
-
"@plitzi/sdk-auth": "0.37.
|
|
1082
|
-
"@plitzi/sdk-dev-tools": "0.37.
|
|
1083
|
-
"@plitzi/sdk-event-bridge": "0.37.
|
|
1084
|
-
"@plitzi/sdk-interactions": "0.37.
|
|
1085
|
-
"@plitzi/sdk-navigation": "0.37.
|
|
1086
|
-
"@plitzi/sdk-schema": "0.37.
|
|
1087
|
-
"@plitzi/sdk-shared": "0.37.
|
|
1081
|
+
"@plitzi/sdk-auth": "0.37.8",
|
|
1082
|
+
"@plitzi/sdk-dev-tools": "0.37.8",
|
|
1083
|
+
"@plitzi/sdk-event-bridge": "0.37.8",
|
|
1084
|
+
"@plitzi/sdk-interactions": "0.37.8",
|
|
1085
|
+
"@plitzi/sdk-navigation": "0.37.8",
|
|
1086
|
+
"@plitzi/sdk-schema": "0.37.8",
|
|
1087
|
+
"@plitzi/sdk-shared": "0.37.8",
|
|
1088
1088
|
"clsx": "^2.1.1",
|
|
1089
1089
|
"immer": "^11.1.18"
|
|
1090
1090
|
},
|