whet 0.0.25 → 0.0.27

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 (49) hide show
  1. package/bin/HxOverrides.js +6 -6
  2. package/bin/Lambda.js +10 -10
  3. package/bin/Reflect.js +2 -2
  4. package/bin/Std.js +1 -1
  5. package/bin/genes/Register.d.ts +12 -2
  6. package/bin/genes/Register.js +69 -40
  7. package/bin/genes/util/EsMap.js +5 -5
  8. package/bin/haxe/Exception.js +1 -1
  9. package/bin/haxe/crypto/Crc32.js +5 -5
  10. package/bin/haxe/ds/List.js +1 -1
  11. package/bin/haxe/io/Bytes.js +8 -8
  12. package/bin/haxe/io/BytesBuffer.js +6 -6
  13. package/bin/haxe/io/Output.js +7 -7
  14. package/bin/haxe/macro/Expr.d.ts +4 -0
  15. package/bin/haxe/zip/Compress.js +2 -2
  16. package/bin/haxe/zip/Tools.js +1 -1
  17. package/bin/haxe/zip/Writer.js +18 -18
  18. package/bin/js/Boot.js +25 -25
  19. package/bin/js/node/buffer/Buffer.js +1 -1
  20. package/bin/whet/Log.js +7 -7
  21. package/bin/whet/Project.d.ts +5 -0
  22. package/bin/whet/Project.js +6 -6
  23. package/bin/whet/Source.js +7 -7
  24. package/bin/whet/SourceHash.js +49 -55
  25. package/bin/whet/SourceId.js +12 -12
  26. package/bin/whet/Stone.js +40 -40
  27. package/bin/whet/Utils.js +12 -12
  28. package/bin/whet/Whet.js +24 -23
  29. package/bin/whet/cache/BaseCache.js +21 -21
  30. package/bin/whet/cache/CacheManager.js +13 -13
  31. package/bin/whet/cache/FileCache.js +97 -101
  32. package/bin/whet/cache/MemoryCache.js +12 -12
  33. package/bin/whet/magic/RoutePathType.js +15 -15
  34. package/bin/whet/magic/StoneId.js +2 -2
  35. package/bin/whet/route/RouteResult.js +1 -1
  36. package/bin/whet/route/Router.js +128 -132
  37. package/bin/whet/stones/Files.js +47 -53
  38. package/bin/whet/stones/JsonStone.js +16 -16
  39. package/bin/whet/stones/RemoteFile.js +4 -4
  40. package/bin/whet/stones/Server.js +17 -17
  41. package/bin/whet/stones/Zip.js +16 -18
  42. package/bin/whet/stones/haxe/HaxeBuild.d.ts +1 -0
  43. package/bin/whet/stones/haxe/HaxeBuild.js +25 -23
  44. package/bin/whet/stones/haxe/Hxml.js +71 -70
  45. package/package.json +1 -1
  46. package/bin/haxe/Log.d.ts +0 -33
  47. package/bin/haxe/Log.js +0 -61
  48. package/bin/js/lib/ArrayBuffer.d.ts +0 -4
  49. package/bin/js/lib/ArrayBuffer.js +0 -24
package/bin/haxe/Log.js DELETED
@@ -1,61 +0,0 @@
1
- import {Register} from "../genes/Register.js"
2
- import {Std} from "../Std.js"
3
-
4
- const $global = Register.$global
5
-
6
- /**
7
- Log primarily provides the `trace()` method, which is invoked upon a call to
8
- `trace()` in Haxe code.
9
- */
10
- export const Log = Register.global("$hxClasses")["haxe.Log"] =
11
- class Log {
12
-
13
- /**
14
- Format the output of `trace` before printing it.
15
- */
16
- static formatOutput(v, infos) {
17
- var str = Std.string(v);
18
- if (infos == null) {
19
- return str;
20
- };
21
- var pstr = infos.fileName + ":" + infos.lineNumber;
22
- if (infos.customParams != null) {
23
- var _g = 0;
24
- var _g1 = infos.customParams;
25
- while (_g < _g1.length) str += ", " + Std.string(_g1[_g++]);
26
- };
27
- return pstr + ": " + str;
28
- }
29
-
30
- /**
31
- Outputs `v` in a platform-dependent way.
32
-
33
- The second parameter `infos` is injected by the compiler and contains
34
- information about the position where the `trace()` call was made.
35
-
36
- This method can be rebound to a custom function:
37
-
38
- var oldTrace = haxe.Log.trace; // store old function
39
- haxe.Log.trace = function(v, ?infos) {
40
- // handle trace
41
- }
42
- ...
43
- haxe.Log.trace = oldTrace;
44
-
45
- If it is bound to null, subsequent calls to `trace()` will cause an
46
- exception.
47
- */
48
- static trace(v, infos) {
49
- var str = Log.formatOutput(v, infos);
50
- if (typeof(console) != "undefined" && console.log != null) {
51
- console.log(str);
52
- };
53
- }
54
- static get __name__() {
55
- return "haxe.Log"
56
- }
57
- get __class__() {
58
- return Log
59
- }
60
- }
61
-
@@ -1,4 +0,0 @@
1
-
2
- export declare class ArrayBufferCompat {
3
- protected static sliceImpl(begin: null | number, end?: null | null | null | number): ArrayBuffer
4
- }
@@ -1,24 +0,0 @@
1
- import {Register} from "../../genes/Register.js"
2
-
3
- const $global = Register.$global
4
-
5
- export const ArrayBufferCompat = Register.global("$hxClasses")["js.lib._ArrayBuffer.ArrayBufferCompat"] =
6
- class ArrayBufferCompat {
7
- static sliceImpl(begin, end) {
8
- var u = new Uint8Array(this, begin, (end == null) ? null : end - begin);
9
- var resultArray = new Uint8Array(u.byteLength);
10
- resultArray.set(u);
11
- return resultArray.buffer;
12
- }
13
- static get __name__() {
14
- return "js.lib._ArrayBuffer.ArrayBufferCompat"
15
- }
16
- get __class__() {
17
- return ArrayBufferCompat
18
- }
19
- }
20
-
21
-
22
- ;if (ArrayBuffer.prototype.slice == null) {
23
- ArrayBuffer.prototype.slice = ArrayBufferCompat.sliceImpl;
24
- }