diff --git a/README.md b/README.md index 8bcfa72e..1a6250fc 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ + [alexa-url]:https://github.com/broidHQ/integrations/tree/master/broid-alexa [alexa-dm]:https://david-dm.org/broidhq/integrations.svg?path=broid-alexa [alexa-dm-url]:https://david-dm.org/broidhq/integrations?path=broid-alexa diff --git a/broid-alexa/package.json b/broid-alexa/package.json index 2bab5ef7..002505cd 100755 --- a/broid-alexa/package.json +++ b/broid-alexa/package.json @@ -1,6 +1,6 @@ { "name": "@broid/alexa", - "version": "2.0.1", + "version": "2.0.2", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -60,8 +60,8 @@ "watch": "^1.0.1" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "body-parser": "^1.16.0", "express": "^4.14.0", diff --git a/broid-alexa/yarn.lock b/broid-alexa/yarn.lock index b5896f72..688c9e38 100644 --- a/broid-alexa/yarn.lock +++ b/broid-alexa/yarn.lock @@ -34,16 +34,16 @@ ansi-styles "^2.2.1" esutils "^2.0.2" -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-callr/package.json b/broid-callr/package.json index d973d95e..33944f25 100644 --- a/broid-callr/package.json +++ b/broid-callr/package.json @@ -1,6 +1,6 @@ { "name": "@broid/callr", - "version": "2.0.1", + "version": "2.0.2", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -41,8 +41,8 @@ "watch": "concurrently --kill-others \"yarn run lint:watch\" \"yarn run tsc:watch\"" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "body-parser": "^1.15.2", "callr": "^1.0.0", diff --git a/broid-callr/yarn.lock b/broid-callr/yarn.lock index 62a57eb9..a403781a 100644 --- a/broid-callr/yarn.lock +++ b/broid-callr/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-discord/package.json b/broid-discord/package.json index ab1ec6da..61d00efc 100644 --- a/broid-discord/package.json +++ b/broid-discord/package.json @@ -1,6 +1,6 @@ { "name": "@broid/discord", - "version": "2.1.0", + "version": "2.1.1", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -58,8 +58,8 @@ "watch": "^1.0.1" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "discordie": "^0.11.0", "node-uuid": "^1.4.7", diff --git a/broid-discord/yarn.lock b/broid-discord/yarn.lock index 6e0942f0..d16d2009 100644 --- a/broid-discord/yarn.lock +++ b/broid-discord/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-flowdock/package.json b/broid-flowdock/package.json index 3f2a8458..835edcb0 100644 --- a/broid-flowdock/package.json +++ b/broid-flowdock/package.json @@ -1,6 +1,6 @@ { "name": "@broid/flowdock", - "version": "2.1.0", + "version": "2.1.1", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -56,8 +56,8 @@ "watch": "^1.0.1" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "flowdock": "^0.9.0", "node-uuid": "^1.4.7", diff --git a/broid-flowdock/yarn.lock b/broid-flowdock/yarn.lock index 42d39fd0..d671dc2d 100644 --- a/broid-flowdock/yarn.lock +++ b/broid-flowdock/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-gitter/package.json b/broid-gitter/package.json index f3c74c99..cdb51981 100755 --- a/broid-gitter/package.json +++ b/broid-gitter/package.json @@ -1,7 +1,7 @@ { "name": "@broid/gitter", - "version": "2.1.0", - "main": "dist/index.js", + "version": "2.1.1", + "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", "description": "Convert Gitter messages into Activity Streams 2 with Broid Integration", @@ -56,8 +56,8 @@ "watch": "^1.0.1" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "node-gitter": "^2.0.5", "node-uuid": "^1.4.7", diff --git a/broid-gitter/yarn.lock b/broid-gitter/yarn.lock index a644dd3c..f2836874 100644 --- a/broid-gitter/yarn.lock +++ b/broid-gitter/yarn.lock @@ -34,16 +34,16 @@ ansi-styles "^2.2.1" esutils "^2.0.2" -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-google-assistant/package.json b/broid-google-assistant/package.json index 802aed03..45fb6e47 100755 --- a/broid-google-assistant/package.json +++ b/broid-google-assistant/package.json @@ -1,7 +1,7 @@ { "name": "@broid/google-assistant", - "version": "2.0.0", - "main": "dist/index.js", + "version": "2.0.1", + "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", "description": "Convert Google Assistant messages into Activity Streams 2 with Broid Integration", @@ -59,8 +59,8 @@ "watch": "^1.0.1" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "actions-on-google": "^1.0.5", "bluebird": "^3.4.7", "body-parser": "^1.16.0", diff --git a/broid-google-assistant/yarn.lock b/broid-google-assistant/yarn.lock index c8c3a51e..a5166e8c 100644 --- a/broid-google-assistant/yarn.lock +++ b/broid-google-assistant/yarn.lock @@ -34,16 +34,16 @@ ansi-styles "^2.2.1" esutils "^2.0.2" -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-groupme/package.json b/broid-groupme/package.json index e11bb743..e4ae3966 100644 --- a/broid-groupme/package.json +++ b/broid-groupme/package.json @@ -1,6 +1,6 @@ { "name": "@broid/groupme", - "version": "2.0.0", + "version": "2.0.1", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -60,7 +60,7 @@ "watch": "^1.0.1" }, "dependencies": { - "@broid/schemas": "^1.0.0", + "@broid/schemas": "^1.0.1", "@broid/utils": "^1.1.0", "bluebird": "^3.4.7", "body-parser": "^1.16.0", diff --git a/broid-groupme/yarn.lock b/broid-groupme/yarn.lock index a362068f..cdbf450b 100644 --- a/broid-groupme/yarn.lock +++ b/broid-groupme/yarn.lock @@ -34,7 +34,7 @@ ansi-styles "^2.2.1" esutils "^2.0.2" -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: diff --git a/broid-irc/package.json b/broid-irc/package.json index 63a8cc70..79e28190 100644 --- a/broid-irc/package.json +++ b/broid-irc/package.json @@ -1,6 +1,6 @@ { "name": "@broid/irc", - "version": "2.1.0", + "version": "2.1.1", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -60,8 +60,8 @@ "watch": "^1.0.1" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "irc": "^0.5.2", "mimetype": "^0.0.8", diff --git a/broid-irc/yarn.lock b/broid-irc/yarn.lock index bf2ebd3b..f8bbec6a 100644 --- a/broid-irc/yarn.lock +++ b/broid-irc/yarn.lock @@ -34,16 +34,16 @@ ansi-styles "^2.2.1" esutils "^2.0.2" -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-kik/package.json b/broid-kik/package.json index bac23dd7..86fa2a1d 100644 --- a/broid-kik/package.json +++ b/broid-kik/package.json @@ -1,6 +1,6 @@ { "name": "@broid/kik", - "version": "2.0.1", + "version": "2.0.2", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -41,8 +41,8 @@ "watch": "concurrently --kill-others \"yarn run lint:watch\" \"yarn run tsc:watch\"" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "@kikinteractive/kik": "^2.2.0", "bluebird": "^3.4.7", "express": "^4.15.2", diff --git a/broid-kik/yarn.lock b/broid-kik/yarn.lock index 0baef191..c7b9ba83 100644 --- a/broid-kik/yarn.lock +++ b/broid-kik/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-line/package.json b/broid-line/package.json index e175da46..29a3ee10 100644 --- a/broid-line/package.json +++ b/broid-line/package.json @@ -1,6 +1,6 @@ { "name": "@broid/line", - "version": "2.1.0", + "version": "2.1.1", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -41,8 +41,8 @@ "watch": "concurrently --kill-others \"yarn run lint:watch\" \"yarn run tsc:watch\"" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "body-parser": "^1.17.1", "express": "^4.15.2", diff --git a/broid-line/yarn.lock b/broid-line/yarn.lock index 759881f3..18fb4fdd 100644 --- a/broid-line/yarn.lock +++ b/broid-line/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-messenger/package.json b/broid-messenger/package.json index b7a600ce..1bf24c8e 100644 --- a/broid-messenger/package.json +++ b/broid-messenger/package.json @@ -1,6 +1,6 @@ { "name": "@broid/messenger", - "version": "2.0.3", + "version": "2.0.4", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -41,8 +41,8 @@ "watch": "concurrently --kill-others \"yarn run lint:watch\" \"yarn run tsc:watch\"" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "body-parser": "^1.15.2", "eventemitter3": "^2.0.2", diff --git a/broid-messenger/yarn.lock b/broid-messenger/yarn.lock index e51fcb3f..607731c0 100644 --- a/broid-messenger/yarn.lock +++ b/broid-messenger/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-ms-teams/package.json b/broid-ms-teams/package.json index 48039f28..3d433e84 100644 --- a/broid-ms-teams/package.json +++ b/broid-ms-teams/package.json @@ -1,6 +1,6 @@ { "name": "@broid/ms-teams", - "version": "2.0.1", + "version": "2.0.2", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -41,8 +41,8 @@ "watch": "concurrently --kill-others \"yarn run lint:watch\" \"yarn run tsc:watch\"" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "body-parser": "^1.15.2", "botbuilder": "^3.5.1", diff --git a/broid-ms-teams/yarn.lock b/broid-ms-teams/yarn.lock index c5262ac1..d2c36aa0 100644 --- a/broid-ms-teams/yarn.lock +++ b/broid-ms-teams/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-nexmo/package.json b/broid-nexmo/package.json index 715d7aa2..83b5da6c 100755 --- a/broid-nexmo/package.json +++ b/broid-nexmo/package.json @@ -1,7 +1,7 @@ { "name": "@broid/nexmo", - "version": "2.0.0", - "main": "dist/index.js", + "version": "2.0.1", + "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", "description": "Convert Nexmo messages into Activity Streams 2 with Broid Integration", @@ -60,8 +60,8 @@ "watch": "^1.0.1" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "body-parser": "^1.16.0", "express": "^4.14.0", diff --git a/broid-nexmo/yarn.lock b/broid-nexmo/yarn.lock index e07a46ab..c755cb69 100644 --- a/broid-nexmo/yarn.lock +++ b/broid-nexmo/yarn.lock @@ -34,16 +34,16 @@ ansi-styles "^2.2.1" esutils "^2.0.2" -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-skype/package.json b/broid-skype/package.json index 621dfd6d..ce9fac28 100644 --- a/broid-skype/package.json +++ b/broid-skype/package.json @@ -1,6 +1,6 @@ { "name": "@broid/skype", - "version": "2.0.1", + "version": "2.0.2", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -41,8 +41,8 @@ "watch": "concurrently --kill-others \"yarn run lint:watch\" \"yarn run tsc:watch\"" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "body-parser": "^1.15.2", "botbuilder": "^3.5.1", diff --git a/broid-skype/yarn.lock b/broid-skype/yarn.lock index ffd623c0..1ac4dde9 100644 --- a/broid-skype/yarn.lock +++ b/broid-skype/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-slack/README.md b/broid-slack/README.md index 66d6e3f9..d07b9194 100644 --- a/broid-slack/README.md +++ b/broid-slack/README.md @@ -85,7 +85,7 @@ slack.connect() Slack can also be used with your existing express setup. ```javascript -const BroidSlack = require('broid-slack'); +const BroidSlack = require('@broid/slack'); const express = require("express"); const slack = new BroidSlack({ diff --git a/broid-slack/lib/core/Adapter.js b/broid-slack/lib/core/Adapter.js index e4057de9..eec8ae98 100644 --- a/broid-slack/lib/core/Adapter.js +++ b/broid-slack/lib/core/Adapter.js @@ -161,7 +161,13 @@ class Adapter { .then((message) => { const buttons = R.filter((attachment) => attachment.type === 'Button', R.path(['object', 'attachment'], data) || []); const actions = helpers_1.createActions(buttons); - const images = R.filter((attachment) => attachment.type === 'Image', R.path(['object', 'attachment'], data) || []); + let images = []; + if (data.object && data.object.attachment) { + images = R.filter(R.propEq('type', 'Image'), data.object.attachment); + } + else if (data.object && data.object.type === 'Image') { + images.push(data.object); + } const attachments = R.map((image) => ({ image_url: image.url, text: image.content || '', title: image.name }), images); return [message, actions, attachments]; }) @@ -209,7 +215,7 @@ class Adapter { return Promise.fromCallback((cb) => this.sessionWeb.chat.update(msg.contentID, msg.targetID, msg.content, opts, cb)) .then(confirm); } - else if (!R.isEmpty(msg.content)) { + else if (!R.isEmpty(msg.content) || !R.isEmpty(msg.attachments)) { return Promise.fromCallback((cb) => this.sessionWeb.chat.postMessage(msg.targetID, msg.content, opts, cb)) .then(confirm); } @@ -286,7 +292,7 @@ class Adapter { response: res, }; const payloadType = R.path(['body', 'type'], req); - if (payloadType === "url_verification") { + if (payloadType === 'url_verification') { const challenge = R.path(['body', 'challenge'], req); return res.json({ challenge }); } diff --git a/broid-slack/lib/core/helpers.js b/broid-slack/lib/core/helpers.js index 4c70f95a..4b56fb71 100644 --- a/broid-slack/lib/core/helpers.js +++ b/broid-slack/lib/core/helpers.js @@ -41,7 +41,6 @@ function createSendMessage(data, message, actions, attachments, responseURL) { }); } if (dataType === 'Image') { - attachments.push({ image_url: url, text: '', title: '' }); return { attachments, callbackID, diff --git a/broid-slack/package.json b/broid-slack/package.json index 08a51725..0743355d 100644 --- a/broid-slack/package.json +++ b/broid-slack/package.json @@ -1,6 +1,6 @@ { "name": "@broid/slack", - "version": "2.1.0", + "version": "2.1.1", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -41,8 +41,8 @@ "watch": "concurrently --kill-others \"yarn run lint:watch\" \"yarn run tsc:watch\"" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "@slack/client": "^3.8.1", "bluebird": "^3.4.7", "body-parser": "^1.15.2", diff --git a/broid-slack/src/core/Adapter.ts b/broid-slack/src/core/Adapter.ts index e53d7bc2..ebcb33ae 100644 --- a/broid-slack/src/core/Adapter.ts +++ b/broid-slack/src/core/Adapter.ts @@ -1,4 +1,4 @@ -import schemas from '@broid/schemas'; +import schemas, { ISendParameters } from '@broid/schemas'; import { Logger } from '@broid/utils'; import { CLIENT_EVENTS, RTM_EVENTS, RtmClient, WebClient } from '@slack/client'; @@ -203,7 +203,7 @@ export class Adapter { }); } - public send(data: object): Promise { + public send(data: ISendParameters): Promise { this.logger.debug('sending', { message: data }); return schemas(data, 'send') @@ -214,9 +214,14 @@ export class Adapter { R.path(['object', 'attachment'], data) as any[] || []); const actions = createActions(buttons); - const images = R.filter( - (attachment: any) => attachment.type === 'Image', - R.path(['object', 'attachment'], data) as any[] || []); + + let images: any[] = []; + if (data.object && data.object.attachment) { + images = R.filter(R.propEq('type', 'Image'), data.object.attachment); + } else if (data.object && data.object.type === 'Image') { + images.push(data.object); + } + const attachments = R.map( (image: any) => ({ image_url: image.url, text: image.content || '', title: image.name }), images); @@ -274,7 +279,7 @@ export class Adapter { return Promise.fromCallback((cb) => this.sessionWeb.chat.update(msg.contentID, msg.targetID, msg.content, opts, cb)) .then(confirm); - } else if (!R.isEmpty(msg.content)) { + } else if (!R.isEmpty(msg.content) || !R.isEmpty(msg.attachments)) { return Promise.fromCallback((cb) => this.sessionWeb.chat.postMessage(msg.targetID, msg.content, opts, cb)) .then(confirm); diff --git a/broid-slack/src/core/helpers.ts b/broid-slack/src/core/helpers.ts index fe205d1d..3ee46884 100644 --- a/broid-slack/src/core/helpers.ts +++ b/broid-slack/src/core/helpers.ts @@ -52,8 +52,6 @@ export function createSendMessage(data: any, } if (dataType === 'Image') { - attachments.push({ image_url: url, text: '', title: '' }); - return { attachments, callbackID, diff --git a/broid-slack/yarn.lock b/broid-slack/yarn.lock index 59d95500..ed135c35 100644 --- a/broid-slack/yarn.lock +++ b/broid-slack/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-telegram/package.json b/broid-telegram/package.json index 635e48ca..857fa730 100644 --- a/broid-telegram/package.json +++ b/broid-telegram/package.json @@ -1,6 +1,6 @@ { "name": "@broid/telegram", - "version": "2.0.2", + "version": "2.0.3", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -41,8 +41,8 @@ "watch": "concurrently --kill-others \"yarn run lint:watch\" \"yarn run tsc:watch\"" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "body-parser": "^1.17.1", "express": "^4.15.2", diff --git a/broid-telegram/yarn.lock b/broid-telegram/yarn.lock index 0e31e471..9ac3bb0d 100644 --- a/broid-telegram/yarn.lock +++ b/broid-telegram/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-twilio/package.json b/broid-twilio/package.json index 39fe727d..93f22944 100644 --- a/broid-twilio/package.json +++ b/broid-twilio/package.json @@ -1,6 +1,6 @@ { "name": "@broid/twilio", - "version": "2.0.0", + "version": "2.0.1", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -41,8 +41,8 @@ "watch": "concurrently --kill-others \"yarn run lint:watch\" \"yarn run tsc:watch\"" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "body-parser": "^1.15.2", "express": "^4.14.0", diff --git a/broid-twilio/yarn.lock b/broid-twilio/yarn.lock index bf12a6f4..b9215320 100644 --- a/broid-twilio/yarn.lock +++ b/broid-twilio/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-twitter/package.json b/broid-twitter/package.json index 4a123e25..4ab56004 100644 --- a/broid-twitter/package.json +++ b/broid-twitter/package.json @@ -1,6 +1,6 @@ { "name": "@broid/twitter", - "version": "2.1.0", + "version": "2.1.1", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -56,8 +56,8 @@ "watch": "^1.0.1" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "node-uuid": "^1.4.7", "ramda": "^0.23.0", diff --git a/broid-twitter/yarn.lock b/broid-twitter/yarn.lock index 82b372d1..1eae8abd 100644 --- a/broid-twitter/yarn.lock +++ b/broid-twitter/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" @@ -909,7 +909,7 @@ block-stream@*: dependencies: inherits "~2.0.0" -bluebird@^3.0.0, bluebird@^3.1.5, bluebird@^3.4.1, bluebird@^3.4.6, bluebird@^3.4.7, bluebird@^3.5.0: +bluebird@^3.0.0, bluebird@^3.4.1, bluebird@^3.4.6, bluebird@^3.4.7, bluebird@^3.5.0: version "3.5.0" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.0.tgz#791420d7f551eea2897453a8a77653f96606d67c" @@ -2320,10 +2320,6 @@ mime-types@^2.1.12, mime-types@~2.1.7: dependencies: mime-db "~1.27.0" -mime@^1.3.4: - version "1.3.4" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53" - "minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" @@ -2982,7 +2978,7 @@ request-promise@^4.1.1: request-promise-core "1.1.1" stealthy-require "^1.0.0" -request@^2.68.0, request@^2.72.0, request@^2.81.0: +request@^2.72.0, request@^2.81.0: version "2.81.0" resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" dependencies: @@ -3466,14 +3462,6 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0: version "0.14.5" resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" -twit@^2.2.5: - version "2.2.5" - resolved "https://registry.yarnpkg.com/twit/-/twit-2.2.5.tgz#241480bab71731162d2a87b27450e4aa3bb5be5f" - dependencies: - bluebird "^3.1.5" - mime "^1.3.4" - request "^2.68.0" - twitter@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/twitter/-/twitter-1.7.0.tgz#2882e208e0ad83bb226528613561f1dd233ac94b" diff --git a/broid-viber/README.md b/broid-viber/README.md index b923569e..14fdf991 100644 --- a/broid-viber/README.md +++ b/broid-viber/README.md @@ -54,9 +54,9 @@ npm install --save @broid/viber ### Connect to Viber ```javascript -const BroidViper = require('@broid/viber'); +const BroidViber = require('@broid/viber'); -const viber = new BroidViper({ +const viber = new BroidViber({ username: '', token: "", webhookURL: "http://127.0.0.1/", @@ -77,10 +77,10 @@ viber.connect() Viber can also be used with your existing express setup. ```javascript -const BroidViper = require('@broid/viber'); +const BroidViber = require('@broid/viber'); const express = require("express"); -const viber = new BroidViper({ +const viber = new BroidViber({ username: '', token: "", webhookURL: "http://127.0.0.1/" diff --git a/broid-viber/package.json b/broid-viber/package.json index 966039ee..edc325e5 100644 --- a/broid-viber/package.json +++ b/broid-viber/package.json @@ -1,6 +1,6 @@ { "name": "@broid/viber", - "version": "2.0.1", + "version": "2.0.2", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -41,8 +41,8 @@ "watch": "concurrently --kill-others \"yarn run lint:watch\" \"yarn run tsc:watch\"" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "node-uuid": "^1.4.7", "ramda": "^0.23.0", diff --git a/broid-viber/yarn.lock b/broid-viber/yarn.lock index 38e61cce..55190c53 100644 --- a/broid-viber/yarn.lock +++ b/broid-viber/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0" diff --git a/broid-wechat/package.json b/broid-wechat/package.json index eaa5a998..6a40e3d3 100644 --- a/broid-wechat/package.json +++ b/broid-wechat/package.json @@ -1,6 +1,6 @@ { "name": "@broid/wechat", - "version": "2.0.0", + "version": "2.0.1", "main": "lib/core/index.js", "license": "AGPL-3.0+", "author": "Broid Team (https://broid.ai)", @@ -65,8 +65,8 @@ "watch": "^1.0.1" }, "dependencies": { - "@broid/schemas": "^1.0.0", - "@broid/utils": "^1.1.0", + "@broid/schemas": "^1.0.1", + "@broid/utils": "^1.1.1", "bluebird": "^3.4.7", "body-parser": "^1.16.1", "express": "^4.14.1", diff --git a/broid-wechat/yarn.lock b/broid-wechat/yarn.lock index 58a60659..a98cb0eb 100644 --- a/broid-wechat/yarn.lock +++ b/broid-wechat/yarn.lock @@ -34,16 +34,16 @@ ansi-styles "^2.2.1" esutils "^2.0.2" -"@broid/schemas@^1.0.0": +"@broid/schemas@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@broid/schemas/-/schemas-1.0.1.tgz#3e2a318be8e2789e50730ea37528db19baa71f14" dependencies: ajv "^5.0.1-beta.1" bluebird "^3.4.6" -"@broid/utils@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.0.tgz#cba5fdb2ad46082516e6ca11f0bd9d82aa535f5f" +"@broid/utils@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@broid/utils/-/utils-1.1.1.tgz#b79174c2e6898940a7b5b6c0332b0fe67f4c81ca" dependencies: bluebird "^3.5.0" file-type "^4.1.0"