@calcit/procs 0.8.13 → 0.8.15

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.
@@ -988,6 +988,9 @@ export let starts_with_$q_ = (xs, y) => {
988
988
  if (xs instanceof CalcitTag && y instanceof CalcitTag) {
989
989
  return xs.value.startsWith(y.value);
990
990
  }
991
+ if (xs instanceof CalcitTag && typeof y === "string") {
992
+ return xs.value.startsWith(y);
993
+ }
991
994
  throw new Error("expected strings or tags");
992
995
  };
993
996
  export let ends_with_$q_ = (xs, y) => {
package/lib/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.8.13",
3
+ "version": "0.8.15",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
- "@types/node": "^20.10.0",
6
+ "@types/node": "^20.10.2",
7
7
  "typescript": "^5.3.2"
8
8
  },
9
9
  "scripts": {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.8.13",
3
+ "version": "0.8.15",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
- "@types/node": "^20.10.0",
6
+ "@types/node": "^20.10.2",
7
7
  "typescript": "^5.3.2"
8
8
  },
9
9
  "scripts": {
@@ -1086,6 +1086,9 @@ export let starts_with_$q_ = (xs: CalcitValue, y: CalcitValue): boolean => {
1086
1086
  if (xs instanceof CalcitTag && y instanceof CalcitTag) {
1087
1087
  return xs.value.startsWith(y.value);
1088
1088
  }
1089
+ if (xs instanceof CalcitTag && typeof y === "string") {
1090
+ return xs.value.startsWith(y);
1091
+ }
1089
1092
  throw new Error("expected strings or tags");
1090
1093
  };
1091
1094
  export let ends_with_$q_ = (xs: string, y: string): boolean => {