Comparing version 3.0.0-pre.6 to 3.0.0-pre.7
@@ -5,5 +5,5 @@ /* jshint asi:true */ | ||
var QUnit = require('steal-qunit'); | ||
var ObserveInfo = require('can-observe-info'); | ||
var Observation = require('can-observation'); | ||
var Construct = require('can-construct'); | ||
var observeReader = require('can-observe-info/reader/reader'); | ||
var observeReader = require('can-observation/reader/reader'); | ||
@@ -141,3 +141,3 @@ QUnit.module('can-map'); | ||
test("Map serialize triggers reading (#626)", function () { | ||
var old = ObserveInfo.observe; | ||
var old = Observation.add; | ||
@@ -147,3 +147,3 @@ var attributesRead = []; | ||
ObserveInfo.observe = function (object, attribute) { | ||
Observation.add = function (object, attribute) { | ||
if (attribute === "__keys") { | ||
@@ -168,3 +168,3 @@ readingTriggeredForKeys = true; | ||
ObserveInfo.observe = old; | ||
Observation.add = old; | ||
}) | ||
@@ -171,0 +171,0 @@ |
@@ -23,3 +23,3 @@ /* jshint -W079 */ | ||
var Construct = require('can-construct'); | ||
var ObserveInfo = require('can-observe-info'); | ||
var Observation = require('can-observation'); | ||
@@ -136,3 +136,3 @@ var namespace = require("can-util/namespace"); | ||
var keys = []; | ||
ObserveInfo.observe(map, '__keys'); | ||
Observation.add(map, '__keys'); | ||
for (var keyName in map._data) { | ||
@@ -246,3 +246,3 @@ keys.push(keyName); | ||
if (value !== undefined) { | ||
ObserveInfo.observe(this, attr); | ||
Observation.add(this, attr); | ||
return value; | ||
@@ -267,3 +267,3 @@ } | ||
if(!unobservable[attr] && !this._computedAttrs[attr]) { | ||
ObserveInfo.observe(this, attr); | ||
Observation.add(this, attr); | ||
} | ||
@@ -270,0 +270,0 @@ return this.___get( attr ); |
{ | ||
"name": "can-map", | ||
"version": "3.0.0-pre.6", | ||
"version": "3.0.0-pre.7", | ||
"description": "Observable Objects", | ||
@@ -51,3 +51,3 @@ "homepage": "http://canjs.com", | ||
"can-event": "^3.0.0-pre.1", | ||
"can-observe-info": "^3.0.0-pre.1", | ||
"can-observation": "^3.0.0-pre.0", | ||
"can-util": "^3.0.0-pre.21" | ||
@@ -54,0 +54,0 @@ }, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
46676
+ Addedcan-observation@^3.0.0-pre.0
+ Addedcan-observation@3.3.6(transitive)
- Removedcan-observe-info@^3.0.0-pre.1
- Removedcan-observe-info@3.0.0(transitive)