From c6f6bc8debe7c689bb6e7d875c932b1c023152fe Mon Sep 17 00:00:00 2001 From: Josue Galindo Date: Wed, 28 Oct 2020 15:46:02 +0100 Subject: [PATCH 1/2] Update v1.0.1 --- .env.sample | 3 +++ README.md | 4 ++-- package-lock.json | 54 ++++++++++++++--------------------------------- package.json | 2 +- 4 files changed, 22 insertions(+), 41 deletions(-) create mode 100644 .env.sample diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..7386e8e --- /dev/null +++ b/.env.sample @@ -0,0 +1,3 @@ +APP_ID= +TOKEN= +TENEO_ENGINE_URL= diff --git a/README.md b/README.md index 362044c..17b86fb 100644 --- a/README.md +++ b/README.md @@ -29,14 +29,14 @@ Your bot needs to be published and you need to know the engine URL. 1. Login to the WebChat Dashboard by clicking the green login button on this page: [https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login](https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login) 2. A QR code will appear. In the Wechat app, go to the Discover tab and choose 'Scan'. Scan the QR code with the Wechat app, and a sandbox configuration dashboard will be displayed. -3. Choose a value for `Token` and copy or remember it, you will need it later. +3. Choose yor own value to use in the `Token` field and copy or remember it, you will need it later. 4. Next copy the `appID` that is shown in the first row of the first table at the top of the page. ### Back to Connector Setup 1. Create a file called `.env` in the root folder of the project. Give it the following content: ``` APP_ID= - TOKEN= + TOKEN= TENEO_ENGINE_URL= ``` Replace the placeholders with the values you copied earlier. diff --git a/package-lock.json b/package-lock.json index e92e1db..1096d27 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,12 +5,12 @@ "requires": true, "dependencies": { "@artificialsolutions/tie-api-client": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@artificialsolutions/tie-api-client/-/tie-api-client-1.3.2.tgz", - "integrity": "sha512-i5UnUx7orlm/isJxuPUy60hGzV64zDWM7LJ67OlJ/ZroB93ZBLzPwz3WCXFzViwW0iV69XEFxD3+yIe80r1JiA==", + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/@artificialsolutions/tie-api-client/-/tie-api-client-1.3.7.tgz", + "integrity": "sha512-ve1YifLfpWnFU21TsQyJ5xY1XAs2avq8sZ5KzHR0BPXGUpnWvhvUCF/MEr6c/nBGfoXZyeDyx2GRPeV4uJILDA==", "requires": { - "es6-promise": "^4.2.5", - "isomorphic-fetch": "^2.2.1" + "es6-promise": "^4.2.8", + "isomorphic-fetch": "^3.0.0" } }, "accepts": { @@ -121,14 +121,6 @@ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" }, - "encoding": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", - "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", - "requires": { - "iconv-lite": "~0.4.13" - } - }, "es6-promise": { "version": "4.2.8", "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", @@ -222,11 +214,6 @@ "toidentifier": "1.0.0" } }, - "iconv-lite": { - "version": "0.4.19", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", - "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==" - }, "inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", @@ -237,18 +224,13 @@ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.0.tgz", "integrity": "sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA==" }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" - }, "isomorphic-fetch": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", - "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz", + "integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==", "requires": { - "node-fetch": "^1.0.1", - "whatwg-fetch": ">=0.10.0" + "node-fetch": "^2.6.1", + "whatwg-fetch": "^3.4.1" } }, "lodash": { @@ -300,13 +282,9 @@ "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" }, "node-fetch": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", - "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", - "requires": { - "encoding": "^0.1.11", - "is-stream": "^1.0.1" - } + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" }, "on-finished": { "version": "2.3.0", @@ -474,9 +452,9 @@ "integrity": "sha1-pVRD7AgQ9MGZKik6J4YIOXAMY2k=" }, "whatwg-fetch": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz", - "integrity": "sha512-9GSJUgz1D4MfyKU7KRqwOjXCXTqWdFNvEr7eUBYchQiVc744mqK/MzXPNR2WsPkmkOa4ywfg8C2n8h+13Bey1Q==" + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.4.1.tgz", + "integrity": "sha512-sofZVzE1wKwO+EYPbWfiwzaKovWiZXf4coEzjGP9b2GBVgQRLQUZ2QcuPpQExGDAW5GItpEm6Tl4OU5mywnAoQ==" }, "xml2js": { "version": "0.4.17", diff --git a/package.json b/package.json index b8725d6..fc73e5b 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "author": "Josue Galindo", "license": "Apache-2.0", "dependencies": { - "@artificialsolutions/tie-api-client": "^1.3.2", + "@artificialsolutions/tie-api-client": "^1.3.7", "express": "^4.17.1", "http": "0.0.0", "wechat": "^2.1.0" From 7db2ed8740d61488a7a37d6d9f4f4142d0fe7d89 Mon Sep 17 00:00:00 2001 From: Josue Galindo Date: Wed, 28 Oct 2020 15:47:14 +0100 Subject: [PATCH 2/2] Update v1.0.1 --- CHANGELOG.md | 4 ++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..7984875 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ +# v.1.0.1 +## 28/10/2020 +1. [](#improved) + * Updated dependencies. diff --git a/package-lock.json b/package-lock.json index 1096d27..060ee3f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "wechat-teneo-connector", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index fc73e5b..6b7a45d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wechat-teneo-connector", - "version": "1.0.0", + "version": "1.0.1", "description": "A basic example using Teneo and WeChat", "main": "server.js", "engines": {