Skip to content

Commit 30ffec7

Browse files
committed
feat(replay): update for mac silicon + deps
1 parent 94226b2 commit 30ffec7

File tree

19 files changed

+3043
-3037
lines changed

19 files changed

+3043
-3037
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ module.exports = {
2929
'plugin:jest/recommended',
3030
'plugin:promise/recommended',
3131
'prettier',
32-
'prettier/@typescript-eslint',
3332
'plugin:monorepo-cop/recommended',
3433
'plugin:import/errors',
3534
'plugin:import/warnings',
@@ -177,6 +176,7 @@ module.exports = {
177176
'consistent-return': ['off', { treatUndefinedAsUnspecified: true }],
178177
'spaced-comment': ['error', 'always', { markers: ['/////'] }],
179178
'require-await': 'error',
179+
'arrow-body-style': 'off',
180180
'jest/no-conditional-expect': 'off',
181181
'@typescript-eslint/no-implied-eval': 'off', // false positives for setTimeout with bind fn
182182
'@typescript-eslint/no-explicit-any': 'off',

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SecretAgent is a web browser that's built for scraping.
44

55
- [x] **Built for scraping** - it's the first modern headless browsers designed specifically for scraping instead of just automated testing.
66
- [x] **Designed for web developers** - We've recreated a fully compliant DOM directly in NodeJS allowing you bypass the headaches of previous scraper tools.
7-
- [x] **Powered by Chromium** - The powerful Chromium engine sits under the hood, allowing for lightning fast rendering.
7+
- [x] **Powered by Chrome** - The powerful Chrome engine sits under the hood, allowing for lightning fast rendering.
88
- [x] **Emulates any modern browser** - BrowserEmulators make it easy to disguise your script as practically any browser.
99
- [x] **Avoids detection along the entire stack** - Don't be blocked because of TLS fingerprints in your networking stack.
1010

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@secret-agent/core-interfaces": "1.3.1-alpha.0",
1212
"@secret-agent/replay": "1.3.1-alpha.0",
1313
"awaited-dom": "^1.1.10",
14-
"uuid": "^8.1.0",
14+
"uuid": "^8.3.2",
1515
"ws": "^7.4.2"
1616
},
1717
"devDependencies": {

core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
"awaited-dom": "^1.1.10",
2525
"better-sqlite3": "^7.1.2",
2626
"core-js-bundle": "^3.7.0",
27-
"moment": "^2.24.0",
27+
"moment": "^2.24.1",
2828
"regenerator-runtime": "^0.13.7",
2929
"typeson": "^5.18.2",
3030
"typeson-registry": "^1.0.0-alpha.38",
31-
"uuid": "^8.1.0",
31+
"uuid": "^8.3.2",
3232
"ws": "^7.4.2"
3333
},
3434
"devDependencies": {

emulate-browsers/base/injected-scripts/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ module.exports = {
1313
'func-names': 'off',
1414
'no-restricted-globals': 'off',
1515
'@typescript-eslint/no-unused-vars': 'off',
16+
'prefer-arrow-callback': 'off',
1617
},
1718
};

mitm-socket/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"@secret-agent/commons": "1.3.1-alpha.0",
1313
"@secret-agent/core-interfaces": "1.3.1-alpha.0",
14-
"uuid": "^3.4.0"
14+
"uuid": "^8.3.2"
1515
},
1616
"devDependencies": {
1717
"@secret-agent/testing": "1.3.1-alpha.0",

package.build.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@
77
"test": "cross-env SA_SHOW_REPLAY=false NODE_ENV=test SA_SESSIONS_DIR=.sessions-test jest"
88
},
99
"devDependencies": {
10-
"jest": "^26.1.0",
10+
"jest": "^26.6.3",
1111
"jest-summary-reporter": "^0.0.2",
12-
"jest-environment-node": "^26.1.0",
13-
"jest-junit": "^6.3.0",
12+
"jest-environment-node": "^26.6.2",
1413
"lerna": "^3.4.3",
15-
"rimraf": "^3.0.0",
16-
"source-map-support": "^0.5.16",
14+
"source-map-support": "^0.5.19",
1715
"cross-env": "^7.0.2"
1816
},
1917
"workspaces": {

package.dist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"devDependencies": {
99
"lerna": "^3.4.3",
10-
"source-map-support": "^0.5.16"
10+
"source-map-support": "^0.5.19"
1111
},
1212
"engines": {
1313
"node": ">=13.2.0"

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,26 +42,27 @@
4242
}
4343
},
4444
"devDependencies": {
45-
"@commitlint/cli": "^11.0.0",
46-
"@commitlint/config-conventional": "^9.1.2",
47-
"@types/jest": "^26.0.16",
45+
"@commitlint/cli": "^12.0.1",
46+
"@commitlint/config-conventional": "^12.0.1",
47+
"@types/jest": "^26.0.20",
4848
"@types/node": "^13.13.34",
49+
"@types/fs-extra": "9.0.7",
4950
"@typescript-eslint/eslint-plugin": "^4.14.0",
50-
"@typescript-eslint/parser": "^4.14.0",
51+
"@typescript-eslint/parser": "^4.17.0",
5152
"copyfiles": "^2.4.1",
5253
"cross-env": "^7.0.3",
53-
"eslint": "^7.14.0",
54+
"eslint": "^7.21.0",
5455
"eslint-config-airbnb-typescript": "^12.0.0",
55-
"eslint-config-prettier": "^6.15.0",
56-
"eslint-import-resolver-typescript": "^2.3.0",
56+
"eslint-config-prettier": "^8.1.0",
57+
"eslint-import-resolver-typescript": "^2.4.0",
5758
"eslint-plugin-eslint-comments": "^3.2.0",
5859
"eslint-plugin-import": "^2.22.1",
59-
"eslint-plugin-jest": "^24.1.3",
60+
"eslint-plugin-jest": "^24.2.1",
6061
"eslint-plugin-jsx-a11y": "^6.4.1",
6162
"eslint-plugin-monorepo-cop": "^1.0.2",
62-
"eslint-plugin-prettier": "^3.1.4",
63-
"eslint-plugin-promise": "^4.2.1",
64-
"eslint-plugin-react": "^7.21.5",
63+
"eslint-plugin-prettier": "^3.3.1",
64+
"eslint-plugin-promise": "^4.3.1",
65+
"eslint-plugin-react": "^7.22.0",
6566
"eslint-plugin-react-hooks": "^4.2.0",
6667
"husky": "^4.3.0",
6768
"jest": "^26.6.3",

replay/backend/managers/OverlayManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ export default class OverlayManager {
3737
}
3838

3939
public destroy = () => {
40-
this.browserViews.forEach(x => x.destroy());
40+
this.browserViews.length = 0;
4141
};
4242

4343
public sendToAll = (channel: string, ...args: any[]) => {
44-
this.browserViews.forEach(x => !x.isDestroyed() && x.webContents.send(channel, ...args));
44+
this.browserViews.forEach(x => x?.webContents.send(channel, ...args));
4545
};
4646

4747
public getByName(name: string) {

0 commit comments

Comments
 (0)