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

can-observation

Package Overview
Dependencies
Maintainers
12
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-observation - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

10

can-observation_test.js

@@ -530,8 +530,16 @@ // require("./can-observation-async-test");

var name = simpleObservable("John Doe");
var fn = function() {};
assert.expect(3);
var log = dev.log;
dev.log = function() {
dev.log = log;
assert.equal(arguments[0], "Observation<>", "should use can.getName");
// Functions in IE11 dont have name property
// this test is ignored under IE11
if (fn.name) {
assert.equal(arguments[0], "Observation<>", "should use can.getName");
} else {
assert.expect(2);
}
assert.equal(arguments[2], '"Charles Babbage"', "should use current value");

@@ -538,0 +546,0 @@ assert.equal(arguments[4], '"John Doe"', "should use previous value");

4

can-observation.js

@@ -47,4 +47,6 @@ "use strict";

this.onDependencyChange[getChangesSymbol] = function getChanges() {
var s = new Set();
s.add(self);
return {
valueDependencies: new Set([self])
valueDependencies: s
};

@@ -51,0 +53,0 @@ };

{
"name": "can-observation",
"version": "4.1.0",
"version": "4.1.1",
"description": "Core observable indicators",

@@ -5,0 +5,0 @@ "homepage": "http://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