@leyyo/common
v1.3.21
Published
Leyyo common library
Readme
Leyyo: Common
Common library for Leyyo framework
Import
npm i @leyyo/common
Usage (Runtime)
Test Cases
| Test Case | Error | Message | Method |
|-----------|----------------|-----------------------------------------------------------|--------------------------------------|
| 100 | DeveloperError | Invalid lifecycle stage | addLifecycleStage |
| 101 | DeveloperError | Lifecycle stage could not be found [{stage}] | addLifecycleStage |
| 102 | DeveloperError | Invalid lifecycle name [{stage}] | addLifecycleStage |
| 103 | DeveloperError | Invalid lifecycle callback [{stage}/{name}] | addLifecycleStage |
| 104 | DeveloperError | Invalid lifecycle stage | runLifecycleStage |
| 105 | DeveloperError | Lifecycle stage could not be found [{stage}] | runLifecycleStage |
| 106 | DeveloperError | Callback error during lifecycle order lambda [{stage}] | runLifecycleStage |
| 107 | DeveloperError | Callback error during lifecycle callback [{stage}/{name}] | runLifecycleStage |
| 108 | DeveloperError | Invalid lifecycle stage | setLifecycleOrderLambda |
| 109 | DeveloperError | Lifecycle stage could not be found [{stage}] | setLifecycleOrderLambda |
| 110 | DeveloperError | Invalid lifecycle callback [{stage}] | setLifecycleOrderLambda |
| 120 | DeveloperError | Invalid component name | waitDeploy |
| 121 | DeveloperError | Invalid caller callback [{name}] | waitDeploy |
| 122 | DeveloperError | Callback error during caller's callback [{name}] | waitDeploy |
| 123 | DeveloperError | Invalid component name | completeDeploy |
| 124 | DeveloperError | Callback error during pending callback [{name}] | completeDeploy |
| 130 | DeveloperError | Invalid event name | listenEvent |
| 131 | DeveloperError | Invalid listener callback [{name}] | listenEvent |
| 132 | DeveloperError | Invalid event name | deactivateEvent |
| 133 | DeveloperError | Invalid event name | activateEvent |
| 134 | DeveloperError | Invalid event name | emitEvent |
| 140 | DeveloperError | Invalid repository array name | newRepoArray |
| 141 | DeveloperError | Invalid repository list name | newRepoList |
| 142 | DeveloperError | Invalid repository map name | newRepoMap |
| 143 | DeveloperError | Invalid repository set name | newRepoSet |
| 150 | DeveloperError | Invalid fqn name | setFqn |
| 151 | DeveloperError | Empty fqn target [{fqn}] | setFqn |
| 152 | DeveloperError | Invalid fqn target [{fqn}] | setFqn |
| 220 | DeveloperError | Invalid error class | defineError |
| 221 | DeveloperError | Invalid error options [{className}] | defineError |
| 222 | DeveloperError | Invalid error options | defineLazyError |
| 223 | DeveloperError | Invalid error name | defineLazyError |
| 224 | DeveloperError | Invalid error class path [{className}] | defineLazyError |
| 225 | DeveloperError | Invalid error class name | loadLazyError |
| 226 | DeveloperError | Error was not defined [{className}] | loadLazyError |
| 227 | DeveloperError | Callback error during loading lazy class [${name}] | loadLazyError |
| 230 | DeveloperError | Invalid package name | addErrorKnownPackage |
| 231 | DeveloperError | Invalid short name [{packageName}] | addErrorKnownPackage |
| 232 | DeveloperError | Duplicated package name [{packageName}] | addErrorKnownPackage |
| 180 | DeveloperError | Invalid enum data | defineEnum |
| 181 | DeveloperError | Invalid enum options | defineEnum |
| 182 | DeveloperError | Invalid enum name | defineEnum |
| 183 | DeveloperError | Invalid enum load path | defineLazyEnum |
| 184 | DeveloperError | Invalid enum options | defineLazyEnum |
| 185 | DeveloperError | Invalid enum name | defineLazyEnum |
| 186 | DeveloperError | Callback error during loading enum data | loadLazyEnum |
| 187 | DeveloperError | Callback error during loading enum alternate data | loadLazyEnum |
| 200 | DeveloperError | Invalid log formatter | setLogFormatter |
| 201 | DeveloperError | Invalid log styler | setLogDeploymentStyler |
| 202 | DeveloperError | Invalid log styler | setLogLocalStyler |
| 203 | DeveloperError | Invalid context finder lambda | listen context:set-finder at logFn |
| `` | DeveloperError | | |
Standards
- Language:
TS - Eslint:
Yes - Static Code Analysis:
YesIntelliJ Code Inspections - DDD - Document Driven:
Yes - DDD - Domain Driven:
Yes - EDD - Exception Driven:
Yes - TDD - Test Driven:
Yes - LDD - Log Driven:
Yes - 12FA - 12 Factor-App:
50%Partially
Dependencies
NO
Prepared by
- Mustafa Yelmer
- mustafayelmer(at)gmail.com
2022-07-08
