node-red-contrib-typescript 1.0.11 → 1.0.12

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.
Files changed (2) hide show
  1. package/helper.js +1 -0
  2. package/package.json +6 -3
package/helper.js CHANGED
@@ -212,6 +212,7 @@ function createSandbox(RED, node) {
212
212
  return sandbox;
213
213
  }
214
214
 
215
+ global.WebSocket = require("ws");
215
216
  function createScript(node, iniOpt, code) {
216
217
  //console.log(ts.transpile(code));
217
218
  var iniText = `
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "node-red-contrib-typescript",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "",
5
5
  "author": "kezziny",
6
6
  "license": "ISC",
7
- "node-red" : {
7
+ "node-red": {
8
8
  "nodes": {
9
9
  "instance": "src/instance/instance.js"
10
10
  }
11
- }
11
+ },
12
+ "dependencies": {
13
+ "ws": "^8.19.0"
14
+ }
12
15
  }