UNPKG

@playcanvas/observer

Version:

Generic implementation of the observer pattern

79 lines (78 loc) 2.21 kB
{ "name": "@playcanvas/observer", "version": "1.7.1", "author": "PlayCanvas <support@playcanvas.com>", "homepage": "https://github.com/playcanvas/observer#readme", "description": "Generic implementation of the observer pattern", "keywords": [ "playcanvas", "observer" ], "license": "MIT", "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./types/index.d.ts", "exports": { ".": { "types": "./types/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.cjs" } }, "type": "module", "bugs": { "url": "https://github.com/playcanvas/observer/issues" }, "repository": { "type": "git", "url": "git+https://github.com/playcanvas/observer.git" }, "files": [ "dist/index.cjs", "dist/index.js", "dist/index.mjs", "types", "LICENSE", "package.json", "README.md" ], "devDependencies": { "@babel/core": "7.28.5", "@babel/eslint-parser": "7.28.5", "@babel/preset-env": "7.28.5", "@playcanvas/eslint-config": "2.1.0", "@rollup/plugin-babel": "6.1.0", "@rollup/plugin-typescript": "12.3.0", "@typescript-eslint/eslint-plugin": "8.52.0", "@typescript-eslint/parser": "8.52.0", "chai": "6.2.2", "eslint": "9.39.2", "globals": "17.0.0", "mocha": "11.7.5", "publint": "0.3.16", "rollup": "4.55.1", "tslib": "2.8.1", "typedoc": "0.28.15", "typedoc-plugin-mdn-links": "5.0.10", "typedoc-plugin-missing-exports": "4.1.2", "typescript": "5.9.3" }, "scripts": { "build": "rollup -c && npm run build:types", "build:esm": "rollup -c --environment target:esm", "build:umd": "rollup -c --environment target:umd", "build:types": "tsc -p tsconfig.build.json", "docs": "typedoc", "lint": "eslint src test rollup.config.mjs eslint.config.mjs", "lint:fix": "eslint src test rollup.config.mjs eslint.config.mjs --fix", "publint": "publint", "test": "mocha", "type:check": "tsc --noEmit", "watch": "rollup -c -w", "watch:esm": "rollup -c --environment target:esm -w", "watch:umd": "rollup -c --environment target:umd -w" }, "engines": { "node": ">=18.0.0" } }