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

can-stache-key

Package Overview
Dependencies
Maintainers
8
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-stache-key - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

9

can-stache-key-test.js

@@ -313,1 +313,10 @@ var observeReader = require("can-stache-key");

});
QUnit.test("write to an object", function(){
var obj = {};
observeReader.write(obj,"value",1);
QUnit.deepEqual(obj,{value: 1});
obj = {value: null};
observeReader.write(obj,"value",1);
QUnit.deepEqual(obj,{value: 1});
});

5

can-stache-key.js

@@ -255,6 +255,6 @@ var ObservationRecorder = require('can-observation-recorder');

// if newVal is observable object, lets try to update
if(canReflect.isMapLike(propValue) && newVal && typeof newVal === "object") {
if(newVal != null && typeof newVal === "object" && canReflect.isMapLike(propValue) ) {
dev.warn("can-stache-key: Merging data into \"" + prop + "\" because its parent is non-observable");
canReflect.update(propValue, newVal);
} else if(canReflect.isValueLike(propValue) && canReflect.isObservableLike(propValue)){
} else if(propValue != null && propValue[setValueSymbol] !== undefined){
canReflect.setValue(propValue, newVal);

@@ -264,3 +264,2 @@ } else {

}
}

@@ -267,0 +266,0 @@ }

2

package.json
{
"name": "can-stache-key",
"version": "1.3.1",
"version": "1.3.2",
"description": "Read and write keys on a value",

@@ -5,0 +5,0 @@ "homepage": "https://canjs.com",

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