@cs-chatbots/router-masterbot-tools
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "@cs-chatbots/router-masterbot-tools", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -47,3 +47,3 @@ 'use strict'; | ||
...state.state, | ||
sharedContext: this._getMoreRecentSharedContex( | ||
sharedContext: this._getMoreRecentSharedContext( | ||
state.state.sharedContext, | ||
@@ -82,12 +82,9 @@ sharedContext | ||
if (req.data.sharedContext) { | ||
req.sharedContext = this._getMoreRecentSharedContex( | ||
req.sharedContext, | ||
req.data.sharedContext | ||
req.sharedContext = this._getMoreRecentSharedContext( | ||
req.state.sharedContext, | ||
req.event.sharedContext | ||
); | ||
res.setState({ sharedContext: req.sharedContext }); | ||
} else { | ||
req.sharedContext = this._getMoreRecentSharedContex( | ||
req.sharedContext, | ||
req.state.sharedContext | ||
); | ||
req.sharedContext = req.state.sharedContext || {}; | ||
} | ||
@@ -144,3 +141,3 @@ } | ||
*/ | ||
_getMoreRecentSharedContex (orig = {}, candid = {}) { | ||
_getMoreRecentSharedContext (orig = {}, candid = {}) { | ||
if (orig.timestamp && candid.timestamp) { | ||
@@ -147,0 +144,0 @@ return candid.timestamp > orig.timestamp ? candid : orig; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6
1306937
2819