fix(core): update

This commit is contained in:
Philipp Kunz 2020-07-08 02:15:14 +00:00
parent 94360ff1da
commit 99afb573cd
4 changed files with 6801 additions and 841 deletions

7612
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -14,11 +14,11 @@
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.24",
"@gitzone/tsbundle": "^1.0.69",
"@gitzone/tstest": "^1.0.33",
"@pushrocks/smartexpress": "^3.0.72",
"@pushrocks/tapbundle": "^3.2.1",
"@types/node": "^14.0.14",
"@gitzone/tsbundle": "^1.0.72",
"@gitzone/tstest": "^1.0.38",
"@pushrocks/smartexpress": "^3.0.73",
"@pushrocks/tapbundle": "^3.2.7",
"@types/node": "^14.0.19",
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.18.0"
},
@ -38,5 +38,8 @@
"cli.js",
"npmextra.json",
"readme.md"
],
"browserslist": [
"last 1 chrome versions"
]
}

16
test/test.browser.ts Normal file
View File

@ -0,0 +1,16 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as webrequest from '../ts/index';
tap.test('first test', async tools => {
const done = tools.defer();
const response = await new webrequest.WebRequest().request([
'https://lossless.com'
], {
method: 'GET'
}).catch(e => {
done.resolve();
});
await done.promise;
});
tap.start();

View File

@ -122,7 +122,6 @@ export class WebRequest {
};
const finalResponse: Response = await doRequest(allUrls[usedUrlIndex]);
console.log(finalResponse);
return finalResponse;
}
}