can-stache-key
Advanced tools
Comparing version 1.0.0-pre.1 to 1.0.0-pre.2
@@ -13,2 +13,3 @@ var Observation = require('can-observation'); | ||
var isValueLikeSymbol = canSymbol.for("can.isValueLike"); | ||
var peek = Observation.ignore(canReflect.getKeyValue.bind(canReflect)); | ||
var observeReader; | ||
@@ -289,7 +290,8 @@ var isAt = function(index, reads) { | ||
} | ||
var keyValue = peek(parent, last.key); | ||
// here's where we need to figure out the best way to write | ||
// if property being set points at a compute, set the compute | ||
if( observeReader.valueReadersMap.isValueLike.test(parent[last.key], keys.length - 1, keys, options) ) { | ||
observeReader.valueReadersMap.isValueLike.write(parent[last.key], value, options); | ||
if( observeReader.valueReadersMap.isValueLike.test(keyValue, keys.length - 1, keys, options) ) { | ||
observeReader.valueReadersMap.isValueLike.write(keyValue, value, options); | ||
} else { | ||
@@ -296,0 +298,0 @@ if(observeReader.valueReadersMap.isValueLike.test(parent, keys.length - 1, keys, options) ) { |
{ | ||
"name": "can-stache-key", | ||
"version": "1.0.0-pre.1", | ||
"version": "1.0.0-pre.2", | ||
"description": "Read and write keys on a value", | ||
@@ -5,0 +5,0 @@ "homepage": "https://canjs.com", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24044
515
0