You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@comunica/types

Package Overview
Dependencies
Maintainers
4
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comunica/types - npm Package Compare versions

Comparing version

to
2.0.1-alpha.6.0

4

lib/IActionContext.d.ts

@@ -19,2 +19,6 @@ /**

set: <V>(key: IActionContextKey<V>, value: V) => IActionContext;
/**
* Will only set the value if the key is not already set.
*/
setDefault: <V>(key: IActionContextKey<V>, value: V) => IActionContext;
delete: <V>(key: IActionContextKey<V>) => IActionContext;

@@ -21,0 +25,0 @@ get: <V>(key: IActionContextKey<V>) => V | undefined;

11

lib/IQueryEngine.d.ts

@@ -6,3 +6,3 @@ import type * as RDF from '@rdfjs/types';

import type { QueryAlgebraContext, QueryStringContext } from './IQueryContext';
import type { IQueryExplained, QueryEnhanced } from './IQueryOperationResult';
import type { IQueryExplained, QueryEnhanced, QueryExplainMode } from './IQueryOperationResult';
export declare type QueryFormatType = string | Algebra.Operation;

@@ -18,9 +18,10 @@ export declare type SourceType = IDataSource;

/**
* Evaluate the given query
* Explain the given query
* @param {string | Algebra.Operation} query A query string or algebra.
* @param context An optional query context.
* @return {Promise<IQueryableResult | IQueryExplained>}
* @param context A query context.
* @param explainMode The explain mode.
* @return {Promise<IQueryExplained>}
* A promise that resolves to the query output.
*/
queryOrExplain: <QueryFormatTypeInner extends QueryFormatType>(query: QueryFormatTypeInner, context?: QueryFormatTypeInner extends string ? QueryStringContext : QueryAlgebraContext) => Promise<QueryType | IQueryExplained>;
explain: <QueryFormatTypeInner extends QueryFormatType>(query: QueryFormatTypeInner, context: QueryFormatTypeInner extends string ? QueryStringContext : QueryAlgebraContext, explainMode: QueryExplainMode) => Promise<IQueryExplained>;
/**

@@ -27,0 +28,0 @@ * @param context An optional context.

@@ -69,5 +69,5 @@ import type * as RDF from '@rdfjs/types';

/**
* A promise resolving to the boolean output of the operation.
* An async function resolving to the boolean output of the operation.
*/
booleanResult: Promise<boolean>;
execute: () => Promise<boolean>;
}

@@ -84,5 +84,5 @@ /**

/**
* A promise resolving when the update has finished.
* An async function resolving when the update has finished.
*/
voidResult: Promise<void>;
execute: () => Promise<void>;
}

@@ -129,2 +129,3 @@ /**

* An interface marking an explained query.
* WARNING: this API is experimental, and might be changed inbetween major versions.
*/

@@ -131,0 +132,0 @@ export interface IQueryExplained {

{
"name": "@comunica/types",
"version": "2.0.1-alpha.5.0",
"version": "2.0.1-alpha.6.0",
"description": "Typings module for Comunica",

@@ -16,2 +16,3 @@ "lsd:module": true,

},
"sideEffects": false,
"keywords": [

@@ -44,3 +45,3 @@ "comunica",

},
"gitHead": "e2ae2e9e924bf0656df60cc99774f7e560d47695"
"gitHead": "bbf46a068e635256495a40e784a4691b22e88bd3"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet