fix(core): update

This commit is contained in:
2023-05-01 14:38:53 +02:00
parent cc5f93305b
commit e87833c59f
15 changed files with 4538 additions and 26593 deletions

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/smartssr',
version: '1.0.36',
description: 'a smart server side renderer supporting shadow dom'
}

View File

@ -1 +1 @@
export * from './smartssr.classes.smartssr';
export * from './smartssr.classes.smartssr.js';

View File

@ -1,7 +1,7 @@
import * as plugins from './smartssr.plugins';
import * as paths from './smartssr.paths';
import * as plugins from './smartssr.plugins.js';
import * as paths from './smartssr.paths.js';
import { serializeFunction } from './smartssr.function.serialize';
import { serializeFunction } from './smartssr.function.serialize.js';
export interface ISmartSSROptions {
debug: boolean;
@ -53,9 +53,9 @@ export class SmartSSR {
});
if (this.options.debug) {
screenshotBuffer = await page.screenshot({
screenshotBuffer = (await page.screenshot({
encoding: 'binary',
}) as Buffer;
})) as Buffer;
}
await page.$eval('body', serializeFunction);

View File

@ -1,5 +1,5 @@
import * as plugins from './smartssr.plugins';
import * as plugins from './smartssr.plugins.js';
export const packageDir = plugins.path.join(__dirname, '../');
export const packageDir = plugins.path.join(plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), '../');
export const noGitDir = plugins.path.join(packageDir, './.nogit');
plugins.smartfile.fs.ensureDirSync(noGitDir);

View File

@ -7,7 +7,8 @@ export { path };
import * as smartdelay from '@pushrocks/smartdelay';
import * as smartfile from '@pushrocks/smartfile';
import * as smartpuppeteer from '@pushrocks/smartpuppeteer';
import * as smartpath from '@pushrocks/smartpath';
import * as smartpromise from '@pushrocks/smartpromise';
import * as smarttime from '@pushrocks/smarttime';
export { smartdelay, smartfile, smartpuppeteer, smartpromise, smarttime };
export { smartdelay, smartfile, smartpath, smartpuppeteer, smartpromise, smarttime };