@comunica/core
Advanced tools
Comparing version 2.0.1-alpha.5.0 to 2.0.1-alpha.6.0
@@ -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); |
"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
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
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
2
30
1111
83617
+ Added@comunica/types@2.0.1-alpha.6.0(transitive)
- Removed@comunica/context-entries@2.0.1-alpha.5.0(transitive)
- Removed@comunica/types@2.0.1-alpha.5.0(transitive)
- Removed@types/http-link-header@1.0.7(transitive)
- Removed@types/node@18.19.50(transitive)
- Removedcross-fetch@3.1.8(transitive)
- Removedhttp-link-header@1.1.3(transitive)
- Removedjsonld-context-parser@2.4.0(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedrelative-to-absolute-iri@1.0.7(transitive)
- Removedtr46@0.0.3(transitive)
- Removedundici-types@5.26.5(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)