Commit 6b4e7307 authored by legoc's avatar legoc
Browse files

Testing node 12

parent 3f97864a
......@@ -45,7 +45,7 @@ void Init(const FunctionCallbackInfo<Value>& args) {
v8Isolate = args.GetIsolate();
// Get the args.
v8::String::Utf8Value param1(args[0]->ToString());
v8::String::Utf8Value param1(v8Isolate, args[0]->ToString(v8Isolate));
string electronArgs(*param1);
cout << "electron args = " << electronArgs << endl;
......@@ -157,7 +157,7 @@ void Init(const FunctionCallbackInfo<Value>& args) {
void UpdatePositions(const FunctionCallbackInfo<Value>& args) {
v8::String::Utf8Value param0(args[0]->ToString());
v8::String::Utf8Value param0(v8Isolate, args[0]->ToString(v8Isolate));
std::string jsonPositions(*param0);
// Send the file content to the server.
......@@ -167,12 +167,12 @@ void UpdatePositions(const FunctionCallbackInfo<Value>& args) {
string response;
requester->receive(response);
args.GetReturnValue().Set(String::NewFromUtf8(args.GetIsolate(), response.c_str()));
args.GetReturnValue().Set(String::NewFromUtf8(v8Isolate, response.c_str()));
}
void Request(const FunctionCallbackInfo<Value>& args) {
v8::String::Utf8Value param0(args[0]->ToString());
v8::String::Utf8Value param0(v8Isolate, args[0]->ToString(v8Isolate));
std::string jsonRequest(*param0);
// Send the file content to the server.
......@@ -182,7 +182,7 @@ void Request(const FunctionCallbackInfo<Value>& args) {
string response;
requester->receive(response);
args.GetReturnValue().Set(String::NewFromUtf8(args.GetIsolate(), response.c_str()));
args.GetReturnValue().Set(String::NewFromUtf8(v8Isolate, response.c_str()));
}
/**
......
......@@ -46,7 +46,7 @@ void Init(const FunctionCallbackInfo<Value>& args) {
v8Isolate = args.GetIsolate();
// Get the args.
v8::String::Utf8Value param1(args[0]->ToString());
v8::String::Utf8Value param1(v8Isolate, args[0]->ToString(v8Isolate));
string electronArgs(*param1);
cout << "electron args = " << electronArgs << endl;
......@@ -128,8 +128,8 @@ void Init(const FunctionCallbackInfo<Value>& args) {
* Reset function to reset the Cameo Nomad addon to a new Nomad server.
*/
void Reset(const FunctionCallbackInfo<Value>& args) {
v8::String::Utf8Value param0(args[0]->ToString());
v8::String::Utf8Value param0(v8Isolate, args[0]->ToString(v8Isolate));
std::string nomadId(*param0);
cout << "resetting nomad positions with nomad " << nomadId << endl;
......@@ -236,6 +236,6 @@ void init(Local<Object> exports) {
NODE_SET_METHOD(exports, "getSimulatedServerIds", GetSimulatedServerIds);
}
NODE_MODULE(nomad3dcollisionAddon, init)
NODE_MODULE(addoncameonomad, init)
}
......@@ -1858,7 +1858,7 @@
"hyperdrive": "^7.3.0",
"hyperdrive-archive-swarm": "^3.1.0",
"hyperdrive-import-files": "^2.2.0",
"hyperdrive-ui": "github:karissa/hyperdrive-ui#b66fd5d7ebb00c12597c9405ae0ba434877c27f8",
"hyperdrive-ui": "github:karissa/hyperdrive-ui#alternative-api",
"js-alert": "^1.0.4",
"level": "^1.4.0",
"level-live-stream": "^1.4.11",
......@@ -3148,7 +3148,8 @@
},
"ansi-regex": {
"version": "2.1.1",
"bundled": true
"bundled": true,
"optional": true
},
"aproba": {
"version": "1.2.0",
......@@ -3166,11 +3167,13 @@
},
"balanced-match": {
"version": "1.0.0",
"bundled": true
"bundled": true,
"optional": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
......@@ -3183,15 +3186,18 @@
},
"code-point-at": {
"version": "1.1.0",
"bundled": true
"bundled": true,
"optional": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true
"bundled": true,
"optional": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true
"bundled": true,
"optional": true
},
"core-util-is": {
"version": "1.0.2",
......@@ -3294,7 +3300,8 @@
},
"inherits": {
"version": "2.0.3",
"bundled": true
"bundled": true,
"optional": true
},
"ini": {
"version": "1.3.5",
......@@ -3304,6 +3311,7 @@
"is-fullwidth-code-point": {
"version": "1.0.0",
"bundled": true,
"optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
......@@ -3316,17 +3324,20 @@
"minimatch": {
"version": "3.0.4",
"bundled": true,
"optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
},
"minimist": {
"version": "0.0.8",
"bundled": true
"bundled": true,
"optional": true
},
"minipass": {
"version": "2.3.5",
"bundled": true,
"optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
......@@ -3343,6 +3354,7 @@
"mkdirp": {
"version": "0.5.1",
"bundled": true,
"optional": true,
"requires": {
"minimist": "0.0.8"
}
......@@ -3415,7 +3427,8 @@
},
"number-is-nan": {
"version": "1.0.1",
"bundled": true
"bundled": true,
"optional": true
},
"object-assign": {
"version": "4.1.1",
......@@ -3425,6 +3438,7 @@
"once": {
"version": "1.4.0",
"bundled": true,
"optional": true,
"requires": {
"wrappy": "1"
}
......@@ -3500,7 +3514,8 @@
},
"safe-buffer": {
"version": "5.1.2",
"bundled": true
"bundled": true,
"optional": true
},
"safer-buffer": {
"version": "2.1.2",
......@@ -3530,6 +3545,7 @@
"string-width": {
"version": "1.0.2",
"bundled": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
......@@ -3547,6 +3563,7 @@
"strip-ansi": {
"version": "3.0.1",
"bundled": true,
"optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
......@@ -3585,11 +3602,13 @@
},
"wrappy": {
"version": "1.0.2",
"bundled": true
"bundled": true,
"optional": true
},
"yallist": {
"version": "3.0.3",
"bundled": true
"bundled": true,
"optional": true
}
}
},
......@@ -4312,7 +4331,8 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/imul/-/imul-1.0.1.tgz",
"integrity": "sha1-nVhnFh6LPelsLDjV3HyxAvNeKsk=",
"dev": true
"dev": true,
"optional": true
},
"increment-buffer": {
"version": "1.0.1",
......@@ -6437,7 +6457,8 @@
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/path-key/-/path-key-1.0.0.tgz",
"integrity": "sha1-XVPVeAGWRsDWiADbThRua9wqx68=",
"dev": true
"dev": true,
"optional": true
},
"path-parse": {
"version": "1.0.6",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment