Skip to content

Commit

Permalink
polyfill promise finally for Node 8 compatibility (#68, #69, #70, #72)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Mar 30, 2019
1 parent 87f6f82 commit 273be33
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
4 changes: 4 additions & 0 deletions nodes/ccu-connection.js
Expand Up @@ -3,6 +3,10 @@ const path = require('path');
const fs = require('fs');
const crypto = require('crypto');

const promiseFinally = require('promise.prototype.finally');

promiseFinally.shim();

const base62 = require('buffer-base62').toBase62;
const stringSimilarity = require('string-similarity');
const nextport = require('nextport');
Expand Down
33 changes: 16 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-ccu",
"version": "2.0.5",
"version": "2.0.6",
"description": "Node-RED Nodes for the Homematic CCU",
"repository": "https://github.com/rdmtc/node-red-contrib-ccu",
"keywords": [
Expand All @@ -14,7 +14,7 @@
],
"main": "none",
"engines": {
"node": ">= 10.0.0"
"node": ">= 8.0.0"
},
"scripts": {
"checkgit": "([[ $(git rev-parse --abbrev-ref HEAD) == \"master\" ]] && git diff --exit-code && git diff --cached --exit-code && git diff --exit-code origin/master..master)",
Expand Down Expand Up @@ -43,6 +43,7 @@
"mqtt-wildcard": "^3.0.9",
"nextport": "^1.0.0",
"obj-ease": "^1.0.1",
"promise.prototype.finally": "^3.1.0",
"string-similarity": "^3.0.0"
},
"node-red": {
Expand Down

0 comments on commit 273be33

Please sign in to comment.