@tileflow/capture 0.1.0-alpha.34 → 0.1.0-alpha.35
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.
- package/README.md +3 -0
- package/dist/index.js +24 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -25,6 +25,9 @@ and a system Chrome installation is not a substitute. `allowBrowserInstall: true
|
|
|
25
25
|
first-use download. Provision the matching shell and system libraries ahead of time in restricted
|
|
26
26
|
CI environments; never assume that installing the npm package installed the browser.
|
|
27
27
|
|
|
28
|
+
On Windows, Capture disables Chromium's TCP port randomization to avoid intermittent loopback
|
|
29
|
+
connection failures, preserving Playwright's other launch defaults and sandboxing.
|
|
30
|
+
|
|
28
31
|
Local capture needs no Tileflow API key. Configs are executable trusted code; remote tiles, fonts,
|
|
29
32
|
and sprites may still require network access and their own permissions.
|
|
30
33
|
|
package/dist/index.js
CHANGED
|
@@ -204,9 +204,32 @@ var TileflowCaptureBrowserManager = class {
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
+
var windowsChromiumDisabledFeatures = [
|
|
208
|
+
"AvoidUnnecessaryBeforeUnloadCheckSync",
|
|
209
|
+
"BoundaryEventDispatchTracksNodeRemoval",
|
|
210
|
+
"DestroyProfileOnBrowserClose",
|
|
211
|
+
"DialMediaRouteProvider",
|
|
212
|
+
"GlobalMediaControls",
|
|
213
|
+
"HttpsUpgrades",
|
|
214
|
+
"LensOverlay",
|
|
215
|
+
"MediaRouter",
|
|
216
|
+
"PaintHolding",
|
|
217
|
+
"ThirdPartyStoragePartitioning",
|
|
218
|
+
"BlockOriginHeaderModificationOnRedirect",
|
|
219
|
+
"Translate",
|
|
220
|
+
"AutoDeElevate",
|
|
221
|
+
"OptimizationHints",
|
|
222
|
+
"msForceBrowserSignIn",
|
|
223
|
+
"msEdgeUpdateLaunchServicesPreferredVersion",
|
|
224
|
+
// Avoid intermittent Windows loopback failures: https://issues.chromium.org/issues/572515601.
|
|
225
|
+
"TcpPortRandomizationWin"
|
|
226
|
+
];
|
|
207
227
|
function launchPinnedBrowser() {
|
|
208
228
|
return chromium.launch({
|
|
209
|
-
args: [
|
|
229
|
+
args: [
|
|
230
|
+
"--disable-dev-shm-usage",
|
|
231
|
+
...process.platform === "win32" ? [`--disable-features=${windowsChromiumDisabledFeatures.join(",")}`] : []
|
|
232
|
+
],
|
|
210
233
|
chromiumSandbox: true,
|
|
211
234
|
env: createTileflowCaptureBrowserEnvironment(),
|
|
212
235
|
handleSIGHUP: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tileflow/capture",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.35",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Deterministic local visual capture and comparison for Tileflow maps.",
|
|
6
6
|
"engines": {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@tileflow/core": ">=0.1.0-alpha.
|
|
52
|
-
"@tileflow/dev": ">=0.1.0-alpha.
|
|
51
|
+
"@tileflow/core": ">=0.1.0-alpha.41 <0.1.0-beta.0",
|
|
52
|
+
"@tileflow/dev": ">=0.1.0-alpha.38 <0.1.0-beta.0",
|
|
53
53
|
"maplibre-gl": "6.13.0",
|
|
54
54
|
"pixelmatch": "7.2.0",
|
|
55
55
|
"playwright": "1.62.1",
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
"vite": "^8.3.4",
|
|
69
69
|
"vue": "^3.5.43",
|
|
70
70
|
"webpack": "5.108.3",
|
|
71
|
-
"@tileflow/maps": "0.1.0-alpha.
|
|
71
|
+
"@tileflow/maps": "0.1.0-alpha.15",
|
|
72
72
|
"@tileflow/next": "0.1.0-alpha.25",
|
|
73
73
|
"@tileflow/react": "0.1.0-alpha.35",
|
|
74
|
+
"@tileflow/svelte": "0.1.0-alpha.33",
|
|
74
75
|
"@tileflow/vite": "0.1.0-alpha.25",
|
|
75
76
|
"@tileflow/vue": "0.1.0-alpha.33",
|
|
76
|
-
"@tileflow/svelte": "0.1.0-alpha.33",
|
|
77
77
|
"@tileflow/webpack": "0.1.0-alpha.25"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|