@mermanjs/node 0.9.1 → 0.9.3
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/CHANGELOG.md +18 -0
- package/README.md +34 -0
- package/THIRD_PARTY_LICENSES/rust-cargo-dependencies.json +135 -247
- package/THIRD_PARTY_LICENSES/sdk-cousine/OFL.txt +93 -0
- package/THIRD_PARTY_NOTICES.md +89 -37
- package/dist/candidates/native.mjs +4 -2
- package/dist/engine.mjs +25 -1
- package/dist/errors.mjs +1 -0
- package/dist/generated/binding-contract.mjs +37 -5
- package/dist/generated/node-wire-contract.json +3 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.mjs +4 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -18,8 +18,15 @@ export interface MermanBindingOptions {
|
|
|
18
18
|
[key: string]: unknown;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
/** One host-loaded Iconify pack, admitted once into an immutable engine-local registry. */
|
|
22
|
+
export interface MermanIconPack {
|
|
23
|
+
json: string;
|
|
24
|
+
registrationName?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
export interface CreateNodeEngineOptions {
|
|
22
28
|
bindingOptions?: MermanBindingOptions;
|
|
29
|
+
iconPacks?: readonly MermanIconPack[];
|
|
23
30
|
concurrency?: number;
|
|
24
31
|
maxQueue?: number;
|
|
25
32
|
}
|
|
@@ -252,12 +259,19 @@ export interface MermanCancellationErrorDetails {
|
|
|
252
259
|
readonly [key: string]: unknown;
|
|
253
260
|
}
|
|
254
261
|
|
|
262
|
+
export interface MermanIconRegistryErrorDetails {
|
|
263
|
+
readonly kind_id: string;
|
|
264
|
+
readonly pack_index: number | null;
|
|
265
|
+
readonly registration_name: string | null;
|
|
266
|
+
}
|
|
267
|
+
|
|
255
268
|
export declare class MermanOperationError extends MermanError {
|
|
256
269
|
readonly status: number | null;
|
|
257
270
|
readonly codeName: string | null;
|
|
258
271
|
readonly kind: "generic" | "unknown-operation" | "missing-capability" | string;
|
|
259
272
|
readonly capabilityId: string | null;
|
|
260
273
|
readonly resourceDetails: MermanResourceErrorDetails | null;
|
|
274
|
+
readonly iconRegistryDetails: MermanIconRegistryErrorDetails | null;
|
|
261
275
|
readonly diagnosticDetails: MermanDiagnosticErrorDetails | null;
|
|
262
276
|
readonly cancellationDetails: MermanCancellationErrorDetails | null;
|
|
263
277
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,10 @@ import {
|
|
|
7
7
|
export { MermanEngine };
|
|
8
8
|
|
|
9
9
|
export function createNodeEngine(options) {
|
|
10
|
-
return createEngineWithTransport(options, {
|
|
10
|
+
return createEngineWithTransport(options, {
|
|
11
|
+
loadTransport: (optionsJson, iconPacksJson) =>
|
|
12
|
+
loadNativeTransport(optionsJson, {}, iconPacksJson),
|
|
13
|
+
});
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mermanjs/node",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Experimental native Node.js and static-site rendering bindings for Merman.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
],
|
|
42
42
|
"license": "MIT OR Apache-2.0",
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@mermanjs/node-darwin-arm64": "0.9.
|
|
45
|
-
"@mermanjs/node-darwin-x64": "0.9.
|
|
46
|
-
"@mermanjs/node-linux-x64-gnu": "0.9.
|
|
47
|
-
"@mermanjs/node-linux-x64-musl": "0.9.
|
|
48
|
-
"@mermanjs/node-win32-x64-msvc": "0.9.
|
|
44
|
+
"@mermanjs/node-darwin-arm64": "0.9.3",
|
|
45
|
+
"@mermanjs/node-darwin-x64": "0.9.3",
|
|
46
|
+
"@mermanjs/node-linux-x64-gnu": "0.9.3",
|
|
47
|
+
"@mermanjs/node-linux-x64-musl": "0.9.3",
|
|
48
|
+
"@mermanjs/node-win32-x64-msvc": "0.9.3"
|
|
49
49
|
}
|
|
50
50
|
}
|