@flecoufle/node-red-linky 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,11 +3,6 @@ Retreive linky power consumption and production from <a href="https://github.com
3
3
 
4
4
  See Enedis API documentation on <a href="https://datahub-enedis.fr/services-api/data-connect/documentation/">data-connect</a>
5
5
 
6
- Note this package needs to use an older version of got, need help to use <b>got 12</b> (native ESM), feel free to submit a PR<br/>
7
- <code>
8
- "got": "^11.X.X"
9
- </code>
10
-
11
6
  ## consumption usage
12
7
  - <b>Récupération de la consommation énergétique quotidienne</b>: <code>daily_consumption</code>
13
8
 
package/linky/linky.js CHANGED
@@ -21,8 +21,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
21
 
22
22
  "use strict";
23
23
 
24
- module.exports = function (RED) {
25
- const got = require('got');
24
+ module.exports = async function (RED) {
25
+ const { got } = await import('got');
26
26
 
27
27
  const nodeStatus = {
28
28
  WAIT: "Waiting...",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flecoufle/node-red-linky",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Retrieve Linky power consumption",
5
5
  "main": "linky/linky.js",
6
6
  "publishConfig": {
@@ -38,6 +38,6 @@
38
38
  },
39
39
  "homepage": "https://github.com/flecoufle/node-red-linky#readme",
40
40
  "dependencies": {
41
- "got": "^11.8.6"
41
+ "got": "13.0.0"
42
42
  }
43
43
  }