@browserbasehq/stagehand 3.0.8-stable-1 → 3.0.8

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.js +16 -5
  3. package/package.json +18 -18
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Browserbase Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -200,7 +200,7 @@ var init_zodCompat = __esm({
200
200
  var STAGEHAND_VERSION;
201
201
  var init_version = __esm({
202
202
  "lib/version.ts"() {
203
- STAGEHAND_VERSION = "3.0.8-stable-1";
203
+ STAGEHAND_VERSION = "3.0.8";
204
204
  }
205
205
  });
206
206
 
@@ -18942,10 +18942,9 @@ var require_buffer_equal_constant_time = __commonJS({
18942
18942
  }
18943
18943
  });
18944
18944
 
18945
- // ../../node_modules/.pnpm/jwa@2.0.0/node_modules/jwa/index.js
18945
+ // ../../node_modules/.pnpm/jwa@2.0.1/node_modules/jwa/index.js
18946
18946
  var require_jwa = __commonJS({
18947
- "../../node_modules/.pnpm/jwa@2.0.0/node_modules/jwa/index.js"(exports2, module2) {
18948
- var bufferEqual = require_buffer_equal_constant_time();
18947
+ "../../node_modules/.pnpm/jwa@2.0.1/node_modules/jwa/index.js"(exports2, module2) {
18949
18948
  var Buffer5 = require_safe_buffer().Buffer;
18950
18949
  var crypto2 = require("crypto");
18951
18950
  var formatEcdsa = require_ecdsa_sig_formatter();
@@ -19049,10 +19048,22 @@ var require_jwa = __commonJS({
19049
19048
  return fromBase64(sig);
19050
19049
  };
19051
19050
  }
19051
+ var bufferEqual;
19052
+ var timingSafeEqual = "timingSafeEqual" in crypto2 ? function timingSafeEqual2(a, b) {
19053
+ if (a.byteLength !== b.byteLength) {
19054
+ return false;
19055
+ }
19056
+ return crypto2.timingSafeEqual(a, b);
19057
+ } : function timingSafeEqual2(a, b) {
19058
+ if (!bufferEqual) {
19059
+ bufferEqual = require_buffer_equal_constant_time();
19060
+ }
19061
+ return bufferEqual(a, b);
19062
+ };
19052
19063
  function createHmacVerifier(bits) {
19053
19064
  return function verify(thing, signature, secret) {
19054
19065
  var computedSig = createHmacSigner(bits)(thing, secret);
19055
- return bufferEqual(Buffer5.from(signature), Buffer5.from(computedSig));
19066
+ return timingSafeEqual(Buffer5.from(signature), Buffer5.from(computedSig));
19056
19067
  };
19057
19068
  }
19058
19069
  function createKeySigner(bits) {
package/package.json CHANGED
@@ -1,25 +1,10 @@
1
1
  {
2
2
  "name": "@browserbasehq/stagehand",
3
- "version": "3.0.8-stable-1",
3
+ "version": "3.0.8",
4
4
  "description": "An AI web browsing framework focused on simplicity and extensibility.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
- "scripts": {
9
- "gen-version": "tsx scripts/gen-version.ts",
10
- "build-dom-scripts": "tsx lib/v3/dom/genDomScripts.ts && tsx lib/v3/dom/genLocatorScripts.ts && tsx lib/v3/dom/genA11yScripts.ts",
11
- "build-js": "tsup --entry.index lib/v3/index.ts --dts",
12
- "typecheck": "tsc --noEmit",
13
- "build": "pnpm run gen-version && pnpm run build-dom-scripts && pnpm run build-js && pnpm run typecheck",
14
- "example": "node --import tsx -e \"const args=process.argv.slice(1).filter(a=>a!=='--'); const [p]=args; const n=(p||'example').replace(/^\\.\\//,'').replace(/\\.ts$/i,''); import(new URL(require('node:path').resolve('examples', n + '.ts'), 'file:'));\" --",
15
- "test": "playwright test --config=lib/v3/tests/v3.playwright.config.ts",
16
- "e2e": "playwright test --config=lib/v3/tests/v3.local.playwright.config.ts",
17
- "e2e:local": "playwright test --config=lib/v3/tests/v3.local.playwright.config.ts",
18
- "e2e:bb": "playwright test --config=lib/v3/tests/v3.bb.playwright.config.ts",
19
- "lint": "cd ../.. && prettier --check packages/core && cd packages/core && eslint .",
20
- "format": "prettier --write .",
21
- "test:vitest": "turbo run build && vitest run --config vitest.config.ts"
22
- },
23
8
  "files": [
24
9
  "dist/index.js",
25
10
  "dist/index.d.ts",
@@ -106,5 +91,20 @@
106
91
  "bugs": {
107
92
  "url": "https://github.com/browserbase/stagehand/issues"
108
93
  },
109
- "homepage": "https://stagehand.dev"
110
- }
94
+ "homepage": "https://stagehand.dev",
95
+ "scripts": {
96
+ "gen-version": "tsx scripts/gen-version.ts",
97
+ "build-dom-scripts": "tsx lib/v3/dom/genDomScripts.ts && tsx lib/v3/dom/genLocatorScripts.ts && tsx lib/v3/dom/genA11yScripts.ts",
98
+ "build-js": "tsup --entry.index lib/v3/index.ts --dts",
99
+ "typecheck": "tsc --noEmit",
100
+ "build": "pnpm run gen-version && pnpm run build-dom-scripts && pnpm run build-js && pnpm run typecheck",
101
+ "example": "node --import tsx -e \"const args=process.argv.slice(1).filter(a=>a!=='--'); const [p]=args; const n=(p||'example').replace(/^\\.\\//,'').replace(/\\.ts$/i,''); import(new URL(require('node:path').resolve('examples', n + '.ts'), 'file:'));\" --",
102
+ "test": "playwright test --config=lib/v3/tests/v3.playwright.config.ts",
103
+ "e2e": "playwright test --config=lib/v3/tests/v3.local.playwright.config.ts",
104
+ "e2e:local": "playwright test --config=lib/v3/tests/v3.local.playwright.config.ts",
105
+ "e2e:bb": "playwright test --config=lib/v3/tests/v3.bb.playwright.config.ts",
106
+ "lint": "cd ../.. && prettier --check packages/core && cd packages/core && eslint .",
107
+ "format": "prettier --write .",
108
+ "test:vitest": "turbo run build && vitest run --config vitest.config.ts"
109
+ }
110
+ }