UNPKG

state-mirror

Version:

Real-time cross-tab/device state synchronization library with plugin support.

96 lines (95 loc) 2.63 kB
{ "name": "state-mirror", "version": "1.0.1", "description": "Real-time cross-tab/device state synchronization library with plugin support.", "main": "dist/index.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "exports": { ".": { "import": "./dist/index.esm.js", "require": "./dist/index.js", "types": "./dist/index.d.ts" }, "./plugins": { "import": "./dist/plugins/index.esm.js", "require": "./dist/plugins/index.js", "types": "./dist/plugins/index.d.ts" }, "./devtools": { "import": "./dist/devtools/index.esm.js", "require": "./dist/devtools/index.js", "types": "./dist/devtools/index.d.ts" } }, "files": [ "dist", "devtools/overlay.html", "devtools/overlay.css" ], "scripts": { "build": "rollup -c", "dev": "rollup -c -w", "test": "jest", "test:watch": "jest --watch", "lint": "eslint src --ext .ts", "type-check": "tsc --noEmit", "clean": "rimraf dist", "prepublishOnly": "npm run clean && npm run build && npm run test", "cli:test": "node dist/cli/test.js", "cli:inspect": "node dist/cli/inspect.js" }, "keywords": [ "state-sync", "cross-tab", "real-time", "broadcast-channel", "firebase", "plugin-system", "conflict-resolution", "typescript" ], "author": "uzair hussain", "license": "MIT", "devDependencies": { "@rollup/plugin-commonjs": "^28.0.6", "@rollup/plugin-node-resolve": "^16.0.1", "@types/fast-json-patch": "^1.0.4", "@types/jest": "^29.5.0", "@types/lodash": "^4.14.195", "@types/node": "^20.0.0", "@types/uuid": "^9.0.0", "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.0.0", "jest": "^29.5.0", "jest-environment-jsdom": "^30.0.2", "rimraf": "^5.0.0", "rollup": "^3.25.0", "rollup-plugin-typescript2": "^0.35.0", "ts-jest": "^29.1.0", "typescript": "^5.0.0" }, "dependencies": { "fast-json-patch": "^3.1.1", "firebase": "^10.0.0", "idb": "^7.1.1", "lodash": "^4.17.21", "uuid": "^9.0.0", "zod": "^3.21.0" }, "peerDependencies": { "firebase": "^10.0.0" }, "engines": { "node": ">=16.0.0" }, "repository": { "type": "git", "url": "git+https://github.com/hussainu6/state-mirror.git" }, "bugs": { "url": "https://github.com/hussainu6/state-mirror/issues" }, "homepage": "https://github.com/hussainu6/state-mirror#readme" }