wingbot-daktela
Advanced tools
Comparing version 0.0.3 to 1.0.0-alpha.1
{ | ||
"name": "wingbot-daktela", | ||
"version": "0.0.3", | ||
"version": "1.0.0-alpha.1", | ||
"description": "Daktela connector for wingbot.ai", | ||
@@ -35,15 +35,15 @@ "main": "src/main.js", | ||
"devDependencies": { | ||
"eslint": "^5.9.0", | ||
"eslint": "^5.14.1", | ||
"eslint-config-airbnb": "^17.1.0", | ||
"eslint-mocha": "^0.5.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-jsdoc": "^3.9.1", | ||
"eslint-plugin-jsx-a11y": "^6.1.2", | ||
"eslint-plugin-mocha": "^5.2.0", | ||
"eslint-plugin-react": "^7.11.1", | ||
"eslint-plugin-import": "^2.16.0", | ||
"eslint-plugin-jsdoc": "^4.1.1", | ||
"eslint-plugin-jsx-a11y": "^6.2.1", | ||
"eslint-plugin-mocha": "^5.3.0", | ||
"eslint-plugin-react": "^7.12.4", | ||
"jsdoc-to-markdown": "^4.0.1", | ||
"mocha": "^5.2.0", | ||
"nyc": "^13.1.0", | ||
"sinon": "^7.1.1", | ||
"wingbot": "^2.2.0" | ||
"mocha": "^6.0.1", | ||
"nyc": "^13.3.0", | ||
"sinon": "^7.2.4", | ||
"wingbot": "^2.7.0" | ||
}, | ||
@@ -54,5 +54,5 @@ "peerDependencies": { | ||
"dependencies": { | ||
"request": "^2.87.0", | ||
"request-promise-native": "^1.0.5" | ||
"request": "^2.88.0", | ||
"request-promise-native": "^1.0.7" | ||
} | ||
} |
@@ -27,2 +27,3 @@ /* | ||
* @param {string} [options.terminateAction] - conversation termination postback | ||
* @param {string} [options.welcomeAction] - conversation termination postback | ||
* @param {string} [options.pageId] - custom page ID | ||
@@ -35,3 +36,4 @@ * @param {Function} [options.requestLib] - request library replacement for testing | ||
terminateAction: null, | ||
pageId: 'daktela' | ||
pageId: 'daktela', | ||
welcomeAction: null | ||
}; | ||
@@ -84,3 +86,3 @@ | ||
if (!name || !time || !conversation || typeof conversation !== 'object') { | ||
if (!conversation || typeof conversation !== 'object') { | ||
return []; | ||
@@ -139,2 +141,6 @@ } | ||
); | ||
} else if (!name && !time) { | ||
// the start event | ||
} | ||
@@ -153,3 +159,3 @@ | ||
_createTimestamp (time, name) { | ||
_createTimestamp (time = Date.now(), name = '000') { | ||
const date = new Date(time); | ||
@@ -156,0 +162,0 @@ const [, ms = '0'] = name |
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
33961
327
Updatedrequest@^2.88.0