@motionstudies/data 0.1.0-alpha.30 → 0.1.0-alpha.32
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/feed-observer.mjs +2 -1
- package/package.json +3 -3
package/feed-observer.mjs
CHANGED
|
@@ -41,7 +41,8 @@ function client(fetchImpl, tokens, limits) {
|
|
|
41
41
|
headers['CF-Access-Client-Id'] = credential.accessClientId
|
|
42
42
|
headers['CF-Access-Client-Secret'] = credential.accessClientSecret
|
|
43
43
|
} else if (credential.accessClientId || credential.accessClientSecret) throw new CheckError('credentials-invalid')
|
|
44
|
-
|
|
44
|
+
// Workers supports manual redirects; reject 3xx below without forwarding credentials.
|
|
45
|
+
const response = await fetchImpl(url, { headers, signal: controller.signal, redirect: 'manual', cache: 'no-store' })
|
|
45
46
|
body = response.body
|
|
46
47
|
if (!response.ok || response.redirected) throw new CheckError('http-unavailable')
|
|
47
48
|
const advertised = response.headers.get('content-length')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motionstudies/data",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.32",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Offline data preparation primitives for Motion Studies.",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
],
|
|
134
134
|
"sideEffects": false,
|
|
135
135
|
"dependencies": {
|
|
136
|
-
"@motionstudies/core": "0.1.0-alpha.
|
|
137
|
-
"fast-xml-parser": "5.11.
|
|
136
|
+
"@motionstudies/core": "0.1.0-alpha.32",
|
|
137
|
+
"fast-xml-parser": "5.11.2"
|
|
138
138
|
}
|
|
139
139
|
}
|