@universal-packages/dynamic-api
Advanced tools
Comparing version 1.5.1 to 1.6.0
@@ -5,5 +5,5 @@ /// <reference types="node" /> | ||
export default class DynamicApi<D extends Record<string, any>> extends EventEmitter { | ||
static readonly debugLog: DebugLog; | ||
readonly options: DynamicApiOptions; | ||
readonly dynamics: Dynamics; | ||
readonly debugLog: DebugLog; | ||
constructor(options: DynamicApiOptions); | ||
@@ -10,0 +10,0 @@ loadDynamics(): Promise<void>; |
@@ -9,3 +9,2 @@ "use strict"; | ||
this.dynamics = {}; | ||
this.debugLog = []; | ||
this.options = { ...options }; | ||
@@ -109,3 +108,3 @@ if (this.options.debug && process.env['NODE_ENV'] !== 'test' && process.env['NODE_ENV'] !== 'development') { | ||
if (this.options.debug) | ||
this.debugLog.push(debugEntry); | ||
this.constructor['debugLog'].push(debugEntry); | ||
if (this.options.accumulate) { | ||
@@ -174,3 +173,3 @@ return results; | ||
if (this.options.debug) | ||
this.debugLog.push(debugEntry); | ||
this.constructor['debugLog'].push(debugEntry); | ||
if (this.options.accumulate) { | ||
@@ -206,2 +205,3 @@ return results; | ||
exports.default = DynamicApi; | ||
DynamicApi.debugLog = []; | ||
//# sourceMappingURL=DynamicApi.js.map |
{ | ||
"name": "@universal-packages/dynamic-api", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "Dynamic decoupling-adapting system", | ||
@@ -14,3 +14,4 @@ "author": "David De Anda <david@universal-packages.com> (https://github.com/universal-packages)", | ||
"test:full": "jest --coverage --verbose", | ||
"test:clear": "jest --clearCache" | ||
"test:clear": "jest --clearCache", | ||
"format": "prettier --write \"./{src,tests}/**/*.{ts,tsx,js,jsx,json}\"" | ||
}, | ||
@@ -21,2 +22,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"@trivago/prettier-plugin-sort-imports": "^4.1.1", | ||
"@types/jest": "^28.1.0", | ||
@@ -26,2 +28,3 @@ "@types/node": "^17.0.39", | ||
"jest-circus": "^28.1.0", | ||
"prettier": "^2.8.7", | ||
"ts-jest": "^28.0.4", | ||
@@ -50,4 +53,15 @@ "typescript": "^4.7.3" | ||
"printWidth": 180, | ||
"trailingComma": "none" | ||
"trailingComma": "none", | ||
"importOrder": [ | ||
"^[./]" | ||
], | ||
"importOrderSeparation": true, | ||
"importOrderSortSpecifiers": true, | ||
"importOrderParserPlugins": [ | ||
"typescript", | ||
"jsx", | ||
"classProperties", | ||
"decorators-legacy" | ||
] | ||
} | ||
} |
@@ -71,3 +71,3 @@ # Dynamic API | ||
## Hooks | ||
## Decorators | ||
#### **`@Dynamic(name: string, [default: boolean])`** | ||
@@ -74,0 +74,0 @@ |
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
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
32478
8