From 6f967553d6c39637c9d419b2b49cced58744820c Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 20 Aug 2019 18:43:15 +0200 Subject: [PATCH] fix(core): update --- npmextra.json | 2 +- package.json | 15 +++++++++++++-- readme.md | 26 ++++++++++++++++++++++++++ ts/interfaces/index.ts | 2 +- ts/smartproxy.classes.router.ts | 4 +--- ts/smartproxy.classes.smartproxy.ts | 2 +- ts/smartproxy.plugins.ts | 9 ++------- 7 files changed, 45 insertions(+), 15 deletions(-) create mode 100644 readme.md diff --git a/npmextra.json b/npmextra.json index d5a3f5a..fe0abaa 100644 --- a/npmextra.json +++ b/npmextra.json @@ -14,4 +14,4 @@ "npmGlobalTools": [], "npmAccessLevel": "public" } -} +} \ No newline at end of file diff --git a/package.json b/package.json index bff0951..60548c0 100644 --- a/package.json +++ b/package.json @@ -25,5 +25,16 @@ "@types/http-proxy-middleware": "^0.19.3", "express": "^4.17.1", "http-proxy-middleware": "^0.19.1" - } -} + }, + "files": [ + "ts/*", + "ts_web/*", + "dist/*", + "dist_web/*", + "dist_ts_web/*", + "assets/*", + "cli.js", + "npmextra.json", + "readme.md" + ] +} \ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..5adf242 --- /dev/null +++ b/readme.md @@ -0,0 +1,26 @@ +# @pushrocks/smartproxy +a proxy for handling high workloads of proxying + +## Availabililty and Links +* [npmjs.org (npm package)](https://www.npmjs.com/package/@pushrocks/smartproxy) +* [gitlab.com (source)](https://gitlab.com/pushrocks/smartproxy) +* [github.com (source mirror)](https://github.com/pushrocks/smartproxy) +* [docs (typedoc)](https://pushrocks.gitlab.io/smartproxy/) + +## Status for master +[![build status](https://gitlab.com/pushrocks/smartproxy/badges/master/build.svg)](https://gitlab.com/pushrocks/smartproxy/commits/master) +[![coverage report](https://gitlab.com/pushrocks/smartproxy/badges/master/coverage.svg)](https://gitlab.com/pushrocks/smartproxy/commits/master) +[![npm downloads per month](https://img.shields.io/npm/dm/@pushrocks/smartproxy.svg)](https://www.npmjs.com/package/@pushrocks/smartproxy) +[![Known Vulnerabilities](https://snyk.io/test/npm/@pushrocks/smartproxy/badge.svg)](https://snyk.io/test/npm/@pushrocks/smartproxy) +[![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/) +[![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/) +[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/) + +## Usage + +For further information read the linked docs at the top of this readme. + +> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) +| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy) + +[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com) diff --git a/ts/interfaces/index.ts b/ts/interfaces/index.ts index afc2592..9ac4263 100644 --- a/ts/interfaces/index.ts +++ b/ts/interfaces/index.ts @@ -4,4 +4,4 @@ export interface IHostConfig { destinationPort: number; privateKey: string; publicKey: string; -} \ No newline at end of file +} diff --git a/ts/smartproxy.classes.router.ts b/ts/smartproxy.classes.router.ts index 38184d2..36ed864 100644 --- a/ts/smartproxy.classes.router.ts +++ b/ts/smartproxy.classes.router.ts @@ -1,5 +1,3 @@ import * as plugins from './smartproxy.plugins'; -export class SmartproxyRouter { - -} \ No newline at end of file +export class SmartproxyRouter {} diff --git a/ts/smartproxy.classes.smartproxy.ts b/ts/smartproxy.classes.smartproxy.ts index ffbeda5..e0e7dce 100644 --- a/ts/smartproxy.classes.smartproxy.ts +++ b/ts/smartproxy.classes.smartproxy.ts @@ -13,7 +13,7 @@ export class SmartProxy { public addHostCandidate(hostCandidate: interfaces.IHostConfig) { // TODO search for old hostCandidates with that target this.hostCandidates.push(hostCandidate); - }; + } /** * starts the proxyInstance diff --git a/ts/smartproxy.plugins.ts b/ts/smartproxy.plugins.ts index 1412135..e97ae84 100644 --- a/ts/smartproxy.plugins.ts +++ b/ts/smartproxy.plugins.ts @@ -1,15 +1,10 @@ // node native scope import * as https from 'https'; -export { - https -}; +export { https }; // third party scope import express from 'express'; import * as httpProxyMiddleware from 'http-proxy-middleware'; -export { - express, - httpProxyMiddleware -}; +export { express, httpProxyMiddleware };