@ctrl/deluge
Advanced tools
Comparing version
{ | ||
"name": "@ctrl/deluge", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "TypeScript api wrapper for deluge using got", | ||
@@ -12,7 +12,4 @@ "author": "Scott Cooper <scttcper@gmail.com>", | ||
], | ||
"source": "src/index.ts", | ||
"main": "./deluge.js", | ||
"module": "./deluge.m.js", | ||
"main": "./src/index.js", | ||
"typings": "./src/index.d.ts", | ||
"sideEffects": false, | ||
"scripts": { | ||
@@ -22,3 +19,3 @@ "lint": "tslint -t stylish -p .", | ||
"prebuild": "rimraf dist", | ||
"build": "microbundle build --target node --format cjs,es -o dist", | ||
"build": "tsc -p tsconfig.json", | ||
"postbuild": "cp package.json dist && cp LICENSE dist && cp README.md dist && rimraf dist/test", | ||
@@ -33,25 +30,24 @@ "build:docs": "typedoc --out docs --target es6 --theme minimal --mode file src && touch docs/.nojekyll", | ||
"form-data": "2.3.3", | ||
"got": "9.3.2", | ||
"tough-cookie": "2.5.0" | ||
"got": "9.6.0", | ||
"tough-cookie": "3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/form-data": "2.2.1", | ||
"@types/got": "9.2.1", | ||
"@types/jest": "23.3.10", | ||
"@types/node": "10.12.12", | ||
"@types/got": "9.4.0", | ||
"@types/jest": "23.3.13", | ||
"@types/node": "10.12.18", | ||
"@types/p-wait-for": "2.0.0", | ||
"@types/tough-cookie": "2.3.4", | ||
"jest": "23.6.0", | ||
"microbundle": "0.7.0", | ||
"@types/tough-cookie": "2.3.5", | ||
"jest": "24.0.0", | ||
"p-wait-for": "2.0.1", | ||
"prettier": "1.15.3", | ||
"rimraf": "2.6.2", | ||
"semantic-release": "15.12.4", | ||
"prettier": "1.16.1", | ||
"rimraf": "2.6.3", | ||
"semantic-release": "15.13.3", | ||
"ts-jest": "23.10.5", | ||
"ts-node": "7.0.1", | ||
"tslint": "5.11.0", | ||
"ts-node": "8.0.2", | ||
"tslint": "5.12.1", | ||
"tslint-config-prettier": "1.17.0", | ||
"tslint-xo": "0.10.0", | ||
"typedoc": "0.13.0", | ||
"typescript": "3.2.2" | ||
"tslint-xo": "0.13.0", | ||
"typedoc": "0.14.2", | ||
"typescript": "3.2.4" | ||
}, | ||
@@ -65,4 +61,4 @@ "publishConfig": { | ||
"engines": { | ||
"node": ">=8.9.0" | ||
"node": ">= 10" | ||
} | ||
} |
@@ -5,2 +5,4 @@ # deluge [](https://www.npmjs.com/package/@ctrl/deluge) [](https://travis-ci.org/typectrl/deluge) [](https://codecov.io/gh/typectrl/deluge) | ||
The advantage to writing your own http requests is the auth is already setup and type definitions are availabe for all responses. | ||
### Install | ||
@@ -24,4 +26,9 @@ | ||
const res = await deluge.listTorrents(); | ||
// listTorrents returns a TorrentListResponse and types are available | ||
console.log(res.result); | ||
} | ||
``` | ||
### API | ||
Docs: https://typectrl.github.io/deluge/classes/deluge.html |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ export interface DelugeConfig { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
18
-5.26%0
-100%33
26.92%2
-33.33%40992
-66.02%954
-33.38%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated