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

strictdom

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strictdom - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json

@@ -34,3 +34,3 @@ {

},
"version": "1.0.0"
"version": "1.0.1"
}

@@ -11,3 +11,3 @@ !(function() {

*/
var isWebkit = !!window.webkitURL;
// var isWebkit = !!window.webkitURL;

@@ -168,38 +168,38 @@ /**

innerWidth: {
type: isWebkit ? Value : Measure,
/**
* Throws when the window is nested (in <iframe>)
* and StrictDom is not in the 'measure' phase.
*
* @param {StrictDom} strictdom
*/
test: function(strictdom) {
var inIframe = window !== window.top;
if (inIframe && strictdom.not('measure')) {
throw error(2, '`.innerWidth` (in iframe)');
}
}
},
innerHeight: {
type: isWebkit ? Value : Measure,
/**
* Throws when the window is nested (in <iframe>)
* and StrictDom is not in the 'measure' phase.
*
* @param {StrictDom} strictdom
*/
test: function(strictdom) {
var inIframe = window !== window.top;
if (inIframe && strictdom.not('measure')) {
throw error(2, '`.innerHeight` (in iframe)');
}
}
},
scrollX: isWebkit ? Value : Measure,
scrollY: isWebkit ? Value : Measure,
// innerWidth: {
// type: isWebkit ? Value : Measure,
//
// /**
// * Throws when the window is nested (in <iframe>)
// * and StrictDom is not in the 'measure' phase.
// *
// * @param {StrictDom} strictdom
// */
// test: function(strictdom) {
// var inIframe = window !== window.top;
// if (inIframe && strictdom.not('measure')) {
// throw error(2, '`.innerWidth` (in iframe)');
// }
// }
// },
//
// innerHeight: {
// type: isWebkit ? Value : Measure,
//
// /**
// * Throws when the window is nested (in <iframe>)
// * and StrictDom is not in the 'measure' phase.
// *
// * @param {StrictDom} strictdom
// */
// test: function(strictdom) {
// var inIframe = window !== window.top;
// if (inIframe && strictdom.not('measure')) {
// throw error(2, '`.innerHeight` (in iframe)');
// }
// }
// },
//
// scrollX: isWebkit ? Value : Measure,
// scrollY: isWebkit ? Value : Measure,
scrollBy: Mutate,

@@ -206,0 +206,0 @@ scrollTo: Mutate,

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