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

@withonevision/omnihive-core

Package Overview
Dependencies
Maintainers
2
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@withonevision/omnihive-core - npm Package Compare versions

Comparing version 4.0.3-dev.34 to 4.0.3-dev.35

0

enums/HiveWorkerType.d.ts

@@ -0,0 +0,0 @@ export declare enum HiveWorkerType {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare enum LifecycleWorkerAction {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare enum LifecycleWorkerStage {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare enum LocalFunctionType {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare enum OmniHiveLogLevel {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare enum RegisteredUrlType {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare enum RestMethod {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare enum ServerStatus {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { ConfigurationService } from "../services/ConfigurationService";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class AwaitHelper {

13

helpers/AwaitHelper.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -16,3 +7,3 @@ exports.AwaitHelper = void 0;

exports.AwaitHelper = AwaitHelper;
AwaitHelper.execute = (promise) => __awaiter(void 0, void 0, void 0, function* () {
AwaitHelper.execute = async (promise) => {
return promise

@@ -23,3 +14,3 @@ .then((data) => data)

});
});
};
//# sourceMappingURL=AwaitHelper.js.map

@@ -0,0 +0,0 @@ export declare class ObjectHelper {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class StringBuilder {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class StringHelper {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IHiveWorker } from "./IHiveWorker";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ICacheWorker.js.map

@@ -0,0 +0,0 @@ import { ConnectionSchema } from "../models/ConnectionSchema";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IDatabaseWorker.js.map

@@ -0,0 +0,0 @@ import { IHiveWorker } from "./IHiveWorker";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IDateWorker.js.map

@@ -0,0 +0,0 @@ import { IHiveWorker } from "./IHiveWorker";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IEncryptionWorker.js.map

@@ -0,0 +0,0 @@ import { IHiveWorker } from "./IHiveWorker";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IErrorWorker.js.map

@@ -0,0 +0,0 @@ import { IHiveWorker } from "./IHiveWorker";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IFeatureWorker.js.map

@@ -0,0 +0,0 @@ import { IHiveWorker } from "./IHiveWorker";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IFileSystemWorker.js.map

@@ -0,0 +0,0 @@ import { ConnectionSchema } from "../models/ConnectionSchema";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IGraphBuildWorker.js.map

@@ -0,0 +0,0 @@ import { IHiveWorker } from "./IHiveWorker";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IGraphEndpointWorker.js.map

@@ -0,0 +0,0 @@ import { HiveAccount } from "../models/HiveAccount";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IHiveAccountWorker.js.map

@@ -0,0 +0,0 @@ import { HiveWorker } from "../models/HiveWorker";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IHiveWorker.js.map

@@ -0,0 +0,0 @@ import { OmniHiveLogLevel } from "../enums/OmniHiveLogLevel";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ILogWorker.js.map

@@ -0,0 +0,0 @@ import { PubSubListener } from "../models/PubSubListener";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IPubSubClientWorker.js.map

@@ -0,0 +0,0 @@ import { IHiveWorker } from "./IHiveWorker";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IPubSubServerWorker.js.map

@@ -0,0 +0,0 @@ import { RestEndpointExecuteResponse } from "../models/RestEndpointExecuteResponse";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IRestEndpointWorker.js.map

@@ -0,0 +0,0 @@ import { IHiveWorker } from "./IHiveWorker";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IServerWorker.js.map

@@ -0,0 +0,0 @@ import { IHiveWorker } from "./IHiveWorker";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IStorageWorker.js.map

@@ -0,0 +0,0 @@ import { IHiveWorker } from "./IHiveWorker";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ITokenWorker.js.map

@@ -0,0 +0,0 @@ import { AuthUser } from "../models/AuthUser";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IUserWorker.js.map

@@ -0,0 +0,0 @@ export declare class AuthUser {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class ClientSettings {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { StoredProcSchema } from "./StoredProcSchema";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class ConverterSqlInfo {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class Customer {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { GraphQLScalarType } from "graphql";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { Customer } from "./Customer";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class HiveAccountType {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class HiveWorker {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IHiveWorker } from "../interfaces/IHiveWorker";

27

models/HiveWorkerBase.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -27,14 +18,10 @@ exports.HiveWorkerBase = void 0;

}
afterInit() {
return __awaiter(this, void 0, void 0, function* () {
return;
});
async afterInit() {
return;
}
init(config) {
return __awaiter(this, void 0, void 0, function* () {
if (!config || Object.keys(config).length <= 0) {
throw new Error("Configuration not specified");
}
this.config = config;
});
async init(config) {
if (!config || Object.keys(config).length <= 0) {
throw new Error("Configuration not specified");
}
this.config = config;
}

@@ -41,0 +28,0 @@ }

@@ -0,0 +0,0 @@ export declare class HiveWorkerMetadataDatabase {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class HiveWorkerMetadataGraphBuilder {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { LifecycleWorkerAction } from "../enums/LifecycleWorkerAction";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { RestMethod } from "../enums/RestMethod";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class HiveWorkerMetadataServer {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class PubSubListener {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { HiveWorker } from "./HiveWorker";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class RegisteredUrl {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class RestEndpointExecuteResponse {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class ServerConfigSettings {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { HiveWorker } from "./HiveWorker";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class StoredProcSchema {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class TableSchema {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { HiveWorker } from "./HiveWorker";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { TestConfigSettings } from "./TestConfigSettings";

@@ -0,0 +0,0 @@ "use strict";

{
"name": "@withonevision/omnihive-core",
"version": "4.0.3-dev.34",
"version": "4.0.3-dev.35",
"description": "OmniHive Core",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -0,0 +0,0 @@ import { HiveAccount } from "../models/HiveAccount";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { ConnectionSchema } from "../models/ConnectionSchema";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IHiveWorker } from "../interfaces/IHiveWorker";

@@ -21,11 +21,2 @@ "use strict";

};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -45,3 +36,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

this.registeredWorkers = [];
this.initWorkers = (configs) => __awaiter(this, void 0, void 0, function* () {
this.initWorkers = async (configs) => {
try {

@@ -63,10 +54,10 @@ for (const hiveWorker of configs) {

}
const newWorker = yield AwaitHelper_1.AwaitHelper.execute(Promise.resolve().then(() => __importStar(require(hiveWorker.importPath))));
const newWorker = await AwaitHelper_1.AwaitHelper.execute(Promise.resolve().then(() => __importStar(require(hiveWorker.importPath))));
const newWorkerInstance = new newWorker.default();
yield AwaitHelper_1.AwaitHelper.execute(newWorkerInstance.init(hiveWorker));
const registeredWorker = Object.assign(Object.assign({}, hiveWorker), { instance: newWorkerInstance });
await AwaitHelper_1.AwaitHelper.execute(newWorkerInstance.init(hiveWorker));
const registeredWorker = { ...hiveWorker, instance: newWorkerInstance };
this.registeredWorkers.push(registeredWorker);
}
for (const worker of this.registeredWorkers) {
yield AwaitHelper_1.AwaitHelper.execute(worker.instance.afterInit());
await AwaitHelper_1.AwaitHelper.execute(worker.instance.afterInit());
}

@@ -77,7 +68,7 @@ }

}
});
};
this.clearWorkers = () => {
this.registeredWorkers = [];
};
this.getWorker = (type, name) => __awaiter(this, void 0, void 0, function* () {
this.getWorker = async (type, name) => {
if (this.registeredWorkers.length === 0) {

@@ -112,17 +103,17 @@ return undefined;

return hiveWorker.instance;
});
};
this.getWorkersByType = (type) => {
return this.registeredWorkers.filter((rw) => rw.type === type && rw.enabled === true);
};
this.pushWorker = (hiveWorker) => __awaiter(this, void 0, void 0, function* () {
this.pushWorker = async (hiveWorker) => {
if (!hiveWorker.importPath || hiveWorker.importPath === "") {
throw new Error(`Hive worker type ${hiveWorker.type} with name ${hiveWorker.name} has no import path`);
}
const newWorker = yield AwaitHelper_1.AwaitHelper.execute(Promise.resolve().then(() => __importStar(require(hiveWorker.importPath))));
const newWorker = await AwaitHelper_1.AwaitHelper.execute(Promise.resolve().then(() => __importStar(require(hiveWorker.importPath))));
const newWorkerInstance = new newWorker.default();
yield AwaitHelper_1.AwaitHelper.execute(newWorkerInstance.init(hiveWorker));
yield AwaitHelper_1.AwaitHelper.execute(newWorkerInstance.afterInit());
const registeredWorker = Object.assign(Object.assign({}, hiveWorker), { instance: newWorkerInstance });
await AwaitHelper_1.AwaitHelper.execute(newWorkerInstance.init(hiveWorker));
await AwaitHelper_1.AwaitHelper.execute(newWorkerInstance.afterInit());
const registeredWorker = { ...hiveWorker, instance: newWorkerInstance };
this.registeredWorkers.push(registeredWorker);
});
};
}

@@ -129,0 +120,0 @@ }

{
"extends": "../../../tsconfig.json"
}

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