js-dos 7.2.4 → 7.3.0

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 (33) hide show
  1. package/3rdparty/zip.js/zip-no-worker-inflate.min.js +1 -0
  2. package/README.md +77 -15
  3. package/dist/emulators-ui-loader.png +0 -0
  4. package/dist/js-dos.css +271 -15
  5. package/dist/js-dos.js +2 -2
  6. package/dist/js-dos.js.map +1 -1
  7. package/dist/types/src/backend/v7/latency.d.ts +8 -0
  8. package/dist/types/src/{personal.d.ts → backend/v7/personal.d.ts} +0 -0
  9. package/dist/types/src/backend/v7/v7-config.d.ts +16 -0
  10. package/dist/types/src/components/action-save-or-exit.d.ts +2 -0
  11. package/dist/types/src/components/region.d.ts +6 -0
  12. package/dist/types/src/components/sidebar/latency-info.d.ts +7 -0
  13. package/dist/types/src/components/sidebar/main.d.ts +2 -0
  14. package/dist/types/src/components/sidebar/networking.d.ts +2 -0
  15. package/dist/types/src/components/sidebar/token/token-add-time.d.ts +2 -0
  16. package/dist/types/src/components/sidebar/token/token-select.d.ts +2 -0
  17. package/dist/types/src/components/sidebar/token/token.d.ts +15 -0
  18. package/dist/types/src/components/tip.d.ts +2 -0
  19. package/dist/types/src/hardware-transport-layer.d.ts +3 -1
  20. package/dist/types/src/icons.d.ts +21 -0
  21. package/dist/types/src/player-app.d.ts +17 -0
  22. package/dist/types/src/player.d.ts +2 -1
  23. package/dist/types/src/request.d.ts +1 -0
  24. package/dist/types/src/xhr.d.ts +1 -0
  25. package/dist/types/{sls → v7-services}/src/personal.d.ts +0 -0
  26. package/dist/wdosbox.js +2 -2
  27. package/dist/wdosbox.js.symbols +3125 -3068
  28. package/dist/wdosbox.wasm +0 -0
  29. package/examples/digger/index.html +10 -8
  30. package/package.json +6 -3
  31. package/.github/workflows/yarn-gulp.yml +0 -30
  32. package/dist/emulators-ui-loader.gif +0 -0
  33. package/dist/types/src/components/action-exit.d.ts +0 -2
package/dist/wdosbox.wasm CHANGED
Binary file
@@ -22,16 +22,18 @@
22
22
  <div id="jsdos" />
23
23
  <script>
24
24
  let bundleUrl = "https://cdn.dos.zone/original/2X/2/24b00b14f118580763440ecaddcc948f8cb94f14.jsdos"; // digger
25
- // bundleUrl = "https://cdn.dos.zone/original/2X/6/6a2bfa87c031c2a11ab212758a5d914f7c112eeb.jsdos"; // dagnerous dave 2
26
- // bundleUrl = "https://cdn.dos.zone/original/2X/1/1b063b2520052ebb504184667ac95e72423331de.jsdos"; // lost vikings
27
- // bundleUrl = "doom.jsdos";
28
- // bundleUrl = "wolf.jsdos";
29
- // bundleUrl = "heroes2.jsdos";
30
- // bundleUrl = "https://doszone-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/2X/6/60b165c86771eadf24cb2f81aef4656b85d167a6.jsdos";
25
+ // bundleUrl = "https://cdn.dos.zone/original/2X/6/6a2bfa87c031c2a11ab212758a5d914f7c112eeb.jsdos"; // dagnerous dave 2
26
+ // bundleUrl = "https://cdn.dos.zone/original/2X/1/1b063b2520052ebb504184667ac95e72423331de.jsdos"; // lost vikings
27
+ // bundleUrl = "https://cdn.dos.zone/custom/dos/doom.jsdos"; // doom
28
+ // bundleUrl = "https://cdn.dos.zone/original/2X/a/ac888d1660aa253f0ed53bd6c962c894125aaa19.jsdos"; // wolf 3d
29
+ // bundleUrl = "https://cdn.dos.zone/custom/dos/homm_2.jsdos"; // heroes of might and magic 2
30
+ // bundleUrl = "https://doszone-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/2X/6/60b165c86771eadf24cb2f81aef4656b85d167a6.jsdos"; // transport tycoon deluxe
31
+ // bundleUrl = "doom_coop.jsdos";
31
32
  let clientId = null;
32
33
  emulators.pathPrefix = "/dist/";
33
34
  Dos(document.getElementById("jsdos"), {
34
35
  hardware: window.hardware,
36
+ withExperimentalApi: true,
35
37
  clientId: (userGesture) => {
36
38
  if (!userGesture) {
37
39
  return Promise.resolve(clientId);
@@ -41,11 +43,11 @@
41
43
  namespace: "test",
42
44
  id: "aleksandr.guryanov@github.com",
43
45
  };
44
-
46
+
45
47
  return Promise.resolve(clientId);
46
48
  }
47
49
  }).run(bundleUrl);
48
50
  </script>
49
51
  </body>
50
52
 
51
- </html>
53
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-dos",
3
- "version": "7.2.4",
3
+ "version": "7.3.0",
4
4
  "description": "Easiest API to run dos programs in browser",
5
5
  "main": "dist/js-dos.js",
6
6
  "types": "dist/types/src/player.d.ts",
@@ -48,8 +48,8 @@
48
48
  "browserify": "^17.0.0",
49
49
  "core-js": "^3.17.1",
50
50
  "del": "^5.1.0",
51
- "emulators": "^0.72.0",
52
- "emulators-ui": "^0.72.4",
51
+ "emulators": "^0.72.3",
52
+ "emulators-ui": "^0.72.9",
53
53
  "eslint": "^7.32.0",
54
54
  "eslint-config-google": "^0.14.0",
55
55
  "gulp": "^4.0.2",
@@ -66,5 +66,8 @@
66
66
  "typescript": "^4.4.4",
67
67
  "vinyl-buffer": "^1.0.1",
68
68
  "vinyl-source-stream": "^2.0.0"
69
+ },
70
+ "dependencies": {
71
+ "nanoid": "^3.1.30"
69
72
  }
70
73
  }
@@ -1,30 +0,0 @@
1
- name: Build
2
-
3
- on:
4
- push:
5
- branches: [ 7.xx ]
6
- pull_request:
7
- branches: [ 7.xx ]
8
-
9
- jobs:
10
- build:
11
- runs-on: ubuntu-latest
12
-
13
- strategy:
14
- matrix:
15
- node-version: [12.x, 14.x, 16.x]
16
-
17
- steps:
18
- - uses: actions/checkout@v2
19
-
20
- - name: Use Node.js ${{ matrix.node-version }}
21
- uses: actions/setup-node@v1
22
- with:
23
- node-version: ${{ matrix.node-version }}
24
-
25
- - name: Build
26
- run: |
27
- npm install -g yarn
28
- yarn
29
- yarn run eslint . --ext ts --max-warnings 0
30
- yarn run gulp
Binary file
@@ -1,2 +0,0 @@
1
- import { Props } from "../player-app";
2
- export declare function ActionExit(props: Props): import("preact").VNode<any> | import("preact").VNode<any>[];