Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-screen-wake-lock

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-screen-wake-lock - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

dist/react-screen-wake-lock.development.js

60

package.json
{
"name": "react-screen-wake-lock",
"version": "1.1.1",
"version": "1.1.2",
"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.",

@@ -27,5 +27,12 @@ "author": {

],
"main": "dist/index.js",
"module": "dist/react-screen-wake-lock.esm.js",
"typings": "dist/index.d.ts",
"sideEffects": true,
"source": "src/index.ts",
"main": "dist/react-screen-wake-lock.js",
"module": "dist/react-screen-wake-lock.module.js",
"jsnext:main": "dist/react-screen-wake-lock.module.js",
"unpkg": "dist/react-screen-wake-lock.umd.js",
"jsdelivr": "dist/react-screen-wake-lock.umd.js",
"umd:main": "dist/react-screen-wake-lock.umd.js",
"esmodule": "dist/react-screen-wake-lock.modern.js",
"typings": "dist/react-screen-wake-lock.d.ts",
"files": [

@@ -39,7 +46,12 @@ "dist",

"scripts": {
"start": "tsdx watch",
"build": "tsdx build",
"start": "microbundle watch",
"prebuild": "rimraf dist",
"build": "npm-run-all --parallel build:lib build:cjs:*",
"build:lib": "microbundle build -f umd,es,modern",
"build:cjs:entry": "node ./scripts/create-cjs-entry-file.js",
"build:cjs:prod": "microbundle -i src/index.ts -o dist/react-screen-wake-lock.production.js --define process.env.NODE_ENV=production --no-pkg-main -f cjs",
"build:cjs:dev": "microbundle -i src/index.ts -o dist/react-screen-wake-lock.development.js --no-compress --no-pkg-main -f cjs",
"test": "tsdx test --passWithNoTests",
"lint": "tsdx lint",
"prepare": "tsdx build",
"prepare": "yarn build",
"size": "size-limit",

@@ -62,8 +74,12 @@ "analyze": "size-limit --why",

{
"path": "dist/react-screen-wake-lock.cjs.production.min.js",
"limit": "10 KB"
"path": "dist/react-screen-wake-lock.production.js",
"limit": "420 B"
},
{
"path": "dist/react-screen-wake-lock.esm.js",
"limit": "10 KB"
"path": "dist/react-screen-wake-lock.module.js",
"limit": "450 B"
},
{
"path": "dist/react-screen-wake-lock.umd.js",
"limit": "435 B"
}

@@ -74,21 +90,25 @@ ],

"@commitlint/config-angular": "^11.0.0",
"@size-limit/preset-small-lib": "^4.7.0",
"@testing-library/dom": "^7.26.6",
"@testing-library/react": "^11.1.2",
"@size-limit/preset-small-lib": "^4.9.0",
"@testing-library/dom": "^7.28.1",
"@testing-library/react": "^11.2.2",
"@testing-library/react-hooks": "^3.4.2",
"@types/dom-screen-wake-lock": "^1.0.0",
"@types/react": "^16.9.56",
"@types/react-dom": "^16.9.9",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"babel-jest": "^26.6.3",
"husky": "^4.3.0",
"jest-wake-lock-mock": "^1.0.2",
"jest-wake-lock-mock": "^1.1.0",
"microbundle": "^0.12.4",
"npm-run-all": "^4.1.5",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-test-renderer": "^17.0.1",
"size-limit": "^4.7.0",
"rimraf": "^3.0.2",
"semantic-release": "^17.2.4",
"size-limit": "^4.9.0",
"tiny-warning": "^1.0.3",
"tsdx": "^0.14.1",
"tslib": "^2.0.3",
"typescript": "^4.0.5",
"semantic-release": "^17.2.2"
"typescript": "^4.1.2"
}
}

@@ -6,4 +6,4 @@ <h1 align="center">Welcome to react-screen-wake-lock 👋</h1>

<img alt="Codecov" src="https://img.shields.io/codecov/c/github/jorisre/react-screen-wake-lock?style=for-the-badge">
<a href="https://github.com/jorisre/react-screen-wake-lock/blob/master/LICENSE" target="_blank">
<img alt="License: MIT" src="https://img.shields.io/github/license/jorisre/react-screen-wake-lock?style=for-the-badge" />
<a href="https://bundlephobia.com/result?p=react-screen-wake-lock">
<img src="https://img.shields.io/bundlephobia/minzip/react-screen-wake-lock?style=for-the-badge" />
</a>

@@ -21,6 +21,14 @@ <a href="https://twitter.com/_jorisre" target="_blank">

## Prerequisites
## Browser support [Screen Wake Lock API](https://caniuse.com/wake-lock)
- node >=10
`react-screen-wake-lock` use native Screen Wake Lock API under the hood which is not supported by all browsers.
<a href="https://caniuse.com/wake-lock">
<picture>
<source type="image/webp" srcset="https://caniuse.bitsofco.de/image/wake-lock.webp" width="600px">
<source type="image/png" srcset="https://caniuse.bitsofco.de/image/wake-lock.png" width="600px">
<img src="https://caniuse.bitsofco.de/image/wake-lock.jpg" alt="Data on support for the wake-lock feature across the major browsers from caniuse.com" width="600px">
</picture>
</a>
## Install

@@ -96,3 +104,3 @@

Contributions, issues and feature requests are welcome!<br />Feel free to check [issues page](https://github.com/jorisre/react-screen-wake-lock/issues). You can also take a look at the [contributing guide](https://github.com/jorisre/react-screen-wake-lock/blob/master/CONTRIBUTING.md).
Contributions, issues and feature requests are welcome!<br />Feel free to check [issues page](https://github.com/jorisre/react-screen-wake-lock/issues). You can also take a look at the [contributing guide](https://github.com/jorisre/react-screen-wake-lock/blob/master/CONTRIBUTING.md) and [code of conduct](https://github.com/jorisre/react-screen-wake-lock/blob/master/CODE_OF_CONDUCT.md).

@@ -99,0 +107,0 @@ ## Show your support

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc