@frontmcp/utils 1.10.14 → 1.10.16
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/content/content.d.ts +8 -0
- package/content/index.d.ts +1 -1
- package/esm/index.mjs +1 -1
- package/fs/fs.d.ts +25 -0
- package/fs/index.d.ts +1 -1
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/package.json +2 -2
package/content/content.d.ts
CHANGED
|
@@ -40,6 +40,14 @@ export declare function findNonFiniteNumber(value: unknown): {
|
|
|
40
40
|
path: string;
|
|
41
41
|
value: number;
|
|
42
42
|
} | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The key paths `original` holds that `parsed` lacks: what parsing `original` against a schema
|
|
45
|
+
* dropped. Nested keys are dotted (`customer.taxId`), array items share an `[]` segment
|
|
46
|
+
* (`lines[].margin`), keys holding `undefined` are skipped, and the paths come back sorted and
|
|
47
|
+
* unique. The walk follows `parsed`, so it stops wherever the two values differ in shape, and
|
|
48
|
+
* wherever `parsed` holds the very same object, which also keeps it out of cycles.
|
|
49
|
+
*/
|
|
50
|
+
export declare function findDroppedKeys(original: unknown, parsed: unknown): string[];
|
|
43
51
|
/**
|
|
44
52
|
* Infer MIME type from file extension or content.
|
|
45
53
|
*
|
package/content/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { sanitizeToJson, inferMimeType, findNonFiniteNumber } from './content';
|
|
1
|
+
export { sanitizeToJson, inferMimeType, findNonFiniteNumber, findDroppedKeys } from './content';
|