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

deep-kernel

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deep-kernel - npm Package Compare versions

Comparing version 1.9.5 to 1.9.6

4

lib.compiled/Config/Driver/AsyncConfig.js

@@ -34,3 +34,3 @@ /**

function AsyncConfig(kernel) {
let configFile = arguments.length <= 1 || arguments[1] === undefined ? AsyncConfig.DEFAULT_CONFIG_FILE : arguments[1];
let configFile = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : AsyncConfig.DEFAULT_CONFIG_FILE;

@@ -60,3 +60,3 @@ _classCallCheck(this, AsyncConfig);

value: function _load() {
let configFile = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];
let configFile = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;

@@ -63,0 +63,0 @@ this._configFile = configFile || this._configFile;

@@ -85,3 +85,3 @@ /**

value: function _loadDriversQueue(drivers) {
let errors = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];
let errors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];

@@ -88,0 +88,0 @@ if (drivers.length <= 0) {

@@ -35,3 +35,3 @@ /**

function FsDriver() {
let file = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];
let file = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;

@@ -87,3 +87,3 @@ _classCallCheck(this, FsDriver);

value: function _load() {
let file = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];
let file = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;

@@ -90,0 +90,0 @@ this._file = file || this._file;

@@ -29,3 +29,3 @@ /**

function HttpDriver() {
let endpoint = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];
let endpoint = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;

@@ -67,3 +67,3 @@ _classCallCheck(this, HttpDriver);

value: function _load() {
let endpoint = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];
let endpoint = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;

@@ -70,0 +70,0 @@ this._endpoint = endpoint || this._endpoint;

@@ -39,4 +39,4 @@ /**

function KernelDriver(kernel) {
let scopeKey = arguments.length <= 1 || arguments[1] === undefined ? KernelDriver.SCOPE_KEY : arguments[1];
let configFile = arguments.length <= 2 || arguments[2] === undefined ? KernelDriver.DEFAULT_CONFIG_FILE : arguments[2];
let scopeKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : KernelDriver.SCOPE_KEY;
let configFile = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : KernelDriver.DEFAULT_CONFIG_FILE;

@@ -68,4 +68,4 @@ _classCallCheck(this, KernelDriver);

value: function _load() {
let scopeKey = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];
let configFile = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];
let scopeKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
let configFile = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;

@@ -72,0 +72,0 @@ this._scopeKey = scopeKey || this._scopeKey;

@@ -83,3 +83,3 @@ /**

value: function _load() {
let key = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];
let key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;

@@ -86,0 +86,0 @@ this._key = key || this._key;

@@ -25,3 +25,3 @@ /**

function Loader() {
let driver = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];
let driver = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;

@@ -61,4 +61,4 @@ _classCallCheck(this, Loader);

value: function load() {
let onLoaded = arguments.length <= 0 || arguments[0] === undefined ? () => {} : arguments[0];
let onFail = arguments.length <= 1 || arguments[1] === undefined ? () => {} : arguments[1];
let onLoaded = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : () => {};
let onFail = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : () => {};

@@ -65,0 +65,0 @@ onLoaded && this._driver.onLoadedCb(onLoaded);

@@ -65,2 +65,12 @@ /**

/**
* Cleanup a certain service
*/
}, {
key: 'cleanup',
value: function cleanup() {}
// @todo: override in child service
/**
* @param {Object|String} microservice

@@ -67,0 +77,0 @@ * @returns {Injectable}

@@ -91,3 +91,3 @@ /**

value: function microservice() {
let identifier = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];
let identifier = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;

@@ -262,2 +262,20 @@ if (!identifier) {

/**
* @returns {Kernel}
*/
}, {
key: 'kernelCleanup',
value: function kernelCleanup() {
let serviceNames = Object.keys(this.services);
for (let serviceName of serviceNames) {
let serviceInstance = this.get(serviceName.toLowerCase());
serviceInstance.cleanup();
}
return this;
}
/**
* Loads all Kernel dependencies

@@ -264,0 +282,0 @@ *

@@ -34,3 +34,3 @@ /**

function Instance(identifier, rawResources) {
let parameters = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];
let parameters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

@@ -37,0 +37,0 @@ _classCallCheck(this, Instance);

{
"name": "deep-kernel",
"version": "1.9.5",
"version": "1.9.6",
"description": "DEEP Kernel Library",

@@ -5,0 +5,0 @@ "keywords": [

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