native-machine-id 0.0.6 → 0.0.7
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 +2 -6
- package/package.json +1 -1
package/binding.cc
CHANGED
|
@@ -4,13 +4,9 @@
|
|
|
4
4
|
#ifdef __APPLE__
|
|
5
5
|
#include <CoreFoundation/CoreFoundation.h>
|
|
6
6
|
#include <IOKit/IOKitLib.h>
|
|
7
|
-
|
|
8
|
-
//
|
|
9
|
-
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 120000
|
|
10
|
-
#define IO_PORT kIOMainPortDefault
|
|
11
|
-
#else
|
|
7
|
+
// kIOMainPortDefault and kIOMasterPortDefault are both set to 0
|
|
8
|
+
// and we define them here to avoid conflicts across OS versions
|
|
12
9
|
#define IO_PORT 0
|
|
13
|
-
#endif
|
|
14
10
|
#elif defined(__linux__)
|
|
15
11
|
#include <fstream>
|
|
16
12
|
#include <algorithm>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "native-machine-id",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
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",
|