@crawlee/stagehand 4.0.0-beta.47 → 4.0.0-beta.49
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/index.mjs
CHANGED
|
@@ -77,10 +77,13 @@ export const browserPoolCookieToToughCookie = mod.browserPoolCookieToToughCookie
|
|
|
77
77
|
export const checkAndSerialize = mod.checkAndSerialize;
|
|
78
78
|
export const checkStorageAccess = mod.checkStorageAccess;
|
|
79
79
|
export const chunkBySize = mod.chunkBySize;
|
|
80
|
+
export const coerceBoolean = mod.coerceBoolean;
|
|
81
|
+
export const coerceNumber = mod.coerceNumber;
|
|
80
82
|
export const constructGlobObjectsFromGlobs = mod.constructGlobObjectsFromGlobs;
|
|
81
83
|
export const constructRegExpObjectsFromPseudoUrls = mod.constructRegExpObjectsFromPseudoUrls;
|
|
82
84
|
export const constructRegExpObjectsFromRegExps = mod.constructRegExpObjectsFromRegExps;
|
|
83
85
|
export const cookieStringToToughCookie = mod.cookieStringToToughCookie;
|
|
86
|
+
export const crawleeConfigFields = mod.crawleeConfigFields;
|
|
84
87
|
export const createBasicRouter = mod.createBasicRouter;
|
|
85
88
|
export const createDeserialize = mod.createDeserialize;
|
|
86
89
|
export const createRequestOptions = mod.createRequestOptions;
|
|
@@ -88,6 +91,7 @@ export const createStagehandRouter = mod.createStagehandRouter;
|
|
|
88
91
|
export const deserializeArray = mod.deserializeArray;
|
|
89
92
|
export const enqueueLinks = mod.enqueueLinks;
|
|
90
93
|
export const extractUrlsFromPage = mod.extractUrlsFromPage;
|
|
94
|
+
export const field = mod.field;
|
|
91
95
|
export const filterRequestOptionsByPatterns = mod.filterRequestOptionsByPatterns;
|
|
92
96
|
export const getCookiesFromResponse = mod.getCookiesFromResponse;
|
|
93
97
|
export const getDefaultCookieExpirationDate = mod.getDefaultCookieExpirationDate;
|
|
@@ -62,7 +62,7 @@ exports.StagehandLauncher = StagehandLauncher;
|
|
|
62
62
|
* @ignore
|
|
63
63
|
*/
|
|
64
64
|
function getDefaultExecutablePath(launchContext, config) {
|
|
65
|
-
const pathFromPlaywrightImage = config.
|
|
65
|
+
const pathFromPlaywrightImage = config.defaultBrowserPath;
|
|
66
66
|
const { launchOptions = {} } = launchContext;
|
|
67
67
|
if (launchOptions.executablePath) {
|
|
68
68
|
return launchOptions.executablePath;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stagehand-launcher.js","sourceRoot":"","sources":["../../src/internals/stagehand-launcher.ts"],"names":[],"mappings":";;;;AACA,8CAAkE;AAClE,oDAAoB;AAIpB,yDAAqD;AAoDrD;;;;;GAKG;AACH,MAAa,iBAAkB,SAAQ,yBAAgC;IAe7C;IAdZ,MAAM,CAAU,YAAY,GAAG;QACrC,GAAG,yBAAe,CAAC,YAAY;QAC/B,QAAQ,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;QAC5B,oBAAoB,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;QACxC,gBAAgB,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;KACvC,CAAC;IAEe,gBAAgB,CAAmB;IAEpD;;OAEG;IACH,YACI,gBAAwC,EAAE,EACxB,SAAS,uBAAa,CAAC,eAAe,EAAE;QAE1D,IAAA,YAAE,EAAC,aAAa,EAAE,wBAAwB,EAAE,YAAE,CAAC,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC;QAElG,MAAM,EACF,QAAQ,GAAG,yBAAe,CAAC,sBAAsB,CAC7C,YAAY,EACZ,+BAA+B,CAClC,CAAC,QAAQ,EACV,gBAAgB,GAAG,EAAE,GACxB,GAAG,aAAa,CAAC;QAElB,MAAM,EAAE,aAAa,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,aAAa,CAAC;QAEtD,kDAAkD;QAClD,KAAK,CACD;YACI,GAAG,IAAI;YACP,aAAa,EAAE;gBACX,GAAG,aAAa;gBAChB,cAAc,EAAE,wBAAwB,CAAC,aAA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C;QAC/B,OAAO,aAAa,CAAC,cAAc,CAAC;IACxC,CAAC;IAED,IAAI,aAAa,CAAC,SAAS,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,IAAI,uBAAuB,EAAE,CAAC;QAC1B,OAAO,uBAAuB,CAAC;IACnC,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/stagehand",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.49",
|
|
4
4
|
"description": "AI-powered web crawling with Stagehand integration for Crawlee - enables natural language browser automation with act(), extract(), and observe() methods.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"homepage": "https://crawlee.dev",
|
|
49
49
|
"scripts": {
|
|
50
|
-
"build": "
|
|
50
|
+
"build": "pnpm clean && pnpm compile && pnpm copy",
|
|
51
51
|
"clean": "rimraf ./dist",
|
|
52
52
|
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./index.js ./index.mjs",
|
|
53
53
|
"copy": "tsx ../../scripts/copy.ts"
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@apify/timeout": "^0.3.2",
|
|
60
|
-
"@crawlee/browser": "4.0.0-beta.
|
|
61
|
-
"@crawlee/browser-pool": "4.0.0-beta.
|
|
62
|
-
"@crawlee/core": "4.0.0-beta.
|
|
63
|
-
"@crawlee/types": "4.0.0-beta.
|
|
64
|
-
"@crawlee/utils": "4.0.0-beta.
|
|
60
|
+
"@crawlee/browser": "4.0.0-beta.49",
|
|
61
|
+
"@crawlee/browser-pool": "4.0.0-beta.49",
|
|
62
|
+
"@crawlee/core": "4.0.0-beta.49",
|
|
63
|
+
"@crawlee/types": "4.0.0-beta.49",
|
|
64
|
+
"@crawlee/utils": "4.0.0-beta.49",
|
|
65
65
|
"ow": "^2.0.0",
|
|
66
66
|
"tslib": "^2.8.1"
|
|
67
67
|
},
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "d07dcab780e597a741a9cc8c21e1495c08e8971a"
|
|
97
97
|
}
|