paddla-engine 9.0.1 → 9.0.6

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/index.js +10 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -577,7 +577,16 @@ if (typeof module !== 'undefined' && module.exports) {
577
577
  CONFIG, BUMPER,
578
578
  UVS_PRNG,
579
579
  createInitialState, tick, replay, finishGame,
580
- clamp, fpRound, bytesToHex,
580
+ clamp, fpRound, moneyRound, dist, bytesToHex,
581
581
  sha256Hex, sha512Hex
582
582
  };
583
+ } else if (typeof window !== 'undefined') {
584
+ Object.assign(window, {
585
+ ENGINE_VERSION,
586
+ CONFIG, BUMPER,
587
+ UVS_PRNG,
588
+ createInitialState, tick,
589
+ sha256Hex, sha512Hex, sha256Pure: _sha256Bytes,
590
+ fpRound, moneyRound, dist, clamp, bytesToHex
591
+ });
583
592
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paddla-engine",
3
- "version": "9.0.1",
3
+ "version": "9.0.6",
4
4
  "description": "PADDLA physics arcade engine — UVS 1.0 compatible (ChaCha20 + SHA-512)",
5
5
  "main": "index.js",
6
6
  "license": "MIT",