fix(core): update

This commit is contained in:
Philipp Kunz 2021-08-20 18:23:39 +02:00
parent ca51c9e15b
commit 994a1bc98d
3 changed files with 15484 additions and 2453 deletions

17889
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -18,21 +18,21 @@
"build": "(tsbuild --web)" "build": "(tsbuild --web)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.25", "@gitzone/tsbuild": "^2.1.26",
"tslint": "^6.1.3", "tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0" "tslint-config-prettier": "^1.18.0"
}, },
"dependencies": { "dependencies": {
"@gitzone/tsbundle": "^1.0.80", "@gitzone/tsbundle": "^1.0.84",
"@gitzone/tsrun": "^1.2.12", "@gitzone/tsrun": "^1.2.17",
"@pushrocks/consolecolor": "^2.0.1", "@pushrocks/consolecolor": "^2.0.1",
"@pushrocks/smartbrowser": "^1.0.17", "@pushrocks/smartbrowser": "^1.0.17",
"@pushrocks/smartdelay": "^2.0.10", "@pushrocks/smartdelay": "^2.0.13",
"@pushrocks/smartexpress": "^3.0.100", "@pushrocks/smartexpress": "^3.0.102",
"@pushrocks/smartfile": "^8.0.10", "@pushrocks/smartfile": "^8.0.10",
"@pushrocks/smartlog": "^2.0.39", "@pushrocks/smartlog": "^2.0.44",
"@pushrocks/smartpromise": "^3.1.5", "@pushrocks/smartpromise": "^3.1.6",
"@pushrocks/smartshell": "^2.0.25", "@pushrocks/smartshell": "^2.0.28",
"@pushrocks/tapbundle": "^3.2.14", "@pushrocks/tapbundle": "^3.2.14",
"@types/figures": "^3.0.1", "@types/figures": "^3.0.1",
"figures": "^3.0.0" "figures": "^3.0.0"

View File

@ -100,7 +100,7 @@ export class TsTest {
// lets bundle the test // lets bundle the test
await plugins.smartfile.fs.ensureDir(tsbundleCacheDirPath); await plugins.smartfile.fs.ensureDir(tsbundleCacheDirPath);
await this.tsbundleInstance.buildTest(fileNameArg, bundleFilePath, 'parcel'); await this.tsbundleInstance.buildTest(process.cwd(), fileNameArg, bundleFilePath, 'parcel');
// lets create a server // lets create a server
const server = new plugins.smartexpress.Server({ const server = new plugins.smartexpress.Server({
@ -132,7 +132,7 @@ export class TsTest {
const evaluation = await this.smartbrowserInstance.evaluateOnPage( const evaluation = await this.smartbrowserInstance.evaluateOnPage(
`http://localhost:3007/test?bundleName=${bundleFileName}`, `http://localhost:3007/test?bundleName=${bundleFileName}`,
async () => { async () => {
const convertToText = (obj) => { const convertToText = (obj: any): string => {
// create an array that will later be joined into a string. // create an array that will later be joined into a string.
const stringArray = []; const stringArray = [];
@ -198,8 +198,8 @@ export class TsTest {
console.error(err); console.error(err);
} }
if (globalThis.tapbundleDeferred && globalThis.tapbundleDeferred.promise) { if ((globalThis as any).tapbundleDeferred && (globalThis as any).tapbundleDeferred.promise) {
await globalThis.tapbundleDeferred.promise; await (globalThis as any).tapbundleDeferred.promise;
} else { } else {
console.log('Error: Could not find tapbundle Deferred'); console.log('Error: Could not find tapbundle Deferred');
} }