From 461d61d6f58b2f90d82b948565c29b3e61a388b1 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Tue, 19 Dec 2017 01:32:34 +0000 Subject: [PATCH 1/2] chore(package): update textcomplete to version 0.16.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5c836ff5..59d4f646 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "socket.io-client": "2.0.4", "stylelint": "8.4.0", "stylelint-config-standard": "18.0.0", - "textcomplete": "0.15.0", + "textcomplete": "0.16.0", "webpack": "3.10.0" } } From a5dea8caa05feaa66ae7ea0026712646362cdf11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Mon, 18 Dec 2017 23:15:08 -0500 Subject: [PATCH 2/2] Update how textcomplete gets imported per the v0.16 changes See https://github.com/yuku-t/textcomplete/commit/ab6509782a5b35928273b1e40bef52ddf1b3e07b#diff-04c6e90faac2675aa89e2176d2eec7d8 --- client/js/autocompletion.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/js/autocompletion.js b/client/js/autocompletion.js index a9d146e3..171b4697 100644 --- a/client/js/autocompletion.js +++ b/client/js/autocompletion.js @@ -3,13 +3,12 @@ const $ = require("jquery"); const fuzzy = require("fuzzy"); const Mousetrap = require("mousetrap"); +const {Textcomplete, Textarea} = require("textcomplete"); const emojiMap = require("./libs/simplemap.json"); const options = require("./options"); const constants = require("./constants"); const input = $("#input"); -const Textcomplete = require("textcomplete/lib/textcomplete").default; -const Textarea = require("textcomplete/lib/textarea").default; let textcomplete; module.exports = {