@comunica/actor-http-fetch
Advanced tools
Comparing version 2.0.1-alpha.5.0 to 2.0.1-alpha.6.0
@@ -47,3 +47,3 @@ "use strict"; | ||
// TODO: remove this workaround once this has a fix: https://github.com/inrupt/solid-client-authn-js/issues/1708 | ||
if (action.init && action.init.headers && 'append' in action.init.headers && action.context.has(context_entries_1.KeysHttp.fetch)) { | ||
if (action.init?.headers && 'append' in action.init.headers && action.context.has(context_entries_1.KeysHttp.fetch)) { | ||
action.init.headers = bus_http_1.ActorHttp.headersToHash(action.init.headers); | ||
@@ -56,3 +56,3 @@ } | ||
...action.init, | ||
...action.context && action.context.get(context_entries_1.KeysHttp.includeCredentials) ? { credentials: 'include' } : {}, | ||
...action.context.get(context_entries_1.KeysHttp.includeCredentials) ? { credentials: 'include' } : {}, | ||
})).then(response => { | ||
@@ -59,0 +59,0 @@ // Node-fetch does not support body.cancel, while it is mandatory according to the fetch and readablestream api. |
{ | ||
"name": "@comunica/actor-http-fetch", | ||
"version": "2.0.1-alpha.5.0", | ||
"version": "2.0.1-alpha.6.0", | ||
"description": "A node-fetch http actor", | ||
@@ -16,2 +16,3 @@ "lsd:module": true, | ||
}, | ||
"sideEffects": false, | ||
"keywords": [ | ||
@@ -32,6 +33,6 @@ "comunica", | ||
"dependencies": { | ||
"@comunica/bus-http": "2.0.1-alpha.5.0", | ||
"@comunica/context-entries": "2.0.1-alpha.5.0", | ||
"@comunica/core": "2.0.1-alpha.5.0", | ||
"@comunica/mediatortype-time": "2.0.1-alpha.5.0", | ||
"@comunica/bus-http": "2.0.1-alpha.6.0", | ||
"@comunica/context-entries": "2.0.1-alpha.6.0", | ||
"@comunica/core": "2.0.1-alpha.6.0", | ||
"@comunica/mediatortype-time": "2.0.1-alpha.6.0", | ||
"cross-fetch": "^3.0.5" | ||
@@ -47,3 +48,3 @@ }, | ||
}, | ||
"gitHead": "e2ae2e9e924bf0656df60cc99774f7e560d47695" | ||
"gitHead": "bbf46a068e635256495a40e784a4691b22e88bd3" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20264
+ Added@comunica/bus-http@2.0.1-alpha.6.0(transitive)
+ Added@comunica/context-entries@2.0.1-alpha.6.0(transitive)
+ Added@comunica/core@2.0.1-alpha.6.0(transitive)
+ Added@comunica/mediatortype-time@2.0.1-alpha.6.0(transitive)
+ Added@comunica/types@2.0.1-alpha.6.0(transitive)
- Removed@comunica/bus-http@2.0.1-alpha.5.0(transitive)
- Removed@comunica/context-entries@2.0.1-alpha.5.0(transitive)
- Removed@comunica/core@2.0.1-alpha.5.0(transitive)
- Removed@comunica/mediatortype-time@2.0.1-alpha.5.0(transitive)
- Removed@comunica/types@2.0.1-alpha.5.0(transitive)