@okforest/okf 0.2.2 → 0.4.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/dist/index.d.mts +2 -0
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -53,6 +53,8 @@ export declare function buildInventory(tree: Tree, options?: {
|
|
|
53
53
|
* unless one value contains the other.
|
|
54
54
|
*/
|
|
55
55
|
export declare function findNearDuplicates(counts: readonly Count[], field: NearDuplicates["field"]): NearDuplicates[];
|
|
56
|
+
/** Levenshtein distance, stopping early once it exceeds `limit`. */
|
|
57
|
+
export declare function editDistance(a: string, b: string, limit: number): number;
|
|
56
58
|
//#endregion
|
|
57
59
|
//#region src/paths.d.ts
|
|
58
60
|
/** Convert a glob (relative to the tree root) to a regular expression.
|
package/dist/index.mjs
CHANGED
|
@@ -137,4 +137,4 @@ function editDistance(a, b, limit) {
|
|
|
137
137
|
return previous[b.length];
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
|
-
export { DEFAULT_IGNORED, SETTINGS_PATH, buildInventory, deriveStatus, deriveTrustTier, findNearDuplicates, globToRegExp, isRecord, isStaleAt, isStatus, normalizeSources, normalizeText, normalizeVerified, parseTree, visit };
|
|
140
|
+
export { DEFAULT_IGNORED, SETTINGS_PATH, buildInventory, deriveStatus, deriveTrustTier, editDistance, findNearDuplicates, globToRegExp, isRecord, isStaleAt, isStatus, normalizeSources, normalizeText, normalizeVerified, parseTree, visit };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okforest/okf",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Read an Open Knowledge Format (OKF) v0.2 tree into a model: concepts, frontmatter, links, backlinks, trust tiers, staleness, and a metadata inventory. No SDKs or frameworks; runs in Node, browsers, and Workers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"okf",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^26.6.5",
|
|
52
|
-
"@vitest/coverage-v8": "^5.0.
|
|
52
|
+
"@vitest/coverage-v8": "^5.0.4",
|
|
53
53
|
"tsdown": "^0.23.0",
|
|
54
54
|
"typescript": "^7.0.2",
|
|
55
|
-
"vitest": "^5.0.
|
|
55
|
+
"vitest": "^5.0.4"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsdown",
|