New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More →

@ctrl/deluge

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ctrl/deluge - npm Package Compare versions

Comparing version

to
1.2.0

{
"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 [![npm](https://img.shields.io/npm/v/@ctrl/deluge.svg?maxAge=3600)](https://www.npmjs.com/package/@ctrl/deluge) [![build status](https://travis-ci.com/TypeCtrl/deluge.svg?branch=master)](https://travis-ci.org/typectrl/deluge) [![coverage status](https://codecov.io/gh/typectrl/deluge/branch/master/graph/badge.svg)](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 {