New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zodash/doreamon

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zodash/doreamon - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.1.8](https://github.com/zcorky/zodash/compare/@zodash/doreamon@0.1.7...@zodash/doreamon@0.1.8) (2020-09-25)
**Note:** Version bump only for package @zodash/doreamon
## [0.1.7](https://github.com/zcorky/zodash/compare/@zodash/doreamon@0.1.6...@zodash/doreamon@0.1.7) (2020-09-23)

@@ -8,0 +16,0 @@

2

lib/dom/$/index.d.ts

@@ -14,4 +14,6 @@ export declare type Selector = string;

clipToClipboard(text: string): Promise<void>;
onPageHide(cb: Function): Unsubscibe;
onPageShow(cb: Function): Unsubscibe;
}
declare const $: DOMUtils;
export default $;

@@ -112,3 +112,25 @@ "use strict";

}
$.onPageHide = (cb) => {
const handler = () => {
if (document.visibilityState === 'hidden') {
return cb && cb();
}
};
document.addEventListener('visibilitychange', handler);
return () => {
document.removeEventListener('visibilitychange', handler);
};
};
$.onPageShow = (cb) => {
const handler = () => {
if (document.visibilityState === 'visible') {
return cb && cb();
}
};
document.addEventListener('visibilitychange', handler);
return () => {
document.removeEventListener('visibilitychange', handler);
};
};
exports.default = $;
//# sourceMappingURL=index.js.map

6

package.json
{
"name": "@zodash/doreamon",
"version": "0.1.7",
"version": "0.1.8",
"description": "utils like a doreamon",

@@ -71,3 +71,3 @@ "keywords": [

"@zcorky/deep-equal": "^0.0.1",
"@zcorky/device": "^0.0.1",
"@zcorky/device": "^0.0.3",
"@zcorky/fz": "^1.2.1",

@@ -98,3 +98,3 @@ "@zcorky/is": "^1.0.7",

},
"gitHead": "2f24cf8a407a9fccc62955bc8703bc2cb6c8ef7c"
"gitHead": "d0ba30070d7dfcf05f975b434c26d181617f18fc"
}

Sorry, the diff of this file is not supported yet

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