reqrio 0.1.1 → 0.1.2
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/2.log +2 -0
- package/bindings.js +4 -2
- package/libreqrio.so +0 -0
- package/package.json +1 -1
- package/reqrio.dll +0 -0
- package/session.js +4 -0
package/2.log
CHANGED
|
@@ -26,3 +26,5 @@ CLIENT_RANDOM d89265054fb145fe75fe56e224a0aac9acd23a87221c95a7b5bc0d2f94945750 a
|
|
|
26
26
|
CLIENT_RANDOM c2afc383b0363f37dd448ef95aa30a8c12ec8f515e321679f70b37cd82f74836 e0bde036e403ae0cd4111db98b4ef6ee82634faccf0414392ab782ccd88e7cefe6d66db6995f5aa18f7e0a96c582b409
|
|
27
27
|
CLIENT_RANDOM b009e5252d97d5086723bf3ed3788000c167900c6f060449feaf2262045f69df 673f5759883a46a6f0116266a2ca24f5c217cb96360bd42ec244ad282fb92d1e636db9e438b61edae05541effdce6c60
|
|
28
28
|
CLIENT_RANDOM 547e11d441719d61c836cdd53f55a0828cbf9c8b1dfb7da104f890f16c2ac781 e6e67b5ea27eca02afeaee0786b285c33c90531c4e8c4b6e72c90e6897c4c66fc6c7c5305eec14e37414094a43f67adf
|
|
29
|
+
CLIENT_RANDOM 622c86402ae3439f0cf70aa614f8be142f221006dae4f12cfb3f77381d770e86 431c70971d631a265a863d39466bd1c29bc2de9c7e07aadf52c22bb556021308213cc920819b7360455344832c223adf
|
|
30
|
+
CLIENT_RANDOM 7f80dcd4bea6bbd923d31957b971374657980c3ca82177ab2fac70da8df2d39d 8e0cb6dbbe19e3dcd45fafd416fb5ab8d66a9cd4da24e2e03f38464e5e94dac58c329837b16ec7201712422523aa63d6
|
package/bindings.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const ffi = require('ffi-napi');
|
|
2
2
|
const ref = require('ref-napi');
|
|
3
|
+
const path = require("path");
|
|
3
4
|
|
|
4
5
|
const voidPtr = ref.refType(ref.types.void);
|
|
5
6
|
const charPtr = ref.types.CString;
|
|
@@ -14,6 +15,7 @@ const Method = {
|
|
|
14
15
|
OPTIONS: 5,
|
|
15
16
|
TRACE: 6,
|
|
16
17
|
CONNECT: 7,
|
|
18
|
+
PATCH: 8
|
|
17
19
|
}
|
|
18
20
|
let libname;
|
|
19
21
|
if (process.platform === "win32") {
|
|
@@ -23,8 +25,8 @@ if (process.platform === "win32") {
|
|
|
23
25
|
} else {
|
|
24
26
|
throw "unsupported system platform"
|
|
25
27
|
}
|
|
26
|
-
|
|
27
|
-
const library = ffi.Library(
|
|
28
|
+
let libpath = path.join(__dirname, libname)
|
|
29
|
+
const library = ffi.Library(libpath, {
|
|
28
30
|
ScReq_new: [voidPtr, []],
|
|
29
31
|
ScReq_set_header_json: ['int', [voidPtr, charPtr]],
|
|
30
32
|
ScReq_add_header: ["int", [voidPtr, charPtr, charPtr]],
|
package/libreqrio.so
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/reqrio.dll
CHANGED
|
Binary file
|