@comunica/actor-http-wayback
Advanced tools
Comparing version 2.6.9 to 2.6.11-alpha.40.0
import type { IActionHttp, IActorHttpArgs, IActorHttpOutput, MediatorHttp } from '@comunica/bus-http'; | ||
import { ActorHttp } from '@comunica/bus-http'; | ||
import type { IActorTest } from '@comunica/core'; | ||
import 'cross-fetch/polyfill'; | ||
/** | ||
@@ -5,0 +6,0 @@ * A Comunica actor to intercept HTTP requests to recover broken links using the WayBack Machine |
@@ -6,9 +6,9 @@ "use strict"; | ||
const context_entries_1 = require("@comunica/context-entries"); | ||
const cross_fetch_1 = require("cross-fetch"); | ||
const stringifyStream = require("stream-to-string"); | ||
require("cross-fetch/polyfill"); | ||
const WAYBACK_URL = 'http://wayback.archive-it.org/'; | ||
function addWayback(action) { | ||
const request = new cross_fetch_1.Request(action.input, action.init); | ||
const request = new Request(action.input, action.init); | ||
return { | ||
input: new cross_fetch_1.Request(new URL(`/${request.url}`, WAYBACK_URL), request), | ||
input: new Request(new URL(`/${request.url}`, WAYBACK_URL), request), | ||
}; | ||
@@ -15,0 +15,0 @@ } |
{ | ||
"name": "@comunica/actor-http-wayback", | ||
"version": "2.6.9", | ||
"version": "2.6.11-alpha.40.0", | ||
"description": "A wayback http actor", | ||
@@ -35,5 +35,5 @@ "lsd:module": true, | ||
"dependencies": { | ||
"@comunica/bus-http": "^2.6.9", | ||
"@comunica/context-entries": "^2.6.8", | ||
"@comunica/core": "^2.6.8", | ||
"@comunica/bus-http": "2.6.11-alpha.40.0", | ||
"@comunica/context-entries": "2.6.11-alpha.40.0", | ||
"@comunica/core": "2.6.11-alpha.40.0", | ||
"cross-fetch": "^3.1.5", | ||
@@ -47,3 +47,3 @@ "stream-to-string": "^1.2.0" | ||
}, | ||
"gitHead": "739f55dbe1b95743866f4e393ffe7a62f0410436" | ||
"gitHead": "b4e12e9d015d4bdb6b2668f3065826eb8aea3dc4" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
21673
93
1
+ Added@comunica/bus-http@2.6.11-alpha.40.0(transitive)
+ Added@comunica/context-entries@2.6.11-alpha.40.0(transitive)
+ Added@comunica/core@2.6.11-alpha.40.0(transitive)
+ Added@comunica/types@2.6.11-alpha.40.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedreadable-web-to-node-stream@3.0.2(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removed@comunica/bus-http@2.10.2(transitive)
- Removed@comunica/context-entries@2.10.0(transitive)
- Removed@comunica/core@2.10.0(transitive)
- Removed@comunica/types@2.10.0(transitive)
- Removed@smessie/readable-web-to-node-stream@3.0.3(transitive)
- Removedabort-controller@3.0.0(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbuffer@6.0.3(transitive)
- Removedevent-target-shim@5.0.1(transitive)
- Removedevents@3.3.0(transitive)
- Removedieee754@1.2.1(transitive)
- Removedprocess@0.11.10(transitive)
- Removedreadable-stream@4.7.0(transitive)