smartcard 3.1.0 → 3.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smartcard",
3
- "version": "3.1.0",
3
+ "version": "3.2.1",
4
4
  "description": "PC/SC bindings for Node.js using N-API - ABI stable across Node.js versions",
5
5
  "author": "Tom KP",
6
6
  "license": "MIT",
@@ -19,9 +19,12 @@
19
19
  "install": "node-gyp rebuild",
20
20
  "build": "node-gyp rebuild",
21
21
  "rebuild": "node-gyp rebuild",
22
- "test": "node test/test.js && node test/unit.js",
23
- "test:unit": "node test/unit.js",
24
- "test:integration": "node test/test.js"
22
+ "test": "node --test test/integration/index.js && node --test test/unit/index.js",
23
+ "test:unit": "node --test test/unit/index.js",
24
+ "test:integration": "node --test test/integration/index.js",
25
+ "test:coverage": "c8 --include=lib/**/*.js node --test test/unit/index.js",
26
+ "test:types": "tsd",
27
+ "coverage:report": "c8 report --reporter=text --reporter=html"
25
28
  },
26
29
  "files": [
27
30
  "lib/",
@@ -34,10 +37,13 @@
34
37
  "node-addon-api": "^7.0.0"
35
38
  },
36
39
  "devDependencies": {
37
- "node-gyp": "^10.0.0"
40
+ "@types/node": "^25.0.3",
41
+ "c8": "^10.1.3",
42
+ "node-gyp": "^10.0.0",
43
+ "tsd": "^0.33.0"
38
44
  },
39
45
  "engines": {
40
- "node": ">=12.0.0"
46
+ "node": ">=18.0.0"
41
47
  },
42
48
  "os": [
43
49
  "darwin",
@@ -56,5 +62,8 @@
56
62
  "node-addon-api",
57
63
  "acr122",
58
64
  "card-reader"
59
- ]
65
+ ],
66
+ "tsd": {
67
+ "directory": "test/types"
68
+ }
60
69
  }
@@ -32,5 +32,10 @@
32
32
  #endif
33
33
  #endif
34
34
 
35
+ // MAX_ATR_SIZE may not be defined on some Windows SDK versions
36
+ #ifndef MAX_ATR_SIZE
37
+ #define MAX_ATR_SIZE 33
38
+ #endif
39
+
35
40
  // Helper macro for unused parameters
36
41
  #define PCSC_UNUSED(x) (void)(x)