koatty_core
Advanced tools
Comparing version 1.3.3 to 1.3.5
@@ -117,3 +117,3 @@ /** | ||
appDebug: boolean; | ||
private handelMap; | ||
private metadata; | ||
/** | ||
@@ -136,3 +136,3 @@ * Creates an instance of Koatty. | ||
*/ | ||
setMetaData(key: string, value: any): Map<string, unknown>; | ||
setMetaData(key: string, value: any): any; | ||
/** | ||
@@ -139,0 +139,0 @@ * Get application metadata by key |
@@ -44,3 +44,3 @@ "use strict"; | ||
this.thinkPath = thinkPath; | ||
this.handelMap = new Map(); | ||
this.metadata = new Context_1.KoattyMetadata(); | ||
// constructor | ||
@@ -66,5 +66,5 @@ this.init(); | ||
Helper.define(this, key, value); | ||
return this.handelMap; | ||
return; | ||
} | ||
return this.handelMap.set(key, value); | ||
this.metadata.set(key, value); | ||
} | ||
@@ -82,3 +82,3 @@ /** | ||
} | ||
return this.handelMap.get(key); | ||
return this.metadata.get(key); | ||
} | ||
@@ -85,0 +85,0 @@ /** |
{ | ||
"name": "koatty_core", | ||
"version": "1.3.3", | ||
"version": "1.3.5", | ||
"description": "Koatty routing component, adapt to http1/2, websocket, gRPC.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
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
2105499