Socket
Socket
Sign inDemoInstall

@withonevision/omnihive-core

Package Overview
Dependencies
Maintainers
4
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 6.2.45 to 6.2.46

1

models/HiveWorkerBase.d.ts

@@ -13,4 +13,5 @@ /// <reference types="src/types/globals.omnihive" />

checkMetadata: (metadata: any) => void;
getEnvironmentVariable: <T extends string | number | boolean>(name: string) => T | undefined;
getWorker<T extends IHiveWorker | undefined>(type: string, name?: string): T | undefined;
}
//# sourceMappingURL=HiveWorkerBase.d.ts.map

@@ -42,3 +42,4 @@ "use strict";

case EnvironmentVariableType_1.EnvironmentVariableType.Boolean:
this.metadata[metaKey] = environmentVariable.value === "true" || environmentVariable.value === true;
this.metadata[metaKey] =
environmentVariable.value === "true" || environmentVariable.value === true;
break;

@@ -55,2 +56,14 @@ case EnvironmentVariableType_1.EnvironmentVariableType.Number:

};
this.getEnvironmentVariable = (name) => {
const envVariable = this.environmentVariables.find((variable) => variable.key === name);
if (IsHelper_1.IsHelper.isNullOrUndefined(envVariable)) {
return undefined;
}
try {
return envVariable.value;
}
catch (_a) {
return undefined;
}
};
}

@@ -57,0 +70,0 @@ init(name, metadata) {

2

package.json
{
"name": "@withonevision/omnihive-core",
"version": "6.2.45",
"version": "6.2.46",
"description": "OmniHive Core",

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

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