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

can-stache-key

Package Overview
Dependencies
Maintainers
7
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.14 to 1.0.0-pre.15

5

can-stache-key-test.js

@@ -7,2 +7,3 @@ var observeReader = require("can-stache-key");

var testHelpers = require('can-test-helpers');
var ObservationRecorder = require("can-observation-recorder");

@@ -86,3 +87,3 @@ var SimpleMap = require("can-simple-map");

get: function(){
Observation.add(obj,"prop");
ObservationRecorder.add(obj,"prop");
return prop;

@@ -115,3 +116,3 @@ },

isSaving: function(){
Observation.add(this, "_saving");
ObservationRecorder.add(this, "_saving");
},

@@ -118,0 +119,0 @@ addEventListener: function(){}

10

can-stache-key.js

@@ -1,2 +0,2 @@

var Observation = require('can-observation');
var ObservationRecorder = require('can-observation-recorder');
var dev = require('can-log/dev/dev');

@@ -13,3 +13,3 @@ var each = require('can-util/js/each/each');

var isValueLikeSymbol = canSymbol.for("can.isValueLike");
var peek = Observation.ignore(canReflect.getKeyValue.bind(canReflect));
var peek = ObservationRecorder.ignore(canReflect.getKeyValue.bind(canReflect));
var observeReader;

@@ -54,4 +54,4 @@

if(options.foundObservable && !state.foundObservable) {
if(Observation.trapsCount()) {
Observation.addAll( getObserves() );
if(ObservationRecorder.trapsCount()) {
ObservationRecorder.addMany( getObserves() );
options.foundObservable(value, index);

@@ -84,3 +84,3 @@ state.foundObservable = true;

if(options.foundObservable) {
getObserves = Observation.trap();
getObserves = ObservationRecorder.trap();
}

@@ -87,0 +87,0 @@

{
"name": "can-stache-key",
"version": "1.0.0-pre.14",
"version": "1.0.0-pre.15",
"description": "Read and write keys on a value",

@@ -49,3 +49,3 @@ "homepage": "https://canjs.com",

"can-namespace": "1.0.0",
"can-observation": "^4.0.0-pre.2",
"can-observation-recorder": "<2.0.0",
"can-reflect": "^1.1.0",

@@ -57,2 +57,3 @@ "can-reflect-promise": "^2.0.0-pre.2",

"devDependencies": {
"can-observation": "^4.0.0-pre.2",
"can-event-queue": "<2.0.0",

@@ -59,0 +60,0 @@ "can-simple-map": "^4.0.0-pre.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