UNPKG

@msquared/pixel-streaming-client

Version:

Browser client for viewing pixel-streamed content from MSquared events

87 lines (86 loc) 2.69 kB
{ "name": "@msquared/pixel-streaming-client", "version": "0.14.1", "description": "Browser client for viewing pixel-streamed content from MSquared events", "homepage": "https://github.com/msquared-io/pixel-streaming-client", "license": "MIT", "type": "module", "repository": { "type": "git", "url": "https://github.com/msquared-io/pixel-streaming-client.git" }, "keywords": [ "msquared", "pixel-streaming" ], "files": [ "dist" ], "scripts": { "build": "run-p build:*", "build:cjs": "esbuild ./src/index.ts ./src/errors.ts --outdir=./dist/cjs --platform=node --bundle --external:react", "build:esm": "esbuild ./src/index.ts ./src/errors.ts --outdir=./dist/esm --platform=neutral --bundle --main-fields=main --external:react", "build:script": "esbuild ./src/index.ts --outdir=./dist/script --platform=browser --bundle --minify --target=es6 --format=iife --global-name=MSquaredPixelStreamingClient --external:react", "build:types": "tsc --declarationDir ./dist/types", "clean": "rm -rf ./dist", "hook": "git config core.hooksPath .githooks", "prepare": "npm run build", "prepublishOnly": "run-s ts:validate", "test": "jest", "ts:check": "biome check", "ts:check:fix": "biome check --write", "ts:depcheck": "depcheck", "ts:fmt": "biome format", "ts:fmt:fix": "biome format --write", "ts:lint": "biome lint", "ts:lint:fix": "biome lint --write", "ts:type-check": "tsc --incremental --pretty --noEmit", "ts:validate": "run-s ts:type-check ts:check ts:depcheck test" }, "main": "./dist/script/index.js", "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" }, "./errors": { "types": "./dist/types/errors.d.ts", "import": "./dist/esm/errors.js", "require": "./dist/cjs/errors.js" } }, "dependencies": { "ua-parser-js": "^1.0.41", "uuidv7": "^1.0.2" }, "devDependencies": { "@biomejs/biome": "2.3.10", "@commitlint/cli": "^20.0.0", "@commitlint/config-conventional": "^20.0.0", "@types/jest": "^30.0.0", "@types/react": "^19", "@types/ua-parser-js": "^0.7.39", "depcheck": "^1.4.7", "esbuild": "^0.27.0", "jest": "^30.1.3", "npm-run-all": "^4.1.5", "react": "^19.1.1", "ts-jest": "^29.4.1", "typescript": "^5.9.2" }, "peerDependencies": { "react": "^18.0.0 || ^19.0.0" }, "peerDependenciesMeta": { "react": { "optional": true } }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] } }