glossarist 0.4.56 → 0.4.58
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/compiled-format.d.ts.map +1 -1
- package/dist/compiled-format.js +1 -0
- package/dist/compiled-format.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/models/abstract-hyperedge.d.ts +4 -0
- package/dist/models/abstract-hyperedge.d.ts.map +1 -1
- package/dist/models/abstract-hyperedge.js +14 -2
- package/dist/models/abstract-hyperedge.js.map +1 -1
- package/dist/models/concept-ref.d.ts +28 -8
- package/dist/models/concept-ref.d.ts.map +1 -1
- package/dist/models/concept-ref.js +54 -5
- package/dist/models/concept-ref.js.map +1 -1
- package/dist/models/hyperedge-member.js +0 -4
- package/dist/models/hyperedge-member.js.map +1 -1
- package/dist/output/csv.d.ts +11 -0
- package/dist/output/csv.d.ts.map +1 -0
- package/dist/output/csv.js +97 -0
- package/dist/output/csv.js.map +1 -0
- package/dist/output/index.d.ts +6 -0
- package/dist/output/index.d.ts.map +1 -0
- package/dist/output/index.js +15 -0
- package/dist/output/index.js.map +1 -0
- package/dist/output/jsonl.d.ts +10 -0
- package/dist/output/jsonl.d.ts.map +1 -0
- package/dist/output/jsonl.js +19 -0
- package/dist/output/jsonl.js.map +1 -0
- package/dist/output/output-set.d.ts +28 -0
- package/dist/output/output-set.d.ts.map +1 -0
- package/dist/output/output-set.js +151 -0
- package/dist/output/output-set.js.map +1 -0
- package/dist/output/tbx.d.ts +16 -0
- package/dist/output/tbx.d.ts.map +1 -0
- package/dist/output/tbx.js +203 -0
- package/dist/output/tbx.js.map +1 -0
- package/dist/output/turtle.d.ts +12 -0
- package/dist/output/turtle.d.ts.map +1 -0
- package/dist/output/turtle.js +33 -0
- package/dist/output/turtle.js.map +1 -0
- package/dist/rdf/gloss-concept.d.ts.map +1 -1
- package/dist/rdf/gloss-concept.js +3 -2
- package/dist/rdf/gloss-concept.js.map +1 -1
- package/dist/rdf/gloss-non-verbal-rep.d.ts.map +1 -1
- package/dist/rdf/gloss-non-verbal-rep.js +2 -1
- package/dist/rdf/gloss-non-verbal-rep.js.map +1 -1
- package/dist/transforms/concept-to-gloss.transform.d.ts.map +1 -1
- package/dist/transforms/concept-to-gloss.transform.js +2 -1
- package/dist/transforms/concept-to-gloss.transform.js.map +1 -1
- package/dist/utils/strings.d.ts +7 -0
- package/dist/utils/strings.d.ts.map +1 -0
- package/dist/utils/strings.js +13 -0
- package/dist/utils/strings.js.map +1 -0
- package/package.json +5 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Strip trailing slashes from a base URI without regex backtracking.
|
|
3
|
+
* CodeQL js/polynomial-redos: `/\/+$/` is polynomial on runs of '/' —
|
|
4
|
+
* a linear scan is equivalent and safe on untrusted-length input.
|
|
5
|
+
*/
|
|
6
|
+
export function stripTrailingSlashes(value) {
|
|
7
|
+
const s = String(value ?? '');
|
|
8
|
+
let end = s.length;
|
|
9
|
+
while (end > 0 && s[end - 1] === '/')
|
|
10
|
+
end--;
|
|
11
|
+
return s.slice(0, end);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=strings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strings.js","sourceRoot":"","sources":["../../src/utils/strings.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAc;IACjD,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;IAC9B,IAAI,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC;IACnB,OAAO,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,GAAG;QAAE,GAAG,EAAE,CAAC;IAC5C,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AACzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glossarist",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.58",
|
|
4
4
|
"description": "JavaScript SDK for Glossarist GCR packages — read, write, validate, and manage terminology concepts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
"types": "./dist/transforms/index.d.ts",
|
|
53
53
|
"import": "./dist/transforms/index.js"
|
|
54
54
|
},
|
|
55
|
+
"./output": {
|
|
56
|
+
"types": "./dist/output/index.d.ts",
|
|
57
|
+
"import": "./dist/output/index.js"
|
|
58
|
+
},
|
|
55
59
|
"./package.json": "./package.json"
|
|
56
60
|
},
|
|
57
61
|
"scripts": {
|