Socket
Socket
Sign inDemoInstall

@comunica/core

Package Overview
Dependencies
Maintainers
4
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comunica/core - npm Package Compare versions

Comparing version 2.0.1-alpha.5.0 to 2.0.1-alpha.6.0

lib/ContextEntries.d.ts

4

lib/ActionContext.d.ts

@@ -8,2 +8,6 @@ import type { IActionContext, IActionContextKey } from '@comunica/types';

constructor(data?: Record<string, any>);
/**
* Will only set the value if the key is not already set.
*/
setDefault<V>(key: IActionContextKey<V>, value: V): IActionContext;
set<V>(key: IActionContextKey<V>, value: V): IActionContext;

@@ -10,0 +14,0 @@ setRaw(key: string, value: any): IActionContext;

@@ -12,2 +12,8 @@ "use strict";

}
/**
* Will only set the value if the key is not already set.
*/
setDefault(key, value) {
return this.has(key) ? this : this.set(key, value);
}
set(key, value) {

@@ -14,0 +20,0 @@ return this.setRaw(key.name, value);

4

lib/Actor.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Actor = void 0;
const context_entries_1 = require("@comunica/context-entries");
const ContextEntries_1 = require("./ContextEntries");
/**

@@ -47,3 +47,3 @@ * An actor can act on messages of certain types and provide output of a certain type.

static getContextLogger(context) {
return context && context.get(context_entries_1.KeysCore.log);
return context.get(ContextEntries_1.CONTEXT_KEY_LOGGER);
}

@@ -50,0 +50,0 @@ /**

export * from './ActionContext';
export * from './Bus';
export * from './BusIndexed';
export * from './ContextEntries';
export * from './ActionObserver';

@@ -5,0 +6,0 @@ export * from './Actor';

@@ -16,2 +16,3 @@ "use strict";

__exportStar(require("./BusIndexed"), exports);
__exportStar(require("./ContextEntries"), exports);
__exportStar(require("./ActionObserver"), exports);

@@ -18,0 +19,0 @@ __exportStar(require("./Actor"), exports);

{
"name": "@comunica/core",
"version": "2.0.1-alpha.5.0",
"version": "2.0.1-alpha.6.0",
"description": "Lightweight, semantic and modular actor framework",

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

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

@@ -38,4 +39,3 @@ "semantic",

"dependencies": {
"@comunica/context-entries": "2.0.1-alpha.5.0",
"@comunica/types": "2.0.1-alpha.5.0",
"@comunica/types": "2.0.1-alpha.6.0",
"immutable": "^3.8.2"

@@ -48,3 +48,3 @@ },

},
"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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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