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

can-stache-key

Package Overview
Dependencies
Maintainers
4
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.0.0-pre.1 to 1.0.0-pre.2

6

can-stache-key.js

@@ -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",

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