@bytebury/toolkit 1.1.2 → 1.2.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/esm/deps/jsr.io/@std/assert/1.0.17/almost_equals.d.ts.map +1 -0
  2. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/array_includes.d.ts.map +1 -1
  3. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/assert.d.ts.map +1 -1
  4. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/assertion_error.d.ts.map +1 -1
  5. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/equal.d.ts.map +1 -1
  6. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/equals.d.ts.map +1 -1
  7. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/exists.d.ts.map +1 -1
  8. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/fail.d.ts.map +1 -1
  9. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/false.d.ts.map +1 -1
  10. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/greater.d.ts.map +1 -1
  11. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/greater_or_equal.d.ts.map +1 -1
  12. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/instance_of.d.ts.map +1 -1
  13. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/is_error.d.ts.map +1 -1
  14. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/less.d.ts.map +1 -1
  15. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/less_or_equal.d.ts.map +1 -1
  16. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/match.d.ts.map +1 -1
  17. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/mod.d.ts.map +1 -1
  18. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_equals.d.ts.map +1 -1
  19. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_instance_of.d.ts.map +1 -1
  20. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_match.d.ts.map +1 -1
  21. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_strict_equals.d.ts.map +1 -1
  22. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/object_match.d.ts.map +1 -1
  23. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/rejects.d.ts.map +1 -1
  24. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/strict_equals.d.ts.map +1 -1
  25. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/string_includes.d.ts.map +1 -1
  26. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/throws.d.ts.map +1 -1
  27. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/unimplemented.d.ts.map +1 -1
  28. package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/unreachable.d.ts.map +1 -1
  29. package/esm/src/core.d.ts +2 -3
  30. package/esm/src/core.d.ts.map +1 -1
  31. package/esm/src/core.js +2 -2
  32. package/esm/src/duration.d.ts.map +1 -1
  33. package/esm/src/duration.js +1 -2
  34. package/esm/src/strings.d.ts +13 -11
  35. package/esm/src/strings.d.ts.map +1 -1
  36. package/esm/src/strings.js +13 -11
  37. package/package.json +4 -6
  38. package/script/deps/jsr.io/@std/assert/1.0.17/almost_equals.d.ts.map +1 -0
  39. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/array_includes.d.ts.map +1 -1
  40. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/assert.d.ts.map +1 -1
  41. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/assertion_error.d.ts.map +1 -1
  42. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/equal.d.ts.map +1 -1
  43. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/equals.d.ts.map +1 -1
  44. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/exists.d.ts.map +1 -1
  45. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/fail.d.ts.map +1 -1
  46. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/false.d.ts.map +1 -1
  47. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/greater.d.ts.map +1 -1
  48. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/greater_or_equal.d.ts.map +1 -1
  49. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/instance_of.d.ts.map +1 -1
  50. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/is_error.d.ts.map +1 -1
  51. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/less.d.ts.map +1 -1
  52. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/less_or_equal.d.ts.map +1 -1
  53. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/match.d.ts.map +1 -1
  54. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/mod.d.ts.map +1 -1
  55. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_equals.d.ts.map +1 -1
  56. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_instance_of.d.ts.map +1 -1
  57. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_match.d.ts.map +1 -1
  58. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_strict_equals.d.ts.map +1 -1
  59. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/object_match.d.ts.map +1 -1
  60. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/rejects.d.ts.map +1 -1
  61. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/strict_equals.d.ts.map +1 -1
  62. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/string_includes.d.ts.map +1 -1
  63. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/throws.d.ts.map +1 -1
  64. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/unimplemented.d.ts.map +1 -1
  65. package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/unreachable.d.ts.map +1 -1
  66. package/script/src/core.d.ts +2 -3
  67. package/script/src/core.d.ts.map +1 -1
  68. package/script/src/core.js +1 -1
  69. package/script/src/duration.d.ts.map +1 -1
  70. package/script/src/duration.js +1 -35
  71. package/script/src/strings.d.ts +13 -11
  72. package/script/src/strings.d.ts.map +1 -1
  73. package/script/src/strings.js +13 -11
  74. package/esm/_dnt.shims.d.ts +0 -10
  75. package/esm/_dnt.shims.d.ts.map +0 -1
  76. package/esm/_dnt.shims.js +0 -65
  77. package/esm/deps/jsr.io/@std/assert/1.0.16/almost_equals.d.ts.map +0 -1
  78. package/script/_dnt.shims.d.ts +0 -10
  79. package/script/_dnt.shims.d.ts.map +0 -1
  80. package/script/_dnt.shims.js +0 -71
  81. package/script/deps/jsr.io/@std/assert/1.0.16/almost_equals.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"not_strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/not_strict_equals.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAYb"}
1
+ {"version":3,"file":"not_strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/not_strict_equals.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAYb"}
@@ -1 +1 @@
1
- {"version":3,"file":"object_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/object_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,iBAAiB,CAE/B,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,EAChC,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,EACtC,GAAG,CAAC,EAAE,MAAM,GACX,IAAI,CAUN"}
1
+ {"version":3,"file":"object_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/object_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,iBAAiB,CAE/B,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,EAChC,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,EACtC,GAAG,CAAC,EAAE,MAAM,GACX,IAAI,CAUN"}
@@ -1 +1 @@
1
- {"version":3,"file":"rejects.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/rejects.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAC9B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,OAAO,CAAC,CAAC;AACpB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAE9B,UAAU,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC9C,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"rejects.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/rejects.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAC9B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,OAAO,CAAC,CAAC;AACpB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAE9B,UAAU,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC9C,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/strict_equals.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,CAAC,CAgCrB"}
1
+ {"version":3,"file":"strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/strict_equals.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,CAAC,CAgCrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"string_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/string_includes.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
1
+ {"version":3,"file":"string_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/string_includes.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
@@ -1 +1 @@
1
- {"version":3,"file":"throws.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/throws.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAC1B,EAAE,EAAE,MAAM,OAAO,EACjB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC;AACX;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EAClD,EAAE,EAAE,MAAM,OAAO,EAEjB,UAAU,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC9C,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,CAAC,CAAC"}
1
+ {"version":3,"file":"throws.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/throws.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAC1B,EAAE,EAAE,MAAM,OAAO,EACjB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC;AACX;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EAClD,EAAE,EAAE,MAAM,OAAO,EAEjB,UAAU,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC9C,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"unimplemented.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/unimplemented.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGjD"}
1
+ {"version":3,"file":"unimplemented.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/unimplemented.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"unreachable.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/unreachable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAG/C"}
1
+ {"version":3,"file":"unreachable.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/unreachable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAG/C"}
@@ -136,15 +136,14 @@ export declare function reverse<T>(thing: Set<T>): Set<T>;
136
136
  * Things are empty when:
137
137
  * * They are `None`
138
138
  * * They are empty strings
139
- * * They are strings of only whitespace
140
- * * They have length or size
139
+ * * They have no length or size
141
140
  *
142
141
  * @example
143
142
  * ```ts
144
143
  * isEmpty([]); // true
145
144
  * isEmpty([0]); // false
146
145
  * isEmpty(""); // true
147
- * isEmpty(" "); // true
146
+ * isEmpty(" "); // false
148
147
  * isEmpty(new Set()); // true
149
148
  * isEmpty({}); // true
150
149
  * isEmpty(new Map()); // true
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/src/core.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,oBAAoB,CAAC;AAElE;;GAEG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAElC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAEjE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACnD,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;AAO7C;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAClD,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;AAO5C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAEpE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,i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G,OAAO,CAAC;AAKpD;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAExC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAE1C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAElD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE9C;AAED;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE7C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE9C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE9C;AAED;;;;;;;;GAQG;AACH,wBAAgB,IAAI,IAAI,IAAI,CAE3B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAExE;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,CAQtD"}
@@ -137,7 +137,7 @@ function isEmpty(thing) {
137
137
  if (isNone(thing))
138
138
  return true;
139
139
  if (typeof thing === "string")
140
- return (0, strings_js_1.isWhitespace)(thing);
140
+ return thing === "";
141
141
  if (Array.isArray(thing))
142
142
  return thing.length === 0;
143
143
  if (thing instanceof Map || thing instanceof Set)
@@ -1 +1 @@
1
- {"version":3,"file":"duration.d.ts","sourceRoot":"","sources":["../../src/src/duration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AACzD,gDAAgD;AAChD,MAAM,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAC/C,gDAAgD;AAChD,MAAM,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAC/C,8CAA8C;AAC9C,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC3C,6CAA6C;AAC7C,MAAM,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACzC,8CAA8C;AAC9C,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC3C,8CAA8C;AAC9C,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,KAAK,GAAU,IAAI,YAAY,KAAG,OAAO,CAAC,IAAI,CAE1D,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,QAAQ;IACC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAAjD,OAAO;IAEP;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,YAAY,EAAE,YAAY,GAAG,QAAQ;IAIzD;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ;IAI1C;;OAEG;IACH,MAAM,CAAC,OAAO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AG7B"}
@@ -1,40 +1,6 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  Object.defineProperty(exports, "__esModule", { value: true });
36
3
  exports.Duration = exports.sleep = void 0;
37
- const dntShim = __importStar(require("../_dnt.shims.js"));
38
4
  /**
39
5
  * Sleeps for the given duration of milliseconds.
40
6
  *
@@ -170,7 +136,7 @@ class Duration {
170
136
  * ```
171
137
  */
172
138
  async sleep() {
173
- await new Promise((resolve) => dntShim.setTimeout(resolve, this.toMilliseconds()));
139
+ await new Promise((resolve) => setTimeout(resolve, this.toMilliseconds()));
174
140
  }
175
141
  }
176
142
  exports.Duration = Duration;
@@ -2,11 +2,13 @@
2
2
  * Determines if the given text is only comprised of whitespace.
3
3
  *
4
4
  * @remarks
5
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `true`.
5
+ * This is `None` safe. If you pass `null | undefined` then this will return `true`.
6
6
  *
7
7
  * @example
8
8
  * ```ts
9
9
  * isWhitespace(null); // true
10
+ * isWhitespace(undefined); // true
11
+ * isWhitespace(""); // true
10
12
  * isWhitespace(" "); // true
11
13
  * isWhitespace("\n\t"); // true
12
14
  * isWhitespace("Hello"); // false
@@ -17,7 +19,7 @@ export declare function isWhitespace(text: string): boolean;
17
19
  * Determines if the given text contains any non-whitespace characters.
18
20
  *
19
21
  * @remarks
20
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `false`.
22
+ * This is `None` safe. If you pass `null | undefined` then this will return `false`.
21
23
  *
22
24
  * @example
23
25
  * ```ts
@@ -32,7 +34,7 @@ export declare function isNotWhitespace(text: string): boolean;
32
34
  * alias for `.trim()`. Useful for when you're mapping over lists.
33
35
  *
34
36
  * @remarks
35
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
37
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
36
38
  *
37
39
  * @example
38
40
  * ```ts
@@ -48,7 +50,7 @@ export declare function trim(text: string): string;
48
50
  * are considered spaces. Hyphens are respected.
49
51
  *
50
52
  * @remarks
51
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
53
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
52
54
  *
53
55
  * @example
54
56
  * ```ts
@@ -65,7 +67,7 @@ export declare function title(text: string): string;
65
67
  * An alias for `toLowerCase()`.
66
68
  *
67
69
  * @remarks
68
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
70
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
69
71
  *
70
72
  * @example
71
73
  * ```ts
@@ -79,7 +81,7 @@ export declare function lower(text: string): Lowercase<string>;
79
81
  * An alias for `toUpperCase()`.
80
82
  *
81
83
  * @remarks
82
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
84
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
83
85
  *
84
86
  * @example
85
87
  * ```ts
@@ -93,7 +95,7 @@ export declare function upper(text: string): Uppercase<string>;
93
95
  * trimming extra spaces, converting to lowercase, and joining words with hyphens.
94
96
  *
95
97
  * @remarks
96
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
98
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
97
99
  *
98
100
  * @example
99
101
  * ```ts
@@ -108,7 +110,7 @@ export declare function kebab(text: string): Lowercase<string>;
108
110
  * Uses `kebab()` internally, replacing hyphens with underscores.
109
111
  *
110
112
  * @remarks
111
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
113
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
112
114
  *
113
115
  * @example
114
116
  * ```ts
@@ -123,7 +125,7 @@ export declare function snake(text: string): Lowercase<string>;
123
125
  * except for spaces. Letters are preserved regardless of case.
124
126
  *
125
127
  * @remarks
126
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
128
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
127
129
  *
128
130
  * @example
129
131
  * ```ts
@@ -138,7 +140,7 @@ export declare function keepAlphabetical(text: string): string;
138
140
  * except for spaces. Letters and digits are preserved regardless of case.
139
141
  *
140
142
  * @remarks
141
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
143
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
142
144
  *
143
145
  * @example
144
146
  * ```ts
@@ -152,7 +154,7 @@ export declare function keepAlphanumeric(text: string): string;
152
154
  * Removes any non-numeric characters. This includes spaces.
153
155
  *
154
156
  * @remarks
155
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
157
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
156
158
  *
157
159
  * @example
158
160
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/src/strings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAElD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM1C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAErD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAErD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAIrD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAErD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD"}
1
+ {"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/src/strings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAElD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM1C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAErD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAErD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAIrD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAErD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD"}
@@ -15,11 +15,13 @@ exports.keepNumeric = keepNumeric;
15
15
  * Determines if the given text is only comprised of whitespace.
16
16
  *
17
17
  * @remarks
18
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `true`.
18
+ * This is `None` safe. If you pass `null | undefined` then this will return `true`.
19
19
  *
20
20
  * @example
21
21
  * ```ts
22
22
  * isWhitespace(null); // true
23
+ * isWhitespace(undefined); // true
24
+ * isWhitespace(""); // true
23
25
  * isWhitespace(" "); // true
24
26
  * isWhitespace("\n\t"); // true
25
27
  * isWhitespace("Hello"); // false
@@ -32,7 +34,7 @@ function isWhitespace(text) {
32
34
  * Determines if the given text contains any non-whitespace characters.
33
35
  *
34
36
  * @remarks
35
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `false`.
37
+ * This is `None` safe. If you pass `null | undefined` then this will return `false`.
36
38
  *
37
39
  * @example
38
40
  * ```ts
@@ -49,7 +51,7 @@ function isNotWhitespace(text) {
49
51
  * alias for `.trim()`. Useful for when you're mapping over lists.
50
52
  *
51
53
  * @remarks
52
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
54
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
53
55
  *
54
56
  * @example
55
57
  * ```ts
@@ -67,7 +69,7 @@ function trim(text) {
67
69
  * are considered spaces. Hyphens are respected.
68
70
  *
69
71
  * @remarks
70
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
72
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
71
73
  *
72
74
  * @example
73
75
  * ```ts
@@ -90,7 +92,7 @@ function title(text) {
90
92
  * An alias for `toLowerCase()`.
91
93
  *
92
94
  * @remarks
93
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
95
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
94
96
  *
95
97
  * @example
96
98
  * ```ts
@@ -106,7 +108,7 @@ function lower(text) {
106
108
  * An alias for `toUpperCase()`.
107
109
  *
108
110
  * @remarks
109
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
111
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
110
112
  *
111
113
  * @example
112
114
  * ```ts
@@ -122,7 +124,7 @@ function upper(text) {
122
124
  * trimming extra spaces, converting to lowercase, and joining words with hyphens.
123
125
  *
124
126
  * @remarks
125
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
127
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
126
128
  *
127
129
  * @example
128
130
  * ```ts
@@ -139,7 +141,7 @@ function kebab(text) {
139
141
  * Uses `kebab()` internally, replacing hyphens with underscores.
140
142
  *
141
143
  * @remarks
142
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
144
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
143
145
  *
144
146
  * @example
145
147
  * ```ts
@@ -156,7 +158,7 @@ function snake(text) {
156
158
  * except for spaces. Letters are preserved regardless of case.
157
159
  *
158
160
  * @remarks
159
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
161
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
160
162
  *
161
163
  * @example
162
164
  * ```ts
@@ -173,7 +175,7 @@ function keepAlphabetical(text) {
173
175
  * except for spaces. Letters and digits are preserved regardless of case.
174
176
  *
175
177
  * @remarks
176
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
178
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
177
179
  *
178
180
  * @example
179
181
  * ```ts
@@ -189,7 +191,7 @@ function keepAlphanumeric(text) {
189
191
  * Removes any non-numeric characters. This includes spaces.
190
192
  *
191
193
  * @remarks
192
- * This is `null | undefined` safe. If you pass `null | undefined` then this will return `""`.
194
+ * This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
193
195
  *
194
196
  * @example
195
197
  * ```ts
@@ -1,10 +0,0 @@
1
- import { Deno } from "@deno/shim-deno";
2
- export { Deno } from "@deno/shim-deno";
3
- import { setInterval, setTimeout } from "@deno/shim-timers";
4
- export { setInterval, setTimeout } from "@deno/shim-timers";
5
- export declare const dntGlobalThis: Omit<typeof globalThis, "setInterval" | "setTimeout" | "Deno"> & {
6
- Deno: typeof Deno;
7
- setInterval: typeof setInterval;
8
- setTimeout: typeof setTimeout;
9
- };
10
- //# sourceMappingURL=_dnt.shims.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_dnt.shims.d.ts","sourceRoot":"","sources":["../src/_dnt.shims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAO5D,eAAO,MAAM,aAAa;;;;CAA2C,CAAC"}
package/esm/_dnt.shims.js DELETED
@@ -1,65 +0,0 @@
1
- import { Deno } from "@deno/shim-deno";
2
- export { Deno } from "@deno/shim-deno";
3
- import { setInterval, setTimeout } from "@deno/shim-timers";
4
- export { setInterval, setTimeout } from "@deno/shim-timers";
5
- const dntGlobals = {
6
- Deno,
7
- setInterval,
8
- setTimeout,
9
- };
10
- export const dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
11
- function createMergeProxy(baseObj, extObj) {
12
- return new Proxy(baseObj, {
13
- get(_target, prop, _receiver) {
14
- if (prop in extObj) {
15
- return extObj[prop];
16
- }
17
- else {
18
- return baseObj[prop];
19
- }
20
- },
21
- set(_target, prop, value) {
22
- if (prop in extObj) {
23
- delete extObj[prop];
24
- }
25
- baseObj[prop] = value;
26
- return true;
27
- },
28
- deleteProperty(_target, prop) {
29
- let success = false;
30
- if (prop in extObj) {
31
- delete extObj[prop];
32
- success = true;
33
- }
34
- if (prop in baseObj) {
35
- delete baseObj[prop];
36
- success = true;
37
- }
38
- return success;
39
- },
40
- ownKeys(_target) {
41
- const baseKeys = Reflect.ownKeys(baseObj);
42
- const extKeys = Reflect.ownKeys(extObj);
43
- const extKeysSet = new Set(extKeys);
44
- return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys];
45
- },
46
- defineProperty(_target, prop, desc) {
47
- if (prop in extObj) {
48
- delete extObj[prop];
49
- }
50
- Reflect.defineProperty(baseObj, prop, desc);
51
- return true;
52
- },
53
- getOwnPropertyDescriptor(_target, prop) {
54
- if (prop in extObj) {
55
- return Reflect.getOwnPropertyDescriptor(extObj, prop);
56
- }
57
- else {
58
- return Reflect.getOwnPropertyDescriptor(baseObj, prop);
59
- }
60
- },
61
- has(_target, prop) {
62
- return prop in extObj || prop in baseObj;
63
- },
64
- });
65
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"almost_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/almost_equals.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,EAClB,GAAG,CAAC,EAAE,MAAM,QAmBb"}
@@ -1,10 +0,0 @@
1
- import { Deno } from "@deno/shim-deno";
2
- export { Deno } from "@deno/shim-deno";
3
- import { setInterval, setTimeout } from "@deno/shim-timers";
4
- export { setInterval, setTimeout } from "@deno/shim-timers";
5
- export declare const dntGlobalThis: Omit<typeof globalThis, "setInterval" | "setTimeout" | "Deno"> & {
6
- Deno: typeof Deno;
7
- setInterval: typeof setInterval;
8
- setTimeout: typeof setTimeout;
9
- };
10
- //# sourceMappingURL=_dnt.shims.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_dnt.shims.d.ts","sourceRoot":"","sources":["../src/_dnt.shims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAO5D,eAAO,MAAM,aAAa;;;;CAA2C,CAAC"}
@@ -1,71 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dntGlobalThis = exports.setTimeout = exports.setInterval = exports.Deno = void 0;
4
- const shim_deno_1 = require("@deno/shim-deno");
5
- var shim_deno_2 = require("@deno/shim-deno");
6
- Object.defineProperty(exports, "Deno", { enumerable: true, get: function () { return shim_deno_2.Deno; } });
7
- const shim_timers_1 = require("@deno/shim-timers");
8
- var shim_timers_2 = require("@deno/shim-timers");
9
- Object.defineProperty(exports, "setInterval", { enumerable: true, get: function () { return shim_timers_2.setInterval; } });
10
- Object.defineProperty(exports, "setTimeout", { enumerable: true, get: function () { return shim_timers_2.setTimeout; } });
11
- const dntGlobals = {
12
- Deno: shim_deno_1.Deno,
13
- setInterval: shim_timers_1.setInterval,
14
- setTimeout: shim_timers_1.setTimeout,
15
- };
16
- exports.dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
17
- function createMergeProxy(baseObj, extObj) {
18
- return new Proxy(baseObj, {
19
- get(_target, prop, _receiver) {
20
- if (prop in extObj) {
21
- return extObj[prop];
22
- }
23
- else {
24
- return baseObj[prop];
25
- }
26
- },
27
- set(_target, prop, value) {
28
- if (prop in extObj) {
29
- delete extObj[prop];
30
- }
31
- baseObj[prop] = value;
32
- return true;
33
- },
34
- deleteProperty(_target, prop) {
35
- let success = false;
36
- if (prop in extObj) {
37
- delete extObj[prop];
38
- success = true;
39
- }
40
- if (prop in baseObj) {
41
- delete baseObj[prop];
42
- success = true;
43
- }
44
- return success;
45
- },
46
- ownKeys(_target) {
47
- const baseKeys = Reflect.ownKeys(baseObj);
48
- const extKeys = Reflect.ownKeys(extObj);
49
- const extKeysSet = new Set(extKeys);
50
- return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys];
51
- },
52
- defineProperty(_target, prop, desc) {
53
- if (prop in extObj) {
54
- delete extObj[prop];
55
- }
56
- Reflect.defineProperty(baseObj, prop, desc);
57
- return true;
58
- },
59
- getOwnPropertyDescriptor(_target, prop) {
60
- if (prop in extObj) {
61
- return Reflect.getOwnPropertyDescriptor(extObj, prop);
62
- }
63
- else {
64
- return Reflect.getOwnPropertyDescriptor(baseObj, prop);
65
- }
66
- },
67
- has(_target, prop) {
68
- return prop in extObj || prop in baseObj;
69
- },
70
- });
71
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"almost_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/almost_equals.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,EAClB,GAAG,CAAC,EAAE,MAAM,QAmBb"}