@homebridge/dbus-native 0.4.0 → 0.4.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/README.md +7 -0
- package/lib/dbus-buffer.js +1 -1
- package/lib/marshallers.js +3 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -6,6 +6,13 @@ D-bus protocol client and server for node.js
|
|
|
6
6
|
|
|
7
7
|
[](http://travis-ci.org/sidorares/dbus-native)
|
|
8
8
|
|
|
9
|
+
Fork Status
|
|
10
|
+
------------
|
|
11
|
+
|
|
12
|
+
This fork is maintained with the following two changes:
|
|
13
|
+
* Removed the optional `abstract-socket` dependency for faster installs
|
|
14
|
+
* Moved to our `long.js` fork to work around a crash on `ARMv6` platforms running node 16.1+
|
|
15
|
+
|
|
9
16
|
Installation
|
|
10
17
|
------------
|
|
11
18
|
|
package/lib/dbus-buffer.js
CHANGED
package/lib/marshallers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const Buffer = require('safe-buffer').Buffer;
|
|
2
2
|
const align = require('./align').align;
|
|
3
3
|
const parseSignature = require('../lib/signature');
|
|
4
|
-
const Long = require('long');
|
|
4
|
+
const Long = require('@homebridge/long');
|
|
5
5
|
/**
|
|
6
6
|
* MakeSimpleMarshaller
|
|
7
7
|
* @param signature - the signature of the data you want to check
|
|
@@ -63,8 +63,7 @@ var MakeSimpleMarshaller = function(signature) {
|
|
|
63
63
|
// utf8 string
|
|
64
64
|
align(ps, 4);
|
|
65
65
|
const buff = Buffer.from(data, 'utf8');
|
|
66
|
-
ps
|
|
67
|
-
.word32le(buff.length)
|
|
66
|
+
ps.word32le(buff.length)
|
|
68
67
|
.put(buff)
|
|
69
68
|
.word8(0);
|
|
70
69
|
ps._offset += 5 + buff.length;
|
|
@@ -80,8 +79,7 @@ var MakeSimpleMarshaller = function(signature) {
|
|
|
80
79
|
this.check(data);
|
|
81
80
|
// signature
|
|
82
81
|
const buff = Buffer.from(data, 'ascii');
|
|
83
|
-
ps
|
|
84
|
-
.word8(data.length)
|
|
82
|
+
ps.word8(data.length)
|
|
85
83
|
.put(buff)
|
|
86
84
|
.word8(0);
|
|
87
85
|
ps._offset += 2 + buff.length;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homebridge/dbus-native",
|
|
3
3
|
"author": "Andrey Sidorov <sidorares@yandex.com>",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dbus",
|
|
7
7
|
"dcop",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"event-stream": "^4.0.0",
|
|
42
42
|
"hexy": "^0.2.10",
|
|
43
|
-
"long": "^
|
|
43
|
+
"@homebridge/long": "^5.2.1",
|
|
44
44
|
"optimist": "^0.6.1",
|
|
45
45
|
"put": "0.0.6",
|
|
46
46
|
"safe-buffer": "^5.1.1",
|
|
47
47
|
"xml2js": "^0.4.17"
|
|
48
48
|
},
|
|
49
|
-
"
|
|
49
|
+
"comment": {
|
|
50
50
|
"optionalDependencies": {
|
|
51
51
|
"abstract-socket": "^2.0.0"
|
|
52
52
|
}
|