Skip to content

Commit

Permalink
[add] Wake Lock polyfill
Browse files Browse the repository at this point in the history
[optimize] update Upstream packages
  • Loading branch information
TechQuery committed May 10, 2024
1 parent b6c312e commit fedc951
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 34 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-polyfill",
"version": "0.6.9",
"version": "0.6.10",
"license": "AGPL-3.0",
"author": "[email protected]",
"description": "An automatic CDN service for Web polyfills, which is based on TypeScript, Node.js & JSDelivr.",
Expand Down Expand Up @@ -33,11 +33,11 @@
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/node": "^18.19.31",
"@types/node": "^18.19.33",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"tsx": "^4.9.1",
"tsx": "^4.9.4",
"typescript": "~5.4.5"
},
"prettier": {
Expand Down
62 changes: 31 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions source/list/BOM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,13 @@ export class Share extends Polyfill {
return navigator.share instanceof Function;
};
}

export class WakeLock extends Polyfill {
packageName = 'wakelock-lazy-polyfill';

dependencies = [new ECMAScript6()];

detect = function () {
return navigator.wakeLock instanceof Object;
};
}

0 comments on commit fedc951

Please sign in to comment.