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

can-stache-key

Package Overview
Dependencies
Maintainers
10
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.4.1 to 1.4.3

14

can-stache-key-test.js

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

});
QUnit.test(".then won't call bindings #49", function(assert){
var promiseIsh = {};
Object.defineProperty(promiseIsh,"then",{
get: function(){
ObservationRecorder.add(this, "then");
}
});
ObservationRecorder.start();
observeReader.read(promiseIsh, observeReader.reads("prop"));
var recordings = ObservationRecorder.stop();
assert.equal( recordings.keyDependencies.size, 0, "no key recordings");
});

6

can-stache-key.js

@@ -14,2 +14,5 @@ "use strict";

var observeReader;
var isPromiseLike = ObservationRecorder.ignore(function isPromiseLike(value){
return typeof value === "object" && value && typeof value.then === "function";
});

@@ -213,3 +216,4 @@ var bindName = Function.prototype.bind;

// special reflections.
if(canReflect.isPromise(value) || typeof value === "object" && value && typeof value.then === "function") {
if(canReflect.isPromise(value) ||
isPromiseLike(value)) {
canReflectPromise(value);

@@ -216,0 +220,0 @@ }

2

package.json
{
"name": "can-stache-key",
"version": "1.4.1",
"version": "1.4.3",
"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