@sjawhar/pi-legion-envoy 5.30.8 → 5.30.9
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/dist/envoy.js +6 -0
- package/dist/legion.js +7 -1
- package/package.json +1 -1
package/dist/envoy.js
CHANGED
|
@@ -29918,6 +29918,9 @@ function claimHolds(claim, titles) {
|
|
|
29918
29918
|
return titles.has(claim.actor.id) ? "holds" : "lapsed";
|
|
29919
29919
|
}
|
|
29920
29920
|
// ../contracts/src/dispatch-href.ts
|
|
29921
|
+
function hasControlCharacter(value) {
|
|
29922
|
+
return /\p{Cc}/u.test(value);
|
|
29923
|
+
}
|
|
29921
29924
|
function itemFromSearch(search) {
|
|
29922
29925
|
const params = new URLSearchParams(search);
|
|
29923
29926
|
const ask = params.get("ask");
|
|
@@ -29938,6 +29941,9 @@ function itemFromSearch(search) {
|
|
|
29938
29941
|
} catch {
|
|
29939
29942
|
return null;
|
|
29940
29943
|
}
|
|
29944
|
+
if (hasControlCharacter(id)) {
|
|
29945
|
+
return null;
|
|
29946
|
+
}
|
|
29941
29947
|
return ask === null ? { id, kind: "comment" } : { id, kind: "ask" };
|
|
29942
29948
|
}
|
|
29943
29949
|
// ../contracts/src/dispatch-snippet.ts
|
package/dist/legion.js
CHANGED
|
@@ -30087,6 +30087,9 @@ function claimHolds(claim, titles) {
|
|
|
30087
30087
|
return titles.has(claim.actor.id) ? "holds" : "lapsed";
|
|
30088
30088
|
}
|
|
30089
30089
|
// ../contracts/src/dispatch-href.ts
|
|
30090
|
+
function hasControlCharacter(value) {
|
|
30091
|
+
return /\p{Cc}/u.test(value);
|
|
30092
|
+
}
|
|
30090
30093
|
function itemFromSearch(search) {
|
|
30091
30094
|
const params = new URLSearchParams(search);
|
|
30092
30095
|
const ask = params.get("ask");
|
|
@@ -30107,6 +30110,9 @@ function itemFromSearch(search) {
|
|
|
30107
30110
|
} catch {
|
|
30108
30111
|
return null;
|
|
30109
30112
|
}
|
|
30113
|
+
if (hasControlCharacter(id)) {
|
|
30114
|
+
return null;
|
|
30115
|
+
}
|
|
30110
30116
|
return ask === null ? { id, kind: "comment" } : { id, kind: "ask" };
|
|
30111
30117
|
}
|
|
30112
30118
|
// ../contracts/src/dispatch-snippet.ts
|
|
@@ -33828,7 +33834,7 @@ import { logger } from "@oh-my-pi/pi-utils";
|
|
|
33828
33834
|
// package.json
|
|
33829
33835
|
var package_default = {
|
|
33830
33836
|
name: "@sjawhar/pi-legion-envoy",
|
|
33831
|
-
version: "5.30.
|
|
33837
|
+
version: "5.30.9",
|
|
33832
33838
|
type: "module",
|
|
33833
33839
|
omp: {
|
|
33834
33840
|
extensions: [
|