node-ctypes 2.13.1 → 2.14.0

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.
Binary file
Binary file
package/lib/index.d.ts CHANGED
@@ -135,6 +135,7 @@ export type FFIType = AnyType | StructureClass | PointerTypeDef | ArrayTypeDef |
135
135
  * ```javascript
136
136
  * import { Version } from 'node-ctypes';
137
137
  * console.log(Version.toString()); // "2.8.0"
138
+ * console.log(Version.libffi); // "3.8.1"
138
139
  * ```
139
140
  *
140
141
  * @category Library Loading
@@ -143,6 +144,8 @@ export class Version {
143
144
  static get major(): number;
144
145
  static get minor(): number;
145
146
  static get patch(): number;
147
+ /** Version of the libffi node-ctypes is built with. */
148
+ static get libffi(): string;
146
149
  static toString(): string;
147
150
  }
148
151
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-ctypes",
3
- "version": "2.13.1",
3
+ "version": "2.14.0",
4
4
  "description": "Python ctypes-like FFI for Node.js using libffi",
5
5
  "author": "Damiano Mazzella",
6
6
  "license": "MIT",
@@ -34,6 +34,7 @@
34
34
  "test:types": "tsc -p tests/types/tsconfig.json",
35
35
  "bench:koffi": "node tests/benchmarks/benchmark_koffi.js",
36
36
  "bench:ffi": "node --experimental-ffi tests/benchmarks/benchmark_node_ffi.js",
37
+ "bench:charts": "node tests/benchmarks/charts.js",
37
38
  "docs": "typedoc",
38
39
  "docs:serve": "typedoc && npx serve docs"
39
40
  },