native-machine-id 0.0.3 → 0.0.4
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/binding.cc +1 -1
- package/package.json +1 -1
package/binding.cc
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
#include <IOKit/IOKitLib.h>
|
|
7
7
|
#include <AvailabilityMacros.h>
|
|
8
8
|
// kIOMainPortDefault is the replacement on macOS 12+ but is not available in older SDKs
|
|
9
|
-
#if (defined(
|
|
9
|
+
#if (defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED >= 120000)
|
|
10
10
|
#define IO_PORT_DEFAULT kIOMainPortDefault
|
|
11
11
|
#else
|
|
12
12
|
#define IO_PORT_DEFAULT kIOMasterPortDefault
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "native-machine-id",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Native retrieval of a unique desktop machine ID without admin privileges or child processes. Faster and more reliable alternative to node-machine-id.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|