transmission-native
Advanced tools
Comparing version 0.1.1 to 0.2.0
{ | ||
"name": "transmission-native", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "transmission-native", | ||
@@ -13,3 +13,3 @@ "author": "Geoffrey Bonneville <geoffrey.bonneville@gmail.com>", | ||
"fetch-deps": "git submodule update --recursive --init", | ||
"build-transmission": "./deps/build-transmission.sh" | ||
"build-transmission": "node ./scripts/build-transmission.js" | ||
}, | ||
@@ -16,0 +16,0 @@ "dependencies": { |
@@ -68,6 +68,18 @@ # transmission-native | ||
You'll need to install required build tools and libraries for your platform in order to compile libtransmission. | ||
You'll need to install required build tools and libraries for your platform in order to compile libtransmission: | ||
## Fedora / RHEL | ||
```sh | ||
sudo dnf install cmake gcc-c++ libcurl-devel openssl-devel | ||
``` | ||
## Windows | ||
```sh | ||
vcpkg install curl --triplet=x64-windows-static | ||
vcpkg install openssl --triplet=x64-windows | ||
``` | ||
```sh | ||
npm run fetch-deps | ||
# For Windows you need to set VCPKG_INSTALLATION_ROOT env variable | ||
npm run build-transmission | ||
@@ -74,0 +86,0 @@ npm install |
14
test.js
@@ -26,9 +26,11 @@ const os = require('os') | ||
it('request should succeed with callback', (done) => { | ||
const req = { method: 'session-get' } | ||
it('request should succeed with callback', () => { | ||
return new Promise((resolve, reject) => { | ||
const req = { method: 'session-get' } | ||
tr.request(req, (err, json) => { | ||
if (err) done(err) | ||
assert.equal(json.result, 'success') | ||
done() | ||
tr.request(req, (err, json) => { | ||
if (err) return reject(err) | ||
assert.equal(json.result, 'success') | ||
resolve() | ||
}) | ||
}) | ||
@@ -35,0 +37,0 @@ }) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5571499
13
165
92
3
3