@comunica/bus-http
Advanced tools
Comparing version 1.22.1 to 2.0.1-alpha.5.0
/// <reference types="node" /> | ||
import { KeysHttp } from '@comunica/context-entries'; | ||
import type { IAction, IActorArgs, IActorOutput, IActorTest } from '@comunica/core'; | ||
import type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate } from '@comunica/core'; | ||
import { Actor } from '@comunica/core'; | ||
@@ -18,4 +17,7 @@ /** | ||
export declare abstract class ActorHttp extends Actor<IActionHttp, IActorTest, IActorHttpOutput> { | ||
constructor(args: IActorArgs<IActionHttp, IActorTest, IActorHttpOutput>); | ||
/** | ||
* @param args - @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus | ||
*/ | ||
constructor(args: IActorHttpArgs); | ||
/** | ||
* Converts WhatWG streams to Node streams if required. | ||
@@ -51,12 +53,3 @@ * Returns the input in case the stream already is a Node stream. | ||
} | ||
/** | ||
* @type {string} Context entry for the include credentials flags. | ||
* @deprecated Import this constant from @comunica/context-entries. | ||
*/ | ||
export declare const KEY_CONTEXT_INCLUDE_CREDENTIALS = KeysHttp.includeCredentials; | ||
/** | ||
* @type {string} Context entry for the authentication for a source. | ||
* @value {string} "username:password"-pair. | ||
* @deprecated Import this constant from @comunica/context-entries. | ||
*/ | ||
export declare const KEY_CONTEXT_AUTH = KeysHttp.auth; | ||
export declare type IActorHttpArgs = IActorArgs<IActionHttp, IActorTest, IActorHttpOutput>; | ||
export declare type MediatorHttp = Mediate<IActionHttp, IActorHttpOutput>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.KEY_CONTEXT_AUTH = exports.KEY_CONTEXT_INCLUDE_CREDENTIALS = exports.ActorHttp = void 0; | ||
const context_entries_1 = require("@comunica/context-entries"); | ||
exports.ActorHttp = void 0; | ||
const core_1 = require("@comunica/core"); | ||
@@ -22,2 +21,5 @@ const readable_web_to_node_stream_1 = require("readable-web-to-node-stream"); | ||
class ActorHttp extends core_1.Actor { | ||
/** | ||
* @param args - @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus | ||
*/ | ||
constructor(args) { | ||
@@ -58,13 +60,2 @@ super(args); | ||
exports.ActorHttp = ActorHttp; | ||
/** | ||
* @type {string} Context entry for the include credentials flags. | ||
* @deprecated Import this constant from @comunica/context-entries. | ||
*/ | ||
exports.KEY_CONTEXT_INCLUDE_CREDENTIALS = context_entries_1.KeysHttp.includeCredentials; | ||
/** | ||
* @type {string} Context entry for the authentication for a source. | ||
* @value {string} "username:password"-pair. | ||
* @deprecated Import this constant from @comunica/context-entries. | ||
*/ | ||
exports.KEY_CONTEXT_AUTH = context_entries_1.KeysHttp.auth; | ||
//# sourceMappingURL=ActorHttp.js.map |
The MIT License (MIT) | ||
Copyright © 2017–2018 Ruben Taelman, Joachim Van Herwegen | ||
Ghent University – imec, Belgium | ||
Copyright © 2017–now Ruben Taelman, Joachim Van Herwegen | ||
Comunica Association and Ghent University – imec, Belgium | ||
@@ -6,0 +6,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "@comunica/bus-http", | ||
"version": "1.22.1", | ||
"version": "2.0.1-alpha.5.0", | ||
"description": "A comunica bus for 'http' events.", | ||
"lsd:module": true, | ||
"main": "index.js", | ||
"typings": "index", | ||
"main": "lib/index.js", | ||
"typings": "lib/index", | ||
"repository": { | ||
@@ -29,11 +29,7 @@ "type": "git", | ||
"lib/**/*.d.ts", | ||
"lib/**/*.js", | ||
"index.d.ts", | ||
"index.js" | ||
"lib/**/*.js" | ||
], | ||
"peerDependencies": { | ||
"@comunica/core": "^1.0.0" | ||
}, | ||
"dependencies": { | ||
"@comunica/context-entries": "^1.22.0", | ||
"@comunica/context-entries": "2.0.1-alpha.5.0", | ||
"@comunica/core": "2.0.1-alpha.5.0", | ||
"@types/readable-stream": "^2.3.11", | ||
@@ -44,26 +40,8 @@ "is-stream": "^2.0.0", | ||
}, | ||
"devDependencies": { | ||
"@comunica/core": "^1.22.0" | ||
}, | ||
"jest": { | ||
"globals": { | ||
"ts-jest": { | ||
"tsConfig": "../../tsconfig.json" | ||
} | ||
}, | ||
"transform": { | ||
"^.+\\.ts$": "ts-jest" | ||
}, | ||
"testRegex": "(/test/.*|(\\.|/)(test|spec))\\.ts$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"js" | ||
], | ||
"collectCoverage": true | ||
}, | ||
"scripts": { | ||
"build": "node \"../../node_modules/typescript/bin/tsc\"", | ||
"validate": "npm ls" | ||
"build": "npm run build:ts && npm run build:components", | ||
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"", | ||
"build:components": "componentsjs-generator" | ||
}, | ||
"gitHead": "d9adc4e150de2bc4037fff369a9c62d9032b44bc" | ||
"gitHead": "e2ae2e9e924bf0656df60cc99774f7e560d47695" | ||
} |
@@ -20,4 +20,4 @@ # Comunica Bus HTTP | ||
* **Context**: `"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/^1.0.0/components/context.jsonld"` | ||
* **Bus name**: `cbh:Bus/Http` | ||
* **Context**: `"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/^2.0.0/components/context.jsonld"` | ||
* **Bus name**: `ActorHttp:_default_bus` | ||
@@ -24,0 +24,0 @@ ## Creating actors on this bus |
Sorry, the diff of this file is not supported yet
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
17030
0
10
125
1
+ Added@comunica/context-entries@2.0.1-alpha.5.0(transitive)
+ Added@comunica/core@2.0.1-alpha.5.0(transitive)
+ Added@comunica/types@2.0.1-alpha.5.0(transitive)
+ Added@types/http-link-header@1.0.7(transitive)
+ Added@types/node@18.19.50(transitive)
+ Added@types/yargs@17.0.33(transitive)
+ Added@types/yargs-parser@21.0.3(transitive)
+ Addedcross-fetch@3.1.8(transitive)
+ Addedhttp-link-header@1.1.3(transitive)
+ Addedjsonld-context-parser@2.4.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedrelative-to-absolute-iri@1.0.7(transitive)
+ Addedsparqlalgebrajs@4.3.8(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedundici-types@5.26.5(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removed@comunica/context-entries@1.22.0(transitive)
- Removed@comunica/core@1.22.0(transitive)
- Removed@comunica/types@1.22.0(transitive)
- Removedsparqlalgebrajs@3.0.3(transitive)