@joystick.js/node-canary 0.0.0-canary.468 → 0.0.0-canary.469

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.
@@ -9,7 +9,7 @@ import u from"fs";import{parseHTML as p}from"linkedom";import y from"os";import
9
9
  };
10
10
 
11
11
  window.__joystick_platform__ = '${y.platform()}';
12
- window.__joystick_data__ = '${Buffer.from(JSON.stringify(e?.data)).toString("base64")}';
12
+ window.__joystick_data__ = '${Buffer.from(JSON.stringify(e?.data),"utf8").toString("base64")}';
13
13
  window.__joystick_i18n__ = ${JSON.stringify(e?.translations)};
14
14
  ${s?`window.__joystick_hmr_port__ = ${parseInt(process.env.PORT,10)+1}`:""}
15
15
  window.__joystick_layout_url__ = ${e?.render_layout_path?`"/_joystick/${e?.render_layout_path}"`:null};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
3
  "type": "module",
4
- "version": "0.0.0-canary.468",
4
+ "version": "0.0.0-canary.469",
5
5
  "description": "The Node.js framework for Joystick.",
6
6
  "main": "./dist/index.js",
7
7
  "scripts": {
@@ -31,7 +31,7 @@ const build_html_response_for_browser = (options = {}) => {
31
31
  };
32
32
 
33
33
  window.__joystick_platform__ = '${os.platform()}';
34
- window.__joystick_data__ = '${Buffer.from(JSON.stringify(options?.data)).toString('base64')}';
34
+ window.__joystick_data__ = '${Buffer.from(JSON.stringify(options?.data), 'utf8').toString('base64')}';
35
35
  window.__joystick_i18n__ = ${JSON.stringify(options?.translations)};
36
36
  ${is_development ? `window.__joystick_hmr_port__ = ${parseInt(process.env.PORT, 10) + 1}` : ''}
37
37
  window.__joystick_layout_url__ = ${options?.render_layout_path ? `"/_joystick/${options?.render_layout_path}"` : null};