UNPKG

@playcanvas/observer

Version:

Generic implementation of the observer pattern

77 lines (76 loc) 2.12 kB
{ "name": "@playcanvas/observer", "version": "1.6.6", "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.23.7", "@babel/eslint-parser": "^7.23.3", "@babel/preset-env": "^7.23.8", "@playcanvas/eslint-config": "2.0.8", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-typescript": "^12.1.2", "@typescript-eslint/parser": "^8.20.0", "chai": "^5.1.1", "eslint": "^8.56.0", "globals": "^15.14.0", "mocha": "^10.4.0", "publint": "^0.2.8", "rollup": "^4.18.0", "typedoc": "^0.25.13", "typedoc-plugin-mdn-links": "^3.1.30", "typedoc-plugin-missing-exports": "^2.3.0", "typescript": "^5.4.5" }, "scripts": { "build": "rollup -c", "build:esm": "rollup -c --environment target:esm", "build:umd": "rollup -c --environment target:umd", "build:types": "tsc -p tsconfig.build.json", "watch": "rollup -c -w", "watch:esm": "rollup -c --environment target:esm -w", "watch:umd": "rollup -c --environment target:umd -w", "docs": "typedoc", "lint": "eslint src rollup.config.mjs eslint.config.mjs", "lint:fix": "eslint src rollup.config.mjs eslint.config.mjs --fix", "type:check": "tsc --noEmit", "publint": "publint", "test": "mocha" }, "engines": { "node": ">=18.0.0" } }