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

@hyperledger/cactus-core

Package Overview
Dependencies
Maintainers
7
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperledger/cactus-core - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1-feat-1122.01a4d64d.130

dist/lib/test/typescript/integration/api-surface.test.js

2

dist/lib/main/typescript/consortium-repository.js

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

* all the different types of entities for Consortium representation such as
* `CactusNode`, `ConsortumMember`, `Ledger` etc..
* `CactusNode`, `ConsortiumMember`, `Ledger` etc..
*/

@@ -12,0 +12,0 @@ class ConsortiumRepository {

@@ -48,5 +48,2 @@ "use strict";

}
getOneByAspect(aspect) {
return this.findOneByAspect(aspect).orElseThrow(() => new Error(`No plugin with aspect: ${aspect}`));
}
findOneByPackageName(packageName) {

@@ -59,6 +56,2 @@ const plugin = this.getPlugins().find((p) => p.getPackageName() === packageName);

}
findOneByAspect(aspect) {
const plugin = this.getPlugins().find((p) => p.getAspect() === aspect);
return typescript_optional_1.Optional.ofNullable(plugin);
}
findOneByKeychainId(keychainId) {

@@ -69,11 +62,7 @@ const fnTag = "PluginRegistry#findOneByKeychainId()";

}
const plugin = this.findManyByAspect(cactus_core_api_1.PluginAspect.KEYCHAIN).find((keychainPlugin) => keychainPlugin.getKeychainId() === keychainId);
const plugin = this.plugins
.filter((p) => cactus_core_api_1.isIPluginKeychain(p))
.find((p) => p.getKeychainId() === keychainId);
return typescript_optional_1.Optional.ofNullable(plugin).orElseThrow(() => new Error(`${fnTag} No keychain found for ID ${keychainId}`));
}
findManyByAspect(aspect) {
return this.getPlugins().filter((p) => p.getAspect() === aspect);
}
hasByAspect(aspect) {
return this.findOneByAspect(aspect).isPresent();
}
hasByPackageName(packageName) {

@@ -111,2 +100,2 @@ return this.findOneByPackageName(packageName).isPresent();

PluginRegistry.CLASS_NAME = "PluginRegistry";
//#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IsQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNuRCxJQUFJLFdBQVcsSUFBSSxDQUFDLGlCQUFpQixFQUFFO1lBQ3JDLE1BQU0sSUFBSSxLQUFLLENBQUMsNkNBQTZDLE9BQU8sRUFBRSxDQUFDLENBQUM7U0FDekU7UUFDRCxJQUFJLFdBQVcsR0FBRyxDQUFDLENBQUM7UUFDcEIsSUFBSSxpQkFBaUIsRUFBRTtZQUNyQixDQUFDLFdBQVcsQ0FBQyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxNQUFNLENBQUMsY0FBYyxFQUFFLENBQUMsQ0FBQztTQUNuRTtRQUNELElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDL0IsT0FBTyxDQUFDLFdBQVcsQ0FBQyxDQUFDO0lBQ3ZCLENBQUM7O0FBekdILHdDQTBHQztBQXpHd0IseUJBQVUsR0FBRyxnQkFBZ0IsQ0FBQyJ9

@@ -9,9 +9,25 @@ "use strict";

const public_api_1 = require("../../../main/typescript/public-api");
const cactus_core_api_1 = require("@hyperledger/cactus-core-api");
tape_1.default("PluginRegistry", (tMain) => {
tape_1.default("findOneByKeychainId() finds plugin by keychain ID", (t) => {
const keychainId = uuid_1.v4();
const instanceId = uuid_1.v4();
const mockKeychainPlugin = {
getInstanceId: () => instanceId,
getKeychainId: () => keychainId,
getAspect: () => cactus_core_api_1.PluginAspect.KEYCHAIN,
delete: async () => {
throw new Error("This is a mock. Not implemented.");
},
has: async () => {
throw new Error("This is a mock. Not implemented.");
},
get: async () => {
throw new Error("This is a mock. Not implemented.");
},
set: async () => {
throw new Error("This is a mock. Not implemented.");
},
getPackageName: () => "@hyperledger/cactus-plugin-keychain-mock",
onPluginInit: async () => {
throw new Error("not sure how this works");
},
};

@@ -22,9 +38,9 @@ const pluginRegistry = new public_api_1.PluginRegistry({

{
getAspect: () => cactus_core_api_1.PluginAspect.CONSORTIUM,
getInstanceId: () => "some-mock-plugin-instance-id-1",
},
{
getAspect: () => cactus_core_api_1.PluginAspect.KV_STORAGE,
getInstanceId: () => "some-mock-plugin-instance-id-2",
},
{
getAspect: () => cactus_core_api_1.PluginAspect.LEDGER_CONNECTOR,
getInstanceId: () => "some-mock-plugin-instance-id-3",
},

@@ -42,2 +58,2 @@ ],

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2luLXJlZ2lzdHJ5LnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvdGVzdC90eXBlc2NyaXB0L3VuaXQvcGx1Z2luLXJlZ2lzdHJ5LnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxnREFBa0M7QUFDbEMsK0JBQW9DO0FBRXBDLG9FQUFxRTtBQUVyRSxrRUFJc0M7QUFFdEMsY0FBSSxDQUFDLGdCQUFnQixFQUFFLENBQUMsS0FBVyxFQUFFLEVBQUU7SUFDckMsY0FBSSxDQUFDLG1EQUFtRCxFQUFFLENBQUMsQ0FBTyxFQUFFLEVBQUU7UUFDcEUsTUFBTSxVQUFVLEdBQUcsU0FBTSxFQUFFLENBQUM7UUFFNUIsTUFBTSxrQkFBa0IsR0FBRztZQUN6QixhQUFhLEVBQUUsR0FBRyxFQUFFLENBQUMsVUFBVTtZQUMvQixTQUFTLEVBQUUsR0FBRyxFQUFFLENBQUMsOEJBQVksQ0FBQyxRQUFRO1NBQ3BCLENBQUM7UUFFckIsTUFBTSxjQUFjLEdBQUcsSUFBSSwyQkFBYyxDQUFDO1lBQ3hDLE9BQU8sRUFBRTtnQkFDUCxrQkFBa0I7Z0JBQ2xCO29CQUNFLFNBQVMsRUFBRSxHQUFHLEVBQUUsQ0FBQyw4QkFBWSxDQUFDLFVBQVU7aUJBQ3hCO2dCQUNsQjtvQkFDRSxTQUFTLEVBQUUsR0FBRyx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EdBQUcsRUFBRSxDQUFDO0FBQ2QsQ0FBQyxDQUFDLENBQUMifQ==

@@ -11,3 +11,3 @@ import { LogLevelDesc } from "@hyperledger/cactus-common";

* all the different types of entities for Consortium representation such as
* `CactusNode`, `ConsortumMember`, `Ledger` etc..
* `CactusNode`, `ConsortiumMember`, `Ledger` etc..
*/

@@ -14,0 +14,0 @@ export declare class ConsortiumRepository {

import { Optional } from "typescript-optional";
import { Logger, LogLevelDesc } from "@hyperledger/cactus-common";
import { ICactusPlugin, IPluginKeychain, PluginAspect } from "@hyperledger/cactus-core-api";
import { ICactusPlugin, IPluginKeychain } from "@hyperledger/cactus-core-api";
/**

@@ -37,9 +37,5 @@ * This interface describes the constructor options object that can be used to provide configuration parameters to

getOneById<T extends ICactusPlugin>(packageName: string): T;
getOneByAspect<T extends ICactusPlugin>(aspect: PluginAspect): T;
findOneByPackageName<T extends ICactusPlugin>(packageName: string): Optional<T>;
findManyByPackageName<T extends ICactusPlugin>(packageName: string): T[];
findOneByAspect<T extends ICactusPlugin>(aspect: PluginAspect): Optional<T>;
findOneByKeychainId<T extends IPluginKeychain>(keychainId: string): T;
findManyByAspect<T extends ICactusPlugin>(aspect: PluginAspect): T[];
hasByAspect(aspect: PluginAspect): boolean;
hasByPackageName(packageName: string): boolean;

@@ -46,0 +42,0 @@ deleteByPackageName(packageName: string): [number];

{
"name": "@hyperledger/cactus-core",
"version": "0.5.0",
"version": "0.5.1-feat-1122.01a4d64d.130+01a4d64d",
"description": "Contains lower level abstractions/implementation that is to be shared by multiple other, higher level packages of the project.",

@@ -84,4 +84,4 @@ "main": "dist/lib/main/typescript/index.js",

"dependencies": {
"@hyperledger/cactus-common": "0.5.0",
"@hyperledger/cactus-core-api": "0.5.0",
"@hyperledger/cactus-common": "^0.5.1-feat-1122.01a4d64d.130+01a4d64d",
"@hyperledger/cactus-core-api": "^0.5.1-feat-1122.01a4d64d.130+01a4d64d",
"express": "4.17.1",

@@ -95,3 +95,3 @@ "express-jwt-authz": "2.4.1",

},
"gitHead": "e53558dbcb64d0f408957fd7cbb1cf5d7255b560"
"gitHead": "01a4d64df747c43ac6857578c3f20bdcba4f2c26"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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