@alizarin/napi 2.0.0-alpha.108 → 2.0.0-alpha.109
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/{alizarin-napi-2.0.0-alpha.108.tgz → alizarin-napi-2.0.0-alpha.109.tgz} +0 -0
- package/alizarin-napi.darwin-arm64.node +0 -0
- package/alizarin-napi.darwin-x64.node +0 -0
- package/alizarin-napi.linux-x64-gnu.node +0 -0
- package/alizarin-napi.win32-x64-msvc.node +0 -0
- package/index.d.ts +3 -1
- package/package.json +4 -4
- package/src/lib.rs +2 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare function buildGraphFromCsvs(graphCsv: string, nodesCsv: string, c
|
|
|
17
17
|
* Returns the resources wrapped in the `{ business_data: { resources: [...] } }`
|
|
18
18
|
* format expected by PrebuildLoader.
|
|
19
19
|
*/
|
|
20
|
-
export declare function buildBusinessDataFromCsv(csvData: string, graphJson: string, collectionsJson: string, defaultLanguage?: string | undefined | null, strictConcepts?: boolean | undefined | null): any
|
|
20
|
+
export declare function buildBusinessDataFromCsv(csvData: string, graphJson: string, collectionsJson: string, defaultLanguage?: string | undefined | null, strictConcepts?: boolean | undefined | null, uuidNamespace?: string | undefined | null): any
|
|
21
21
|
/**
|
|
22
22
|
* Coerce a value using the registered extension handler for the given datatype.
|
|
23
23
|
*
|
|
@@ -374,6 +374,8 @@ export declare class NapiStaticGraph {
|
|
|
374
374
|
/** Parse a graph from a JSON string (the file content, not a file path). */
|
|
375
375
|
static fromJsonString(jsonStr: string): NapiStaticGraph
|
|
376
376
|
get graphId(): string
|
|
377
|
+
/** Alias matching the WASM `graphid` property for backend consistency. */
|
|
378
|
+
get graphid(): string
|
|
377
379
|
get name(): any
|
|
378
380
|
/** Register this graph in the global registry so NapiResourceInstanceWrapper can use it. */
|
|
379
381
|
register(): void
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alizarin/napi",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.109",
|
|
4
4
|
"license": "AGPL-3.0-or-later",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"@napi-rs/cli": "^2.18.0"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@alizarin/napi-win32-x64-msvc": "2.0.0-alpha.
|
|
34
|
-
"@alizarin/napi-darwin-x64": "2.0.0-alpha.
|
|
35
|
-
"@alizarin/napi-linux-x64-gnu": "2.0.0-alpha.
|
|
33
|
+
"@alizarin/napi-win32-x64-msvc": "2.0.0-alpha.109",
|
|
34
|
+
"@alizarin/napi-darwin-x64": "2.0.0-alpha.109",
|
|
35
|
+
"@alizarin/napi-linux-x64-gnu": "2.0.0-alpha.109"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/lib.rs
CHANGED
|
@@ -527,6 +527,7 @@ pub fn build_business_data_from_csv(
|
|
|
527
527
|
collections_json: String,
|
|
528
528
|
default_language: Option<String>,
|
|
529
529
|
strict_concepts: Option<bool>,
|
|
530
|
+
uuid_namespace: Option<String>,
|
|
530
531
|
) -> Result<serde_json::Value> {
|
|
531
532
|
let graph: StaticGraph = serde_json::from_str(&graph_json)
|
|
532
533
|
.map_err(|e| napi::Error::from_reason(format!("Invalid graph JSON: {e}")))?;
|
|
@@ -536,6 +537,7 @@ pub fn build_business_data_from_csv(
|
|
|
536
537
|
let options = alizarin_core::csv_business_data_loader::BusinessDataCsvOptions {
|
|
537
538
|
default_language: default_language.unwrap_or_else(|| "en".to_string()),
|
|
538
539
|
strict_concepts: strict_concepts.unwrap_or(true),
|
|
540
|
+
uuid_namespace,
|
|
539
541
|
};
|
|
540
542
|
|
|
541
543
|
let resources = build_resources_from_business_csv(&csv_data, &graph, &collections, options)
|