@jitsi/robotjs 0.6.8 → 0.6.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jitsi/robotjs",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "Node.js Desktop Automation.",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
Binary file
Binary file
Binary file
package/src/robotjs.cc CHANGED
@@ -509,10 +509,9 @@ Napi::Value keyTapWrapper(const Napi::CallbackInfo& info)
509
509
 
510
510
  MMKeyFlags flags = MOD_NONE;
511
511
  MMKeyCode key;
512
- const char *k;
513
512
 
514
- Napi::String kstr(env, info[0].ToString());
515
- k = kstr.Utf8Value().c_str();
513
+ std::string kstr = info[0].As<Napi::String>();
514
+ const char *k = kstr.c_str();
516
515
 
517
516
  switch (info.Length())
518
517
  {