4 Commits

Author SHA1 Message Date
22762b8eec 1.0.9 2020-07-20 11:49:50 +00:00
849f4f617b fix(core): update 2020-07-20 11:49:49 +00:00
04702c4098 1.0.8 2020-07-20 07:48:00 +00:00
65a6e8757c fix(core): update 2020-07-20 07:47:59 +00:00
4 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,7 @@
{
"npmci": {
"npmGlobalTools": []
"npmGlobalTools": [],
"npmAccessLevel": "public"
},
"gitzone": {
"projectType": "npm",

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "smartcls",
"version": "1.0.7",
"version": "1.0.9",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartcls",
"version": "1.0.7",
"version": "1.0.9",
"description": "continuation-local-storage using native AsyncLocalStorage",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",

View File

@ -13,6 +13,10 @@ export class SmartCls {
public get(keyArg: string) {
const store: any = this.asyncLocalStorage.getStore();
return store[keyArg];
if (store) {
return store[keyArg];
} else {
return undefined;
}
}
}