@homedev/objector 1.0.3 → 1.0.4
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.ts +35 -0
- package/package.json +8 -8
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FieldProcessorMap } from '@homedev/fields';
|
|
2
|
+
import { Output } from '@homedev/files';
|
|
3
|
+
import { WriteOutputsOption } from '@homedev/files';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class Objector {
|
|
9
|
+
private includeDirectories;
|
|
10
|
+
private includes;
|
|
11
|
+
private outputs;
|
|
12
|
+
private vars;
|
|
13
|
+
private cache;
|
|
14
|
+
private fields;
|
|
15
|
+
private objectMetadata;
|
|
16
|
+
constructor();
|
|
17
|
+
use(handler: (o: Objector) => void): this;
|
|
18
|
+
includeDirectory(...dirs: string[]): this;
|
|
19
|
+
getIncludeDirectories(): string[];
|
|
20
|
+
include(...files: string[]): this;
|
|
21
|
+
keys(keys: FieldProcessorMap): this;
|
|
22
|
+
sources(sources: FieldProcessorMap): this;
|
|
23
|
+
variables(vars: Record<string, any>): this;
|
|
24
|
+
getOutputs(): Output[];
|
|
25
|
+
output(o: Output): this;
|
|
26
|
+
metadata(path: string, o: any): this;
|
|
27
|
+
getMetadata(path: string): any;
|
|
28
|
+
getAllMetadata(): Record<string, any>;
|
|
29
|
+
filter(f: RegExp): this;
|
|
30
|
+
private docIncludes;
|
|
31
|
+
load<T = any>(fileName: string, cwd?: string, container?: any, noProcess?: boolean): Promise<T | null>;
|
|
32
|
+
writeOutputs(options?: WriteOutputsOption): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homedev/objector",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "object extensions for YAML/JSON",
|
|
5
5
|
"author": "julzor",
|
|
6
6
|
"license": "ISC",
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"typings": "dist/index.d.ts",
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@homedev/fields": "^1.0.
|
|
12
|
-
"@homedev/files": "^1.0.
|
|
13
|
-
"@homedev/merge": "^1.0.
|
|
14
|
-
"@homedev/navigate": "^1.0.
|
|
15
|
-
"@homedev/object-utils": "^1.0.
|
|
16
|
-
"@homedev/select": "^1.0.
|
|
17
|
-
"@homedev/string-utils": "^1.0.
|
|
11
|
+
"@homedev/fields": "^1.0.9",
|
|
12
|
+
"@homedev/files": "^1.0.2",
|
|
13
|
+
"@homedev/merge": "^1.0.2",
|
|
14
|
+
"@homedev/navigate": "^1.0.2",
|
|
15
|
+
"@homedev/object-utils": "^1.0.2",
|
|
16
|
+
"@homedev/select": "^1.0.3",
|
|
17
|
+
"@homedev/string-utils": "^1.0.6",
|
|
18
18
|
"yaml": "^2.8.0"
|
|
19
19
|
}
|
|
20
20
|
}
|