Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
c32a56d921 | |||
69233e8a3b | |||
23e6977d81 | |||
9f57b3b638 | |||
5df0a53efe | |||
6d1a781b9a | |||
81c9f3b72e | |||
c8ac0498c8 | |||
ee0900f3c0 |
14
package-lock.json
generated
14
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartproxy",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.13",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
@ -250,9 +250,9 @@
|
||||
"integrity": "sha512-jmrJMUEmBCWChWK8CIcx4Vw3wv/8OgVNmkaxJrbs+WMaoRUfJtpWWJfrAwwHWt9ZXJbarJ+CwfwfYiiZXymndQ=="
|
||||
},
|
||||
"@pushrocks/smartrequest": {
|
||||
"version": "1.1.19",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrequest/-/smartrequest-1.1.19.tgz",
|
||||
"integrity": "sha512-puCBwk85JSOFCUU40EFxTk8yATCLEH90iaDycoWaR0ykOq1nSIWviyi49t4UUYM7lAjmTmMeTT+qOVF+508U2Q==",
|
||||
"version": "1.1.20",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrequest/-/smartrequest-1.1.20.tgz",
|
||||
"integrity": "sha512-3qOrxZT9+Fhr4GD/dFH+xDHYuSUTStbJl6/jNyh6W0d1L64zH2wfuG8MwlHc3CUHFXPaGauwK+4LQ91JEUx8TQ==",
|
||||
"requires": {
|
||||
"@pushrocks/smartpromise": "^3.0.2",
|
||||
"@types/form-data": "^2.2.1",
|
||||
@ -1537,9 +1537,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"tslint": {
|
||||
"version": "5.18.0",
|
||||
"resolved": "https://verdaccio.lossless.one/tslint/-/tslint-5.18.0.tgz",
|
||||
"integrity": "sha512-Q3kXkuDEijQ37nXZZLKErssQVnwCV/+23gFEMROi8IlbaBG6tXqLPQJ5Wjcyt/yHPKBC+hD5SzuGaMora+ZS6w==",
|
||||
"version": "5.19.0",
|
||||
"resolved": "https://verdaccio.lossless.one/tslint/-/tslint-5.19.0.tgz",
|
||||
"integrity": "sha512-1LwwtBxfRJZnUvoS9c0uj8XQtAnyhWr9KlNvDIdB+oXyT+VpsOAaEhEgKi1HrZ8rq0ki/AAnbGSv4KM6/AfVZw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartproxy",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.13",
|
||||
"private": false,
|
||||
"description": "a proxy for handling high workloads of proxying",
|
||||
"main": "dist/index.js",
|
||||
@ -17,11 +17,11 @@
|
||||
"@gitzone/tstest": "^1.0.15",
|
||||
"@pushrocks/tapbundle": "^3.0.7",
|
||||
"@types/node": "^12.7.2",
|
||||
"tslint": "^5.11.0",
|
||||
"tslint": "^5.19.0",
|
||||
"tslint-config-prettier": "^1.15.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pushrocks/smartrequest": "^1.1.19"
|
||||
"@pushrocks/smartrequest": "^1.1.20"
|
||||
},
|
||||
"files": [
|
||||
"ts/*",
|
||||
|
@ -3,7 +3,7 @@ import * as smartproxy from '../ts/index';
|
||||
|
||||
tap.test('first test', async () => {
|
||||
const testProxy = new smartproxy.SmartProxy();
|
||||
await testProxy.start();
|
||||
// await testProxy.start();
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
5
ts/smartproxy.classes.proxyworker.ts
Normal file
5
ts/smartproxy.classes.proxyworker.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import * as plugins from './smartproxy.plugins';
|
||||
|
||||
export class ProxyWorker {
|
||||
|
||||
}
|
@ -2,6 +2,7 @@ import * as plugins from './smartproxy.plugins';
|
||||
import * as interfaces from './interfaces';
|
||||
|
||||
import { SmartproxyRouter } from './smartproxy.classes.router';
|
||||
import { Socket } from 'net';
|
||||
|
||||
export class SmartProxy {
|
||||
public httpsServer: plugins.https.Server | plugins.http.Server;
|
||||
@ -41,7 +42,7 @@ export class SmartProxy {
|
||||
key: hostCandidate.privateKey
|
||||
}); */
|
||||
}
|
||||
this.httpsServer.on('upgrade', (req, socket) => {
|
||||
this.httpsServer.on('upgrade', (req, socket: Socket) => {
|
||||
|
||||
})
|
||||
this.httpsServer.listen(3000);
|
||||
|
Reference in New Issue
Block a user