{
  "name": "@onting/selenium-webdriver-message-port",
  "version": "0.3.0",
  "description": "MessagePort for passing bidirectional messages between WebDriver host and browser",
  "homepage": "https://github.com/teamonting/selenium-webdriver-message-port#readme",
  "publishConfig": {
    "access": "public"
  },
  "bugs": {
    "url": "https://github.com/teamonting/selenium-webdriver-message-port/issues"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/teamonting/selenium-webdriver-message-port.git"
  },
  "license": "MIT",
  "author": "",
  "type": "module",
  "main": "./dist/index.js",
  "typings": "./dist/index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "default": "./dist/index.js"
    },
    "./browser.js": {
      "types": "./static/browser.d.ts",
      "default": "./static/browser.js"
    },
    "./host.js": {
      "types": "./dist/host.d.ts",
      "default": "./dist/host.js"
    }
  },
  "files": [
    "./*.js",
    "./CHANGELOG.md",
    "./dist/",
    "./static/"
  ],
  "scripts": {
    "build": "tsup",
    "bump": "npm run bump:prod && npm run bump:dev",
    "bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
    "bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
    "init": "npm run init:dev --if-present && npm run init:prod --if-present",
    "init:dev": "npm install --save-dev @onting/test-harness@0.0.0-0 @tsconfig/recommended @tsconfig/strictest @types/node escape-string-regexp expect publint tsup typescript",
    "precommit": "npm run precommit:eslint && npm run precommit:publint && npm run precommit:typescript:production && npm run precommit:typescript:test",
    "precommit:eslint": "ESLINT_USE_FLAT_CONFIG=false eslint ./src/",
    "precommit:publint": "publint",
    "precommit:typescript:production": "tsc --noEmit --project ./src/tsconfig.precommit.production.json",
    "precommit:typescript:test": "tsc --noEmit --project ./src/tsconfig.precommit.test.json",
    "prepack": "cp ../../CHANGELOG.md . && cp ../../LICENSE . && cp ../../README.md .",
    "start": "npm run build -- --onSuccess \"touch ../pages/package.json\" --watch",
    "switch": "cat package.json | jq --arg SWITCH_NAME $SWITCH_NAME -r '(.[\"switch:\" + $SWITCH_NAME] // {}) as $TEMPLATE | .devDependencies += ($TEMPLATE.devDependencies // {}) | .dependencies += ($TEMPLATE.dependencies // {})' | tee ./package.json.tmp && mv ./package.json.tmp ./package.json",
    "test": "npm run test:unit && npm run test:types",
    "test:types": "node --experimental-strip-types --import @onting/test-harness/test-types.import --test **/*.test-types.ts",
    "test:unit": "node --experimental-strip-types --experimental-test-coverage --experimental-test-isolation=none --test"
  },
  "pinDependencies": {},
  "devDependencies": {
    "@onting/common": "^0.0.0-0",
    "@onting/test-harness": "^0.0.0-0",
    "@tsconfig/recommended": "^1.0.13",
    "@tsconfig/strictest": "^2.0.8",
    "@types/node": "^25.9.1",
    "escape-string-regexp": "^4.0.0",
    "expect": "^30.4.1",
    "publint": "^0.3.21",
    "tsup": "^8.5.1",
    "typescript": "^6.0.3"
  },
  "localPeerDependencies": {
    "@onting/test-harness": "0.0.0-0"
  },
  "dependencies": {
    "@onting/selenium-webdriver-message-port": "^0.3.0",
    "@ungap/structured-clone": "^1.3.1",
    "uuid": "^14.0.0",
    "valibot": "^1.4.1",
    "workthru": "^0.1.0"
  },
  "peerDependencies": {
    "selenium-webdriver": ">=4.44.0"
  }
}
