UNPKG

react-screen-wake-lock

Version:

React implementation of the Screen Wake Lock API. It provides a way to prevent devices from dimming or locking the screen when an application needs to keep running.

98 lines (97 loc) 2.75 kB
{ "name": "react-screen-wake-lock", "version": "3.1.0", "description": "React implementation of the Screen Wake Lock API. It provides a way to prevent devices from dimming or locking the screen when an application needs to keep running.", "author": { "name": "Joris", "email": "me@joris.re", "url": "https://joris.re" }, "license": "MIT", "homepage": "https://github.com/jorisre/react-screen-wake-lock#readme", "repository": { "type": "git", "url": "https://github.com/jorisre/react-screen-wake-lock.git" }, "bugs": { "url": "https://github.com/jorisre/react-screen-wake-lock/issues" }, "keywords": [ "wakeLock", "wake-lock", "react", "hook", "Screen Wake Lock", "navigator.wakeLock" ], "sideEffects": false, "type": "module", "source": "src/index.ts", "main": "dist/react-screen-wake-lock.cjs", "nodule": "./dist/react-screen-wake-lock.esm.js", "exports": { "types": "./dist/index.d.ts", "require": "./dist/react-screen-wake-lock.cjs", "default": "./dist/react-screen-wake-lock.esm.js" }, "umd:main": "dist/react-screen-wake-lock.umd.js", "unpkg": "dist/react-screen-wake-lock.umd.js", "typings": "dist/index.d.ts", "files": [ "dist", "src" ], "engines": { "node": ">=v14.21.3" }, "scripts": { "prepare": "husky install", "prepack": "pinst --disable", "postpack": "pinst --enable", "start": "microbundle watch", "prebuild": "rimraf dist", "build": "npm-run-all --parallel build:*", "build:other": "microbundle --define process.env.NODE_ENV=production -f cjs,umd", "build:es": "microbundle -f es", "test": "jest", "lint": "eslint --ignore-path .gitignore --ext .ts,.tsx ." }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "devDependencies": { "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.2.0", "@types/dom-screen-wake-lock": "^1.0.3", "@types/jest": "^29.5.4", "@types/react": "^18.2.21", "@types/react-dom": "^18.2.7", "@typescript-eslint/eslint-plugin": "^6.7.0", "@typescript-eslint/parser": "^6.7.0", "eslint": "^8.49.0", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-testing-library": "^6.0.1", "husky": "^8.0.3", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "jest-wake-lock-mock": "^1.1.0", "microbundle": "^0.15.1", "nano-staged": "^0.8.0", "npm-run-all": "^4.1.5", "pinst": "^3.0.0", "prettier": "^3.0.3", "react": "^19.0.0", "react-dom": "^19.0.0", "react-test-renderer": "18.2.0", "rimraf": "^5.0.1", "ts-jest": "^29.1.1", "ts-node": "^10.9.1", "typescript": "^5.2.2" }, "nano-staged": { "*.{ts,tsx}": "eslint --fix", "*.{js,css,md}": "prettier --write" }, "dependencies": {} }