@project516/java-web 0.0.0-stage → 0.1.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 (81) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +68 -2
  3. package/dist/boot.pack +0 -0
  4. package/dist/java-web-worker.js +19 -0
  5. package/dist/java-web.js +3 -0
  6. package/dist/jdk/java.base.jar +4 -0
  7. package/dist/jdk/java.compiler.jar +0 -0
  8. package/dist/jdk/java.datatransfer.jar +0 -0
  9. package/dist/jdk/java.desktop.jar +0 -0
  10. package/dist/jdk/java.instrument.jar +0 -0
  11. package/dist/jdk/java.logging.jar +0 -0
  12. package/dist/jdk/java.management.jar +0 -0
  13. package/dist/jdk/java.management.rmi.jar +0 -0
  14. package/dist/jdk/java.naming.jar +0 -0
  15. package/dist/jdk/java.net.http.jar +0 -0
  16. package/dist/jdk/java.prefs.jar +0 -0
  17. package/dist/jdk/java.rmi.jar +0 -0
  18. package/dist/jdk/java.scripting.jar +0 -0
  19. package/dist/jdk/java.se.jar +0 -0
  20. package/dist/jdk/java.security.jgss.jar +0 -0
  21. package/dist/jdk/java.security.sasl.jar +0 -0
  22. package/dist/jdk/java.sql.jar +0 -0
  23. package/dist/jdk/java.sql.rowset.jar +0 -0
  24. package/dist/jdk/java.transaction.xa.jar +0 -0
  25. package/dist/jdk/java.xml.crypto.jar +0 -0
  26. package/dist/jdk/java.xml.jar +0 -0
  27. package/dist/jdk/javac.pack +0 -0
  28. package/dist/jdk/javaweb.tls.jar +0 -0
  29. package/dist/jdk/jdk.compiler.jar +0 -0
  30. package/dist/jdk/jdk.httpserver.jar +0 -0
  31. package/dist/jdk/jdk.internal.md.jar +0 -0
  32. package/dist/jdk/jdk.internal.opt.jar +0 -0
  33. package/dist/jdk/jdk.jartool.jar +0 -0
  34. package/dist/jdk/jdk.localedata.jar +0 -0
  35. package/dist/jdk/jdk.localedata.txt +1559 -0
  36. package/dist/jdk/jdk.security.jgss.jar +0 -0
  37. package/dist/jdk/jdk.unsupported.jar +0 -0
  38. package/dist/jdk/jdk.zipfs.jar +0 -0
  39. package/dist/jdk/legal/java.base/ADDITIONAL_LICENSE_INFO +37 -0
  40. package/dist/jdk/legal/java.base/ASSEMBLY_EXCEPTION +27 -0
  41. package/dist/jdk/legal/java.base/LICENSE +347 -0
  42. package/dist/jdk/legal/java.base/aes.md +36 -0
  43. package/dist/jdk/legal/java.base/c-libutl.md +35 -0
  44. package/dist/jdk/legal/java.base/cldr.md +100 -0
  45. package/dist/jdk/legal/java.base/gcc.md +2084 -0
  46. package/dist/jdk/legal/java.base/icu.md +93 -0
  47. package/dist/jdk/legal/java.base/public_suffix.md +399 -0
  48. package/dist/jdk/legal/java.base/siphash.md +150 -0
  49. package/dist/jdk/legal/java.base/unicode.md +269 -0
  50. package/dist/jdk/legal/java.base/zlib.md +27 -0
  51. package/dist/jdk/legal/java.desktop/colorimaging.md +7 -0
  52. package/dist/jdk/legal/java.desktop/dejavu-fonts.txt +187 -0
  53. package/dist/jdk/legal/java.desktop/freetype.md +649 -0
  54. package/dist/jdk/legal/java.desktop/giflib.md +52 -0
  55. package/dist/jdk/legal/java.desktop/harfbuzz.md +104 -0
  56. package/dist/jdk/legal/java.desktop/jpeg.md +77 -0
  57. package/dist/jdk/legal/java.desktop/lcms.md +104 -0
  58. package/dist/jdk/legal/java.desktop/libpng.md +231 -0
  59. package/dist/jdk/legal/java.desktop/mesa3d.md +134 -0
  60. package/dist/jdk/legal/java.desktop/pipewire.md +46 -0
  61. package/dist/jdk/legal/java.desktop/xwd.md +34 -0
  62. package/dist/jdk/legal/java.xml/bcel.md +219 -0
  63. package/dist/jdk/legal/java.xml/dom.md +77 -0
  64. package/dist/jdk/legal/java.xml/jcup.md +31 -0
  65. package/dist/jdk/legal/java.xml/schema10part1.md +51 -0
  66. package/dist/jdk/legal/java.xml/schema10part2.md +50 -0
  67. package/dist/jdk/legal/java.xml/xalan.md +255 -0
  68. package/dist/jdk/legal/java.xml/xerces.md +229 -0
  69. package/dist/jdk/legal/java.xml/xhtml10.md +57 -0
  70. package/dist/jdk/legal/java.xml/xhtml10schema.md +150 -0
  71. package/dist/jdk/legal/java.xml/xhtml11.md +68 -0
  72. package/dist/jdk/legal/java.xml/xhtml11schema.md +60 -0
  73. package/dist/jdk/legal/java.xml/xmlspec.md +63 -0
  74. package/dist/jdk/legal/java.xml/xmlxsd.md +43 -0
  75. package/dist/jdk/legal/java.xml.crypto/santuario.md +227 -0
  76. package/dist/jdk/legal/jdk.internal.md/commonmark.md +29 -0
  77. package/dist/jdk/legal/jdk.internal.opt/jopt-simple.md +27 -0
  78. package/dist/jdk/legal/jdk.localedata/thaidict.md +31 -0
  79. package/dist/node.d.ts +49 -0
  80. package/dist/node.js +18994 -0
  81. package/package.json +58 -4
@@ -0,0 +1,31 @@
1
+ ## Thai Dictionary
2
+
3
+ ### Thai Dictionary License
4
+ <pre>
5
+
6
+ Copyright (C) 1982 The Royal Institute, Thai Royal Government.
7
+
8
+ Copyright (C) 1998 National Electronics and Computer Technology Center,
9
+ National Science and Technology Development Agency,
10
+ Ministry of Science Technology and Environment,
11
+ Thai Royal Government.
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ of this software and associated documentation files (the "Software"), to deal
15
+ in the Software without restriction, including without limitation the rights
16
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the Software is
18
+ furnished to do so, subject to the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be included in all
21
+ copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ SOFTWARE.
30
+
31
+ </pre>
package/dist/node.d.ts ADDED
@@ -0,0 +1,49 @@
1
+ // Types of the package's Node entry, dist/node.js. test/node-types.ts checks
2
+ // them against src/node.ts, so `pnpm typecheck` fails when they drift.
3
+
4
+ export interface NodeRunOptions {
5
+ classpath: string[];
6
+ mainClass?: string;
7
+ jar?: string;
8
+ args?: string[];
9
+ // system properties
10
+ props?: Record<string, string>;
11
+ // an exploded JDK image instead of the packaged one
12
+ jdk?: string;
13
+ debug?: boolean;
14
+ stdout?: (bytes: Uint8Array) => void;
15
+ stderr?: (bytes: Uint8Array) => void;
16
+ // fixed stdin contents instead of the process stdin
17
+ input?: Uint8Array;
18
+ // native methods in JS as in CheerpJ: Java_pkg_Class_method(lib, ...args)
19
+ natives?: Record<string, (lib: any, ...args: any[]) => unknown>;
20
+ // -ea, -da:pkg..., -esa and the like
21
+ assertions?: string[];
22
+ // the process exits when its resident memory goes past this
23
+ maxRssMb?: number;
24
+ enablePreview?: boolean;
25
+ // what InetAddress.getLocalHost() reports instead of the host's name
26
+ hostName?: string;
27
+ // what System.getenv() returns instead of the host's environment
28
+ env?: Record<string, string>;
29
+ // load jdk.localedata, the formats and names of locales other than English
30
+ localeData?: boolean;
31
+ // loopback sockets whose http: requests go to this fetch, instead of host sockets
32
+ fetch?: typeof fetch;
33
+ }
34
+
35
+ // A running VM, as startLibrary returns it.
36
+ export interface JavaVM {
37
+ // resolves to the exit code
38
+ readonly exited: Promise<number>;
39
+ halt(code: number): void;
40
+ }
41
+
42
+ // Runs a main class or jar; resolves to the exit code.
43
+ export function runNode(options: NodeRunOptions): Promise<number>;
44
+
45
+ // Starts a VM in library mode.
46
+ export function startLibrary(options: NodeRunOptions): Promise<JavaVM>;
47
+
48
+ // A library-mode VM's `lib`, as cheerpjRunLibrary returns it in the browser.
49
+ export function libraryOf(vm: JavaVM): any;