@yowasp/openfpgaloader 0.0.0-experimental0 → 0.3.1-888.4

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/README.md ADDED
@@ -0,0 +1,16 @@
1
+ YoWASP openFPGALoader package
2
+ =============================
3
+
4
+ This package provides [openFPGALoader][] binaries built using [Emscripten][] for [WebUSB][] in [supported browsers][caniuse], providing a command `openFPGALoader` with the [YoWASP JavaScript runtime][runtime-js] interface. See the [overview of the YoWASP project][yowasp] for details.
5
+
6
+ [openFPGALoader]: https://github.com/trabucayre/openFPGALoader
7
+ [emscripten]: https://emscripten.org/
8
+ [webusb]: https://developer.mozilla.org/en-US/docs/Web/API/WebUSB_API
9
+ [yowasp]: https://yowasp.org
10
+ [runtime-js]: https://github.com/YoWASP/runtime-js
11
+ [caniuse]: https://caniuse.com/webusb
12
+
13
+ License
14
+ -------
15
+
16
+ This package is covered by the [ISC license](LICENSE.txt).
package/gen/bundle.js CHANGED
@@ -4822,11 +4822,11 @@ function makeTerminalWrite({ print = null, printLine = null }) {
4822
4822
  if (charCode !== null)
4823
4823
  terminalBuffer.push(charCode);
4824
4824
  if (charCode === null || charCode === 10 || charCode == 13)
4825
- print(new TextDecoder().decode(new Uint8Array(terminalBuffer.splice(0))));
4825
+ print(String.fromCharCode(...terminalBuffer.splice(0)));
4826
4826
  } else if (printLine !== null) {
4827
4827
  if (charCode === null) {
4828
4828
  } else if (charCode === 10) {
4829
- printLine(new TextDecoder().decode(new Uint8Array(terminalBuffer.splice(0))));
4829
+ printLine(String.fromCharCode(...terminalBuffer.splice(0)));
4830
4830
  } else {
4831
4831
  terminalBuffer.push(charCode);
4832
4832
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yowasp/openfpgaloader",
3
- "version": "0.0.0-experimental0",
3
+ "version": "0.3.1-888.4",
4
4
  "description": "WebUSB port of openFPGALoader, universal utility for programming FPGA",
5
5
  "author": "Catherine <whitequark@whitequark.org>",
6
6
  "license": "ISC",