@bytebury/toolkit 1.1.3 → 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.
- package/esm/deps/jsr.io/@std/assert/1.0.17/almost_equals.d.ts.map +1 -0
- package/{script/deps/jsr.io/@std/assert/1.0.16 → esm/deps/jsr.io/@std/assert/1.0.17}/array_includes.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.16 → esm/deps/jsr.io/@std/assert/1.0.17}/assert.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.16 → esm/deps/jsr.io/@std/assert/1.0.17}/assertion_error.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/equal.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/exists.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/fail.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/false.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/greater.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/greater_or_equal.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/instance_of.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/is_error.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/less.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/less_or_equal.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/mod.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_instance_of.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_strict_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/object_match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/rejects.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/strict_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/string_includes.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/throws.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/unimplemented.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/unreachable.d.ts.map +1 -1
- package/esm/src/core.d.ts +2 -3
- package/esm/src/core.d.ts.map +1 -1
- package/esm/src/core.js +2 -2
- package/esm/src/strings.d.ts +13 -11
- package/esm/src/strings.d.ts.map +1 -1
- package/esm/src/strings.js +13 -11
- package/package.json +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.17/almost_equals.d.ts.map +1 -0
- package/{esm/deps/jsr.io/@std/assert/1.0.16 → script/deps/jsr.io/@std/assert/1.0.17}/array_includes.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.16 → script/deps/jsr.io/@std/assert/1.0.17}/assert.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.16 → script/deps/jsr.io/@std/assert/1.0.17}/assertion_error.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/equal.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/exists.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/fail.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/false.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/greater.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/greater_or_equal.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/instance_of.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/is_error.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/less.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/less_or_equal.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/match.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/mod.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_instance_of.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_match.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/not_strict_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/object_match.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/rejects.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/strict_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/string_includes.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/throws.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/unimplemented.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.16 → 1.0.17}/unreachable.d.ts.map +1 -1
- package/script/src/core.d.ts +2 -3
- package/script/src/core.d.ts.map +1 -1
- package/script/src/core.js +1 -1
- package/script/src/strings.d.ts +13 -11
- package/script/src/strings.d.ts.map +1 -1
- package/script/src/strings.js +13 -11
- package/esm/deps/jsr.io/@std/assert/1.0.16/almost_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.16/almost_equals.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"almost_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/almost_equals.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,EAClB,GAAG,CAAC,EAAE,MAAM,QAmBb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"array_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/array_includes.ts"],"names":[],"mappings":"AAMA,0FAA0F;AAC1F,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EACvB,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,EACzB,GAAG,CAAC,EAAE,MAAM,QAwBb"}
|
package/{script/deps/jsr.io/@std/assert/1.0.16 → esm/deps/jsr.io/@std/assert/1.0.17}/assert.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/assert.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,CAI5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/assertion_error.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/equal.ts"],"names":[],"mappings":"AA0FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAgHrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/equals.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAmBb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/exists.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC,CAOlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/fail.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/false.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAI1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greater.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"greater.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/greater.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/greater_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/instance_of.ts"],"names":[],"mappings":"AAIA,sBAAsB;AAEtB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACzD,4BAA4B;AAC5B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAE9B,CAAC,SAAS,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAE9C,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,CAAC,EACf,GAAG,SAAK,GACP,OAAO,CAAC,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,CA6BnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/is_error.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,KAAK,EAAE,OAAO,EAEd,UAAU,CAAC,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAC5B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,CA8BpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"less.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"less.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/less.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/less_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/not_equals.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAUtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"not_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/not_instance_of.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,CAAC,EAET,cAAc,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAClD,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAKjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"not_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/not_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not_strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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"}
|
package/esm/src/core.d.ts
CHANGED
|
@@ -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
|
|
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(" "); //
|
|
146
|
+
* isEmpty(" "); // false
|
|
148
147
|
* isEmpty(new Set()); // true
|
|
149
148
|
* isEmpty({}); // true
|
|
150
149
|
* isEmpty(new Map()); // true
|
package/esm/src/core.d.ts.map
CHANGED
|
@@ -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;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AAK,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"}
|
package/esm/src/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lower } from "./strings.js";
|
|
2
2
|
/**
|
|
3
3
|
* Clone an object using structuredClone.
|
|
4
4
|
*/
|
|
@@ -113,7 +113,7 @@ export function isEmpty(thing) {
|
|
|
113
113
|
if (isNone(thing))
|
|
114
114
|
return true;
|
|
115
115
|
if (typeof thing === "string")
|
|
116
|
-
return
|
|
116
|
+
return thing === "";
|
|
117
117
|
if (Array.isArray(thing))
|
|
118
118
|
return thing.length === 0;
|
|
119
119
|
if (thing instanceof Map || thing instanceof Set)
|
package/esm/src/strings.d.ts
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* Determines if the given text is only comprised of whitespace.
|
|
3
3
|
*
|
|
4
4
|
* @remarks
|
|
5
|
-
* This is `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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
|
package/esm/src/strings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/src/strings.ts"],"names":[],"mappings":"AAAA
|
|
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"}
|
package/esm/src/strings.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* Determines if the given text is only comprised of whitespace.
|
|
3
3
|
*
|
|
4
4
|
* @remarks
|
|
5
|
-
* This is `
|
|
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
|
|
@@ -19,7 +21,7 @@ export function isWhitespace(text) {
|
|
|
19
21
|
* Determines if the given text contains any non-whitespace characters.
|
|
20
22
|
*
|
|
21
23
|
* @remarks
|
|
22
|
-
* This is `
|
|
24
|
+
* This is `None` safe. If you pass `null | undefined` then this will return `false`.
|
|
23
25
|
*
|
|
24
26
|
* @example
|
|
25
27
|
* ```ts
|
|
@@ -36,7 +38,7 @@ export function isNotWhitespace(text) {
|
|
|
36
38
|
* alias for `.trim()`. Useful for when you're mapping over lists.
|
|
37
39
|
*
|
|
38
40
|
* @remarks
|
|
39
|
-
* This is `
|
|
41
|
+
* This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
|
|
40
42
|
*
|
|
41
43
|
* @example
|
|
42
44
|
* ```ts
|
|
@@ -54,7 +56,7 @@ export function trim(text) {
|
|
|
54
56
|
* are considered spaces. Hyphens are respected.
|
|
55
57
|
*
|
|
56
58
|
* @remarks
|
|
57
|
-
* This is `
|
|
59
|
+
* This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
|
|
58
60
|
*
|
|
59
61
|
* @example
|
|
60
62
|
* ```ts
|
|
@@ -77,7 +79,7 @@ export function title(text) {
|
|
|
77
79
|
* An alias for `toLowerCase()`.
|
|
78
80
|
*
|
|
79
81
|
* @remarks
|
|
80
|
-
* This is `
|
|
82
|
+
* This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
|
|
81
83
|
*
|
|
82
84
|
* @example
|
|
83
85
|
* ```ts
|
|
@@ -93,7 +95,7 @@ export function lower(text) {
|
|
|
93
95
|
* An alias for `toUpperCase()`.
|
|
94
96
|
*
|
|
95
97
|
* @remarks
|
|
96
|
-
* This is `
|
|
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
|
|
@@ -109,7 +111,7 @@ export function upper(text) {
|
|
|
109
111
|
* trimming extra spaces, converting to lowercase, and joining words with hyphens.
|
|
110
112
|
*
|
|
111
113
|
* @remarks
|
|
112
|
-
* This is `
|
|
114
|
+
* This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
|
|
113
115
|
*
|
|
114
116
|
* @example
|
|
115
117
|
* ```ts
|
|
@@ -126,7 +128,7 @@ export function kebab(text) {
|
|
|
126
128
|
* Uses `kebab()` internally, replacing hyphens with underscores.
|
|
127
129
|
*
|
|
128
130
|
* @remarks
|
|
129
|
-
* This is `
|
|
131
|
+
* This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
|
|
130
132
|
*
|
|
131
133
|
* @example
|
|
132
134
|
* ```ts
|
|
@@ -143,7 +145,7 @@ export function snake(text) {
|
|
|
143
145
|
* except for spaces. Letters are preserved regardless of case.
|
|
144
146
|
*
|
|
145
147
|
* @remarks
|
|
146
|
-
* This is `
|
|
148
|
+
* This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
|
|
147
149
|
*
|
|
148
150
|
* @example
|
|
149
151
|
* ```ts
|
|
@@ -160,7 +162,7 @@ export function keepAlphabetical(text) {
|
|
|
160
162
|
* except for spaces. Letters and digits are preserved regardless of case.
|
|
161
163
|
*
|
|
162
164
|
* @remarks
|
|
163
|
-
* This is `
|
|
165
|
+
* This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
|
|
164
166
|
*
|
|
165
167
|
* @example
|
|
166
168
|
* ```ts
|
|
@@ -176,7 +178,7 @@ export function keepAlphanumeric(text) {
|
|
|
176
178
|
* Removes any non-numeric characters. This includes spaces.
|
|
177
179
|
*
|
|
178
180
|
* @remarks
|
|
179
|
-
* This is `
|
|
181
|
+
* This is `None` safe. If you pass `null | undefined` then this will return an Empty String.
|
|
180
182
|
*
|
|
181
183
|
* @example
|
|
182
184
|
* ```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytebury/toolkit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "TypeScript utility library to help energize your projects with useful functions for any size project. Save yourself some time and focus on shipping features.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"almost_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/almost_equals.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,EAClB,GAAG,CAAC,EAAE,MAAM,QAmBb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"array_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/array_includes.ts"],"names":[],"mappings":"AAMA,0FAA0F;AAC1F,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EACvB,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,EACzB,GAAG,CAAC,EAAE,MAAM,QAwBb"}
|
package/{esm/deps/jsr.io/@std/assert/1.0.16 → script/deps/jsr.io/@std/assert/1.0.17}/assert.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/assert.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,CAI5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/assertion_error.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/equal.ts"],"names":[],"mappings":"AA0FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAgHrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/equals.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAmBb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/exists.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC,CAOlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/fail.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/false.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAI1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greater.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"greater.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/greater.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/greater_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/instance_of.ts"],"names":[],"mappings":"AAIA,sBAAsB;AAEtB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACzD,4BAA4B;AAC5B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAE9B,CAAC,SAAS,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAE9C,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,CAAC,EACf,GAAG,SAAK,GACP,OAAO,CAAC,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,CA6BnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/is_error.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,KAAK,EAAE,OAAO,EAEd,UAAU,CAAC,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAC5B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,CA8BpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"less.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"less.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/less.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/less_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/not_equals.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAUtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"not_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/not_instance_of.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,CAAC,EAET,cAAc,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAClD,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAKjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"not_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.17/not_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not_strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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"}
|
package/script/src/core.d.ts
CHANGED
|
@@ -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
|
|
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(" "); //
|
|
146
|
+
* isEmpty(" "); // false
|
|
148
147
|
* isEmpty(new Set()); // true
|
|
149
148
|
* isEmpty({}); // true
|
|
150
149
|
* isEmpty(new Map()); // true
|
package/script/src/core.d.ts.map
CHANGED
|
@@ -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,CAA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isEmpty(thing) {
|
|
|
137
137
|
if (isNone(thing))
|
|
138
138
|
return true;
|
|
139
139
|
if (typeof thing === "string")
|
|
140
|
-
return
|
|
140
|
+
return thing === "";
|
|
141
141
|
if (Array.isArray(thing))
|
|
142
142
|
return thing.length === 0;
|
|
143
143
|
if (thing instanceof Map || thing instanceof Set)
|
package/script/src/strings.d.ts
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* Determines if the given text is only comprised of whitespace.
|
|
3
3
|
*
|
|
4
4
|
* @remarks
|
|
5
|
-
* This is `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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
|
|
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"}
|
package/script/src/strings.js
CHANGED
|
@@ -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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 `
|
|
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 +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 +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"}
|