@unyt/datex 0.0.1 → 0.0.3

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 (129) hide show
  1. package/README.md +5 -1
  2. package/esm/_dnt.polyfills.d.ts +101 -0
  3. package/esm/_dnt.polyfills.d.ts.map +1 -0
  4. package/esm/_dnt.polyfills.js +127 -0
  5. package/esm/_dnt.shims.d.ts +1 -1
  6. package/esm/_dnt.test_polyfills.d.ts.map +1 -0
  7. package/esm/deno.json +29 -5
  8. package/esm/deps/jsr.io/@std/assert/1.0.13/almost_equals.d.ts.map +1 -0
  9. package/esm/deps/jsr.io/@std/assert/1.0.13/array_includes.d.ts.map +1 -0
  10. package/esm/deps/jsr.io/@std/assert/1.0.13/assert.d.ts.map +1 -0
  11. package/esm/deps/jsr.io/@std/assert/1.0.13/assertion_error.d.ts.map +1 -0
  12. package/esm/deps/jsr.io/@std/assert/1.0.13/equal.d.ts.map +1 -0
  13. package/esm/deps/jsr.io/@std/assert/1.0.13/equals.d.ts.map +1 -0
  14. package/esm/deps/jsr.io/@std/assert/1.0.13/exists.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@std/assert/1.0.13/fail.d.ts.map +1 -0
  16. package/esm/deps/jsr.io/@std/assert/1.0.13/false.d.ts.map +1 -0
  17. package/esm/deps/jsr.io/@std/assert/1.0.13/greater.d.ts.map +1 -0
  18. package/esm/deps/jsr.io/@std/assert/1.0.13/greater_or_equal.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@std/assert/1.0.13/instance_of.d.ts.map +1 -0
  20. package/esm/deps/jsr.io/@std/assert/1.0.13/is_error.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@std/assert/1.0.13/less.d.ts.map +1 -0
  22. package/esm/deps/jsr.io/@std/assert/1.0.13/less_or_equal.d.ts.map +1 -0
  23. package/esm/deps/jsr.io/@std/assert/1.0.13/match.d.ts.map +1 -0
  24. package/esm/deps/jsr.io/@std/assert/1.0.13/mod.d.ts.map +1 -0
  25. package/esm/deps/jsr.io/@std/assert/1.0.13/not_equals.d.ts.map +1 -0
  26. package/esm/deps/jsr.io/@std/assert/1.0.13/not_instance_of.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@std/assert/1.0.13/not_match.d.ts.map +1 -0
  28. package/esm/deps/jsr.io/@std/assert/1.0.13/not_strict_equals.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@std/assert/1.0.13/object_match.d.ts.map +1 -0
  30. package/esm/deps/jsr.io/@std/assert/1.0.13/rejects.d.ts.map +1 -0
  31. package/esm/deps/jsr.io/@std/assert/1.0.13/strict_equals.d.ts.map +1 -0
  32. package/esm/deps/jsr.io/@std/assert/1.0.13/string_includes.d.ts.map +1 -0
  33. package/esm/deps/jsr.io/@std/assert/1.0.13/throws.d.ts.map +1 -0
  34. package/esm/deps/jsr.io/@std/assert/1.0.13/unimplemented.d.ts.map +1 -0
  35. package/esm/deps/jsr.io/@std/assert/1.0.13/unreachable.d.ts.map +1 -0
  36. package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
  37. package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
  38. package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.d.ts +2 -0
  39. package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.d.ts.map +1 -0
  40. package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.internal.d.ts +69 -0
  41. package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.internal.d.ts.map +1 -0
  42. package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/mod.d.ts.map +1 -0
  43. package/esm/deps/jsr.io/@std/crypto/1.0.5/crypto.d.ts.map +1 -0
  44. package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/build_message.d.ts.map +1 -1
  45. package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/diff.d.ts.map +1 -1
  46. package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/diff_str.d.ts.map +1 -1
  47. package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/format.d.ts.map +1 -1
  48. package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/styles.d.ts.map +1 -1
  49. package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/types.d.ts.map +1 -1
  50. package/esm/deps/jsr.io/@std/uuid/1.0.9/_common.d.ts.map +1 -0
  51. package/esm/deps/jsr.io/@std/uuid/1.0.9/common.d.ts.map +1 -0
  52. package/esm/deps/jsr.io/@std/uuid/1.0.9/constants.d.ts.map +1 -0
  53. package/esm/deps/jsr.io/@std/uuid/1.0.9/mod.d.ts.map +1 -0
  54. package/esm/deps/jsr.io/@std/uuid/1.0.9/v1.d.ts.map +1 -0
  55. package/esm/deps/jsr.io/@std/uuid/1.0.9/v3.d.ts.map +1 -0
  56. package/esm/deps/jsr.io/@std/uuid/1.0.9/v4.d.ts.map +1 -0
  57. package/esm/deps/jsr.io/@std/uuid/1.0.9/v5.d.ts.map +1 -0
  58. package/esm/rs-lib/datex-core/Cargo.toml +149 -14
  59. package/esm/src/datex-core/datex_core_js.d.ts +2 -0
  60. package/esm/src/datex-core/datex_core_js.d.ts.map +1 -0
  61. package/esm/src/datex-core/datex_core_js.internal.d.ts +469 -0
  62. package/esm/src/datex-core/datex_core_js.internal.d.ts.map +1 -0
  63. package/esm/src/datex-core/datex_core_js.internal.js +1661 -0
  64. package/esm/src/datex-core/datex_core_js.js +15 -0
  65. package/esm/src/datex-core/datex_core_js.wasm +0 -0
  66. package/esm/src/datex-core.d.ts +1 -1
  67. package/esm/src/datex-core.d.ts.map +1 -1
  68. package/esm/src/datex-core.js +2 -3
  69. package/esm/src/mod.d.ts +1 -0
  70. package/esm/src/mod.d.ts.map +1 -1
  71. package/esm/src/mod.js +2 -1
  72. package/esm/src/runtime/runtime.d.ts +11 -2
  73. package/esm/src/runtime/runtime.d.ts.map +1 -1
  74. package/esm/src/runtime/runtime.js +35 -25
  75. package/esm/test/compiler/execute.test.d.ts.map +1 -0
  76. package/esm/test/crypto.test.d.ts.map +1 -0
  77. package/esm/test/init.test.d.ts.map +1 -1
  78. package/esm/test/is-node.d.ts.map +1 -0
  79. package/esm/test/network/BaseInterface.test.d.ts.map +1 -0
  80. package/esm/test/network/ComHub.test.d.ts.map +1 -0
  81. package/esm/test/network/WebsocketClientInterface.test.d.ts.map +1 -0
  82. package/esm/test/network/WebsocketMockupServer.d.ts.map +1 -0
  83. package/esm/test/network/WebsocketServerInterface.test.d.ts.map +1 -0
  84. package/esm/test/utils.d.ts.map +1 -0
  85. package/package.json +1 -1
  86. package/esm/deps/jsr.io/@std/assert/1.0.6/almost_equals.d.ts.map +0 -1
  87. package/esm/deps/jsr.io/@std/assert/1.0.6/array_includes.d.ts.map +0 -1
  88. package/esm/deps/jsr.io/@std/assert/1.0.6/assert.d.ts.map +0 -1
  89. package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
  90. package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
  91. package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
  92. package/esm/deps/jsr.io/@std/assert/1.0.6/exists.d.ts.map +0 -1
  93. package/esm/deps/jsr.io/@std/assert/1.0.6/fail.d.ts.map +0 -1
  94. package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
  95. package/esm/deps/jsr.io/@std/assert/1.0.6/greater.d.ts.map +0 -1
  96. package/esm/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.d.ts.map +0 -1
  97. package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
  98. package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
  99. package/esm/deps/jsr.io/@std/assert/1.0.6/less.d.ts.map +0 -1
  100. package/esm/deps/jsr.io/@std/assert/1.0.6/less_or_equal.d.ts.map +0 -1
  101. package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
  102. package/esm/deps/jsr.io/@std/assert/1.0.6/mod.d.ts.map +0 -1
  103. package/esm/deps/jsr.io/@std/assert/1.0.6/not_equals.d.ts.map +0 -1
  104. package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
  105. package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
  106. package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
  107. package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
  108. package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts.map +0 -1
  109. package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
  110. package/esm/deps/jsr.io/@std/assert/1.0.6/string_includes.d.ts.map +0 -1
  111. package/esm/deps/jsr.io/@std/assert/1.0.6/throws.d.ts.map +0 -1
  112. package/esm/deps/jsr.io/@std/assert/1.0.6/unimplemented.d.ts.map +0 -1
  113. package/esm/deps/jsr.io/@std/assert/1.0.6/unreachable.d.ts.map +0 -1
  114. package/esm/src/datex-core/datex_core_js.generated.d.ts +0 -78
  115. package/esm/src/datex-core/datex_core_js.generated.d.ts.map +0 -1
  116. package/esm/src/datex-core/datex_core_js.generated.js +0 -611
  117. package/esm/src/datex-core/datex_core_js_bg.wasm +0 -0
  118. package/esm/src/utils/js-runtime-compat/js-runtime-interface.d.ts +0 -7
  119. package/esm/src/utils/js-runtime-compat/js-runtime-interface.d.ts.map +0 -1
  120. package/esm/src/utils/js-runtime-compat/js-runtime-interface.js +0 -1
  121. package/esm/src/utils/js-runtime-compat/runtime.d.ts +0 -3
  122. package/esm/src/utils/js-runtime-compat/runtime.d.ts.map +0 -1
  123. package/esm/src/utils/js-runtime-compat/runtime.js +0 -34
  124. package/esm/src/utils/js-runtime-compat/runtimes/browser.d.ts +0 -7
  125. package/esm/src/utils/js-runtime-compat/runtimes/browser.d.ts.map +0 -1
  126. package/esm/src/utils/js-runtime-compat/runtimes/browser.js +0 -20
  127. package/esm/src/utils/js-runtime-compat/runtimes/deno.d.ts +0 -7
  128. package/esm/src/utils/js-runtime-compat/runtimes/deno.d.ts.map +0 -1
  129. package/esm/src/utils/js-runtime-compat/runtimes/deno.js +0 -17
@@ -1,20 +0,0 @@
1
- import * as dntShim from "../../../../_dnt.shims.js";
2
- export class BrowserRuntimeInterface {
3
- constructor() {
4
- Object.defineProperty(this, "type", {
5
- enumerable: true,
6
- configurable: true,
7
- writable: true,
8
- value: "browser"
9
- });
10
- }
11
- async readTextFile(path) {
12
- const response = await dntShim.fetch(path.toString());
13
- return await response.text();
14
- }
15
- async readFile(path) {
16
- const response = await dntShim.fetch(path.toString());
17
- const buffer = await response.arrayBuffer();
18
- return new Uint8Array(buffer);
19
- }
20
- }
@@ -1,7 +0,0 @@
1
- import type { JsRuntimeInterface } from "../js-runtime-interface.js";
2
- export declare class DenoRuntimeInterface implements JsRuntimeInterface {
3
- readonly type = "deno";
4
- readTextFile(path: string | URL): Promise<string>;
5
- readFile(path: string | URL): Promise<Uint8Array>;
6
- }
7
- //# sourceMappingURL=deno.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deno.d.ts","sourceRoot":"","sources":["../../../../../src/src/utils/js-runtime-compat/runtimes/deno.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,qBAAa,oBAAqB,YAAW,kBAAkB;IAC3D,QAAQ,CAAC,IAAI,UAAU;IAEvB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC;CAGpD"}
@@ -1,17 +0,0 @@
1
- import * as dntShim from "../../../../_dnt.shims.js";
2
- export class DenoRuntimeInterface {
3
- constructor() {
4
- Object.defineProperty(this, "type", {
5
- enumerable: true,
6
- configurable: true,
7
- writable: true,
8
- value: "deno"
9
- });
10
- }
11
- readTextFile(path) {
12
- return dntShim.Deno.readTextFile(path);
13
- }
14
- readFile(path) {
15
- return dntShim.Deno.readFile(path);
16
- }
17
- }