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

can-dom-mutate

Package Overview
Dependencies
Maintainers
9
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-dom-mutate - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

16

-is-connected.js

@@ -18,8 +18,12 @@ var globals = require('can-globals');

function setIsConnected(doc) {
var node = doc.createTextNode("");
isConnected = 'isConnected' in node.constructor.prototype ?
getIsConnectedFromNode :
getIsConnectedFromDocument;
if(mutate) {
mutate.isConnected = isConnected;
if(doc) {
var node = doc.createTextNode("");
isConnected = 'isConnected' in node.constructor.prototype ?
getIsConnectedFromNode :
getIsConnectedFromDocument;
if(mutate) {
mutate.isConnected = isConnected;
}
} else {
mutate.isConnected = getIsConnectedFromNode;
}

@@ -26,0 +30,0 @@ }

{
"name": "can-dom-mutate",
"description": "Dispatch and listen for DOM mutations",
"version": "2.0.5",
"version": "2.0.6",
"author": {

@@ -6,0 +6,0 @@ "name": "DoneJS Team",

@@ -306,2 +306,10 @@ var unit = require('steal-qunit');

test("Works with no document", function(assert) {
try {
globals.setKeyValue("document", null);
assert.ok(true, "Able to set the document to null like happens in SSR");
} catch(e) {
assert.ok(false, e.message);
}
});
}

@@ -308,0 +316,0 @@

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