BREAKING CHANGE(core): switch to esm
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
// module exports
|
||||
|
||||
export * from './smartpuppeteer.classes.smartpuppeteer';
|
||||
export * from './smartpuppeteer.classes.incognitobrowser';
|
||||
export * from './smartpuppeteer.classes.smartpuppeteer.js';
|
||||
export * from './smartpuppeteer.classes.incognitobrowser.js';
|
||||
|
||||
// direct exports
|
||||
import { puppeteer } from './smartpuppeteer.plugins';
|
||||
import { puppeteer } from './smartpuppeteer.plugins.js';
|
||||
export { puppeteer };
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { getEnvAwareBrowserInstance } from './smartpuppeteer.classes.smartpuppeteer';
|
||||
import * as plugins from './smartpuppeteer.plugins';
|
||||
import { getEnvAwareBrowserInstance } from './smartpuppeteer.classes.smartpuppeteer.js';
|
||||
import * as plugins from './smartpuppeteer.plugins.js';
|
||||
|
||||
export class IncognitoBrowser {
|
||||
public status: 'started' | 'stopped' = 'stopped';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartpuppeteer.plugins';
|
||||
import * as plugins from './smartpuppeteer.plugins.js';
|
||||
|
||||
export interface IEnvAwareOptions {
|
||||
forceNoSandbox?: boolean;
|
||||
@ -7,7 +7,6 @@ export interface IEnvAwareOptions {
|
||||
export const getEnvAwareBrowserInstance = async (
|
||||
optionsArg: IEnvAwareOptions = {}
|
||||
): Promise<plugins.puppeteer.Browser> => {
|
||||
const smartenv = new plugins.smartenv.Smartenv();
|
||||
const options: IEnvAwareOptions = {
|
||||
...{
|
||||
forceNoSandbox: false,
|
||||
|
@ -5,10 +5,9 @@ export { os };
|
||||
|
||||
// @pushrocks scope
|
||||
import * as smartdelay from '@pushrocks/smartdelay';
|
||||
import * as smartenv from '@pushrocks/smartenv';
|
||||
import * as smartshell from '@pushrocks/smartshell';
|
||||
|
||||
export { smartdelay, smartenv, smartshell };
|
||||
export { smartdelay, smartshell };
|
||||
|
||||
// third party scope
|
||||
import puppeteer from 'puppeteer';
|
||||
|
Reference in New Issue
Block a user