@xyo-network/base
Advanced tools
Comparing version 0.13.0 to 0.14.0
@@ -8,3 +8,3 @@ "use strict"; | ||
* @Last modified by: ryanxyo | ||
* @Last modified time: Monday, 10th December 2018 1:26:51 pm | ||
* @Last modified time: Wednesday, 16th January 2019 2:54:11 pm | ||
* @License: All Rights Reserved | ||
@@ -46,2 +46,9 @@ * @Copyright: Copyright XY | The Findables Company | ||
} | ||
// protected async getOrCreateAsync<T>(name: string, initializer: () => Promise<T>): Promise<T> { | ||
// if (!this.cache) { | ||
// this.cache = new XyoSimpleCache() | ||
// } | ||
// const t = await this.cache.getOrCreate(name, initializer) | ||
// return t | ||
// } | ||
/** Logs to the `info` level */ | ||
@@ -79,3 +86,3 @@ logInfo(message, ...optionalParams) { | ||
exports.XyoBase = XyoBase; | ||
XyoBase.logger = new logger_1.XyoLogger(process.env.NODE_ENV !== 'test', process.env.NODE_ENV !== 'test'); | ||
XyoBase.logger = new logger_1.XyoLogger(process.env.ENABLE_LOGGING_FILES !== undefined, process.env.ENABLE_LOGGING_FILES !== undefined); | ||
//# sourceMappingURL=xyo-base.js.map |
{ | ||
"name": "@xyo-network/base", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"description": "A base class for the Xyo Network", | ||
@@ -10,3 +10,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@xyo-network/logger": "^0.13.0", | ||
"@xyo-network/logger": "^0.14.0", | ||
"fast-safe-stringify": "^2.0.6" | ||
@@ -23,3 +23,3 @@ }, | ||
}, | ||
"gitHead": "a4f31aa4f15cfadb3c7bb2ad82acec54b19d9b9c" | ||
"gitHead": "200a705d4116aaaeb6418f174733a4365c97fe2e" | ||
} |
@@ -7,3 +7,3 @@ /* | ||
* @Last modified by: ryanxyo | ||
* @Last modified time: Monday, 10th December 2018 1:26:51 pm | ||
* @Last modified time: Wednesday, 16th January 2019 2:54:11 pm | ||
* @License: All Rights Reserved | ||
@@ -54,2 +54,11 @@ * @Copyright: Copyright XY | The Findables Company | ||
// protected async getOrCreateAsync<T>(name: string, initializer: () => Promise<T>): Promise<T> { | ||
// if (!this.cache) { | ||
// this.cache = new XyoSimpleCache() | ||
// } | ||
// const t = await this.cache.getOrCreate(name, initializer) | ||
// return t | ||
// } | ||
/** Logs to the `info` level */ | ||
@@ -86,2 +95,5 @@ protected logInfo(message?: any, ...optionalParams: any[]) { | ||
XyoBase.logger = new XyoLogger(process.env.NODE_ENV !== 'test', process.env.NODE_ENV !== 'test') | ||
XyoBase.logger = new XyoLogger( | ||
process.env.ENABLE_LOGGING_FILES !== undefined, | ||
process.env.ENABLE_LOGGING_FILES !== undefined | ||
) |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
17420
355
Updated@xyo-network/logger@^0.14.0