@dcl/abgen-node 0.15.2 → 0.15.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/README.md CHANGED
@@ -20,4 +20,4 @@ non-zero `exitCode` in `manifest`, with `code` still 0.
20
20
 
21
21
  `platform` is `"windows"`, `"mac"`, `"linux"` or `"webgl"`.
22
22
 
23
- Prebuilt for linux x64/arm64, darwin x64/arm64 and win32 x64. AGPL-3.0-or-later.
23
+ Prebuilt for linux x64/arm64, darwin x64/arm64 and win32 x64. Apache-2.0 OR AGPL-3.0-or-later, at your option.
package/index.d.ts CHANGED
@@ -52,6 +52,12 @@ export interface AbgenConvertResult {
52
52
  manifest?: string
53
53
  }
54
54
  export declare function version(): string
55
+ /**
56
+ * Overrides the pool size. Process-wide, effective once, and only before the
57
+ * first [`convert`] — after that the default is already installed and this
58
+ * returns false rather than pretending to have applied.
59
+ */
60
+ export declare function setMaxThreads(threads: number): boolean
55
61
  /**
56
62
  * Converts one entity on the blocking pool, not the libuv event loop:
57
63
  * conversion is CPU-bound for seconds at a time.
package/index.js CHANGED
@@ -310,7 +310,8 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { version, convert } = nativeBinding
313
+ const { version, setMaxThreads, convert } = nativeBinding
314
314
 
315
315
  module.exports.version = version
316
+ module.exports.setMaxThreads = setMaxThreads
316
317
  module.exports.convert = convert
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dcl/abgen-node",
3
- "version": "0.15.2",
3
+ "version": "0.15.3",
4
4
  "description": "Decentraland asset-bundle conversion in-process for Node (Rust + napi-rs) — the same abgen core the server and the Unity plugin run",
5
- "license": "AGPL-3.0-or-later",
5
+ "license": "Apache-2.0 OR AGPL-3.0-or-later",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/decentraland/abgen.git"
@@ -46,10 +46,10 @@
46
46
  "registry": "https://registry.npmjs.org/"
47
47
  },
48
48
  "optionalDependencies": {
49
- "@dcl/abgen-node-linux-x64-gnu": "0.15.2",
50
- "@dcl/abgen-node-linux-arm64-gnu": "0.15.2",
51
- "@dcl/abgen-node-darwin-x64": "0.15.2",
52
- "@dcl/abgen-node-darwin-arm64": "0.15.2",
53
- "@dcl/abgen-node-win32-x64-msvc": "0.15.2"
49
+ "@dcl/abgen-node-linux-x64-gnu": "0.15.3",
50
+ "@dcl/abgen-node-linux-arm64-gnu": "0.15.3",
51
+ "@dcl/abgen-node-darwin-x64": "0.15.3",
52
+ "@dcl/abgen-node-darwin-arm64": "0.15.3",
53
+ "@dcl/abgen-node-win32-x64-msvc": "0.15.3"
54
54
  }
55
55
  }