Comparing version 1.0.3 to 1.0.4
@@ -59,2 +59,12 @@ const dateFormat = require('dateformat') | ||
this.update = update | ||
this.type = Object.keys(update)[1] | ||
var re = update[this.type] | ||
var name = re.from || re.chat | ||
this.chat_id = name.id | ||
this.name = name.username || name.title || name.first_name | ||
// delete re.from | ||
// delete re.chat | ||
// re.date = Date.now() | ||
this.re = re | ||
this.options = options | ||
@@ -61,0 +71,0 @@ this.updateType = UpdateTypes.find((key) => key in this.update) |
@@ -29,3 +29,3 @@ { | ||
"types": "./typings/index.d.ts", | ||
"version": "1.0.3" | ||
"version": "1.0.4" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
189056
5291
5