@blitzbrowser/blitzbrowser 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,9 @@ services:
10
10
  command: server --console-address ":9001" /data
11
11
  restart: always
12
12
  blitzbrowser:
13
- image: sha256:75beb3e809758401bf3520576083f4a8d8094628cb0d61058be56de7cb1fbe32
13
+ build:
14
+ context: .
15
+ dockerfile: Dockerfile
14
16
  command: node ./dist/main.js
15
17
  ports:
16
18
  - "9999:9999"
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@blitzbrowser/blitzbrowser",
3
- "version": "1.1.0",
4
- "description": "Deploying, scaling and managing browsers at scale.",
3
+ "version": "1.1.2",
4
+ "description": "Deploying, scaling and managing headful browsers in docker.",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
7
7
  "dependencies": {
8
8
  "@aws-sdk/client-s3": "^3.911.0",
9
- "@blitzbrowser/tunnel": "2.0.2",
9
+ "@blitzbrowser/tunnel": "2.0.3",
10
10
  "@nestjs/common": "^10.0.0",
11
11
  "@nestjs/core": "^10.0.0",
12
12
  "@nestjs/platform-express": "^10.0.0",
@@ -62,7 +62,7 @@
62
62
  "testEnvironment": "node"
63
63
  },
64
64
  "scripts": {
65
- "build": "rm -r ./dist && nest build",
65
+ "build": "rm -rf ./dist && nest build",
66
66
  "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
67
67
  "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix"
68
68
  }
@@ -48,7 +48,7 @@ interface BrowserInstanceEvents {
48
48
  terminated: [];
49
49
  }
50
50
 
51
- interface ConnectionOptions {
51
+ export interface ConnectionOptions {
52
52
  timezone?: string;
53
53
  proxy_url?: string;
54
54
  user_data_id?: string;
@@ -401,7 +401,7 @@ export class BrowserInstance extends EventEmitter<BrowserInstanceEvents> {
401
401
 
402
402
  this.#browser_instance_process = spawn(
403
403
  `tini`,
404
- ['-s', `--`, `node`, `./dist/components/browser-instance.process.js`],
404
+ ['-s', `--`, `node`, `${__dirname}/../../dist/components/browser-instance.process.js`],
405
405
  {
406
406
  stdio: ['pipe', 'pipe', 'pipe', 'ipc'],
407
407
  env: {
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BrowserInstance, BrowserInstanceEvent, BrowserInstanceRequestEvent, BrowserInstanceStatus, BrowserInstanceStatusEvent, CDPCloseEvent, CDPTerminatedEvent, ConnectionOptionsEvent } from "./components/browser-instance.component";
1
+ import { BrowserInstance, BrowserInstanceEvent, BrowserInstanceRequestEvent, BrowserInstanceStatus, BrowserInstanceStatusEvent, CDPCloseEvent, CDPTerminatedEvent, ConnectionOptions, ConnectionOptionsEvent } from "./components/browser-instance.component";
2
2
  import { StatusController } from './controllers/status.controller';
3
3
  import { UserDataService } from './services/user-data.service';
4
4
  import { BrowserPoolService, BrowserPoolStatus } from './services/browser-pool.service';
@@ -7,6 +7,7 @@ import { CDPController } from './controllers/cdp.controller';
7
7
  import LimitStream from "./transforms/limit-stream";
8
8
 
9
9
  export {
10
+ ConnectionOptions,
10
11
  ConnectionOptionsEvent,
11
12
  CDPCloseEvent,
12
13
  CDPTerminatedEvent,