Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@comunica/bus-http

Package Overview
Dependencies
Maintainers
4
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comunica/bus-http - npm Package Compare versions

Comparing version 1.16.0 to 1.17.0

2

index.js

@@ -10,3 +10,3 @@ "use strict";

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

/// <reference types="node" />
import { Actor, IAction, IActorArgs, IActorOutput, IActorTest } from '@comunica/core';
import type { IAction, IActorArgs, IActorOutput, IActorTest } from '@comunica/core';
import { Actor } from '@comunica/core';
/**

@@ -24,2 +25,9 @@ * A base actor for listening to HTTP events.

static toNodeReadable(body: ReadableStream | null): NodeJS.ReadableStream;
/**
* Convert the given headers object into a raw hash.
* @param headers A headers object.
*/
static headersToHash(headers: Headers): {
[key: string]: string;
};
}

@@ -26,0 +34,0 @@ /**

@@ -30,2 +30,13 @@ "use strict";

}
/**
* Convert the given headers object into a raw hash.
* @param headers A headers object.
*/
static headersToHash(headers) {
const hash = {};
headers.forEach((value, key) => {
hash[key] = value;
});
return hash;
}
}

@@ -32,0 +43,0 @@ exports.ActorHttp = ActorHttp;

{
"name": "@comunica/bus-http",
"version": "1.16.0",
"version": "1.17.0",
"description": "A comunica bus for 'http' events.",

@@ -15,3 +15,7 @@ "lsd:module": "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http",

"typings": "index",
"repository": "https://github.com/comunica/comunica/tree/master/packages/bus-http",
"repository": {
"type": "git",
"url": "https://github.com/comunica/comunica.git",
"directory": "packages/bus-http"
},
"publishConfig": {

@@ -29,3 +33,3 @@ "access": "public"

},
"homepage": "https://github.com/comunica/comunica#readme",
"homepage": "https://comunica.dev/",
"files": [

@@ -46,4 +50,20 @@ "components",

"devDependencies": {
"@comunica/core": "^1.15.0"
"@comunica/core": "^1.17.0"
},
"jest": {
"globals": {
"ts-jest": {
"tsConfig": "../../tsconfig.json"
}
},
"transform": {
"^.+\\.ts$": "ts-jest"
},
"testRegex": "(/test/.*|(\\.|/)(test|spec))\\.ts$",
"moduleFileExtensions": [
"ts",
"js"
],
"collectCoverage": true
},
"scripts": {

@@ -53,3 +73,3 @@ "build": "node \"../../node_modules/typescript/bin/tsc\"",

},
"gitHead": "ed0260a5d71d61a1a77916454fb83039a4ab47b6"
"gitHead": "cea13b435ebbda09e0ad359f54d3c62077fe3bba"
}

@@ -5,6 +5,9 @@ # Comunica Bus HTTP

A comunica bus for HTTP request events.
Performs HTTP(S) requests.
This module is part of the [Comunica framework](https://github.com/comunica/comunica).
This module is part of the [Comunica framework](https://github.com/comunica/comunica),
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).
[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/).
## Install

@@ -16,4 +19,9 @@

## Usage
## Bus usage
TODO
* **Context**: `"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/^1.0.0/components/context.jsonld"`
* **Bus name**: `cbh:Bus/Http`
## Creating actors on this bus
Actors extending [`ActorHttp`](https://comunica.github.io/comunica/classes/bus_http.actorhttp-1.html) are automatically subscribed to this bus.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc