can-define
Advanced tools
Comparing version 0.7.6-0 to 0.7.6-1
@@ -10,3 +10,3 @@ "use strict"; | ||
var compute = require("can-compute"); | ||
var ObserveInfo = require("can-observe-info"); | ||
var Observation = require("can-observation"); | ||
@@ -412,3 +412,3 @@ var canEach = require("can-util/js/each/each"); | ||
return function() { | ||
ObserveInfo.observe(this, prop); | ||
Observation.add(this, prop); | ||
return this._data[prop]; | ||
@@ -415,0 +415,0 @@ }; |
@@ -5,3 +5,3 @@ "use strict"; | ||
var DefineMap = require("can-define/map/map"); | ||
var ObserveInfo = require("can-observe-info"); | ||
var Observation = require("can-observation"); | ||
var define = require("can-define"); | ||
@@ -240,3 +240,3 @@ | ||
var sliced = new ObserveInfo(function(){ | ||
var sliced = new Observation(function(){ | ||
return list.slice(0,1); | ||
@@ -250,3 +250,3 @@ }, null, { | ||
var joined = new ObserveInfo(function(){ | ||
var joined = new Observation(function(){ | ||
return list.join(","); | ||
@@ -253,0 +253,0 @@ }, null, { |
@@ -5,3 +5,3 @@ var Construct = require("can-construct"); | ||
var canBatch = require("can-event/batch/batch"); | ||
var ObserveInfo = require("can-observe-info"); | ||
var Observation = require("can-observation"); | ||
@@ -105,3 +105,3 @@ var defineHelpers = require("../define-helpers/define-helpers"); | ||
if(arguments.length === 1) { | ||
ObserveInfo.observe(this,""+index); | ||
Observation.add(this,""+index); | ||
return this[index]; | ||
@@ -630,3 +630,3 @@ } else { | ||
join: function () { | ||
ObserveInfo.observe(this, "length"); | ||
Observation.add(this, "length"); | ||
return [].join.apply(this, arguments); | ||
@@ -692,3 +692,3 @@ }, | ||
// tells computes to listen on length for changes. | ||
ObserveInfo.observe(this, "length"); | ||
Observation.add(this, "length"); | ||
var temp = Array.prototype.slice.apply(this, arguments); | ||
@@ -867,3 +867,3 @@ return new this.constructor(temp); | ||
if(!this.__inSetup) { | ||
ObserveInfo.observe(this,"length"); | ||
Observation.add(this,"length"); | ||
} | ||
@@ -870,0 +870,0 @@ return this._length; |
"use strict"; | ||
var QUnit = require("steal-qunit"); | ||
var DefineMap = require("can-define/map/map"); | ||
var ObserveInfo = require("can-observe-info"); | ||
var Observation = require("can-observation"); | ||
@@ -77,3 +77,3 @@ QUnit.module("can-define/map/map"); | ||
var map = new DefineMap(); | ||
var oi = new ObserveInfo(function(){ | ||
var oi = new Observation(function(){ | ||
return map.get("foo"); | ||
@@ -141,3 +141,3 @@ },null,{ | ||
var map = new DefineMap(); | ||
var oi = new ObserveInfo(function(){ | ||
var oi = new Observation(function(){ | ||
return map.serialize(); | ||
@@ -163,3 +163,3 @@ },null,{ | ||
var map = new DefineMap(); | ||
var oi = new ObserveInfo(function(){ | ||
var oi = new Observation(function(){ | ||
return map.serialize(); | ||
@@ -166,0 +166,0 @@ },null,{ |
@@ -8,3 +8,3 @@ var Construct = require("can-construct"); | ||
var defineHelpers = require("../define-helpers/define-helpers"); | ||
var ObserveInfo = require("can-observe-info"); | ||
var Observation = require("can-observation"); | ||
var CID = require("can-util/js/cid/cid"); | ||
@@ -49,3 +49,3 @@ var types = require("can-util/js/types/types"); | ||
var readWithoutObserve = ObserveInfo.notObserve(function(map, prop){ | ||
var readWithoutObserve = Observation.ignore(function(map, prop){ | ||
return map[prop] | ||
@@ -226,3 +226,3 @@ }); | ||
if(observe !== false) { | ||
ObserveInfo.observe(this, '__keys'); | ||
Observation.add(this, '__keys'); | ||
} | ||
@@ -229,0 +229,0 @@ var res; |
{ | ||
"name": "can-define", | ||
"version": "0.7.6-0", | ||
"version": "0.7.6-1", | ||
"description": "Like can.Map, but without the .attr method.", | ||
@@ -34,11 +34,11 @@ "main": "can-define.js", | ||
"dependencies": { | ||
"can-compute": "^3.0.0-pre.2", | ||
"can-compute": "^3.0.0-pre.5", | ||
"can-construct": "^3.0.0-pre.3", | ||
"can-event": "^3.0.0-pre.2", | ||
"can-observe-info": "^3.0.0-pre.4", | ||
"can-observation": "^3.0.0-pre.0", | ||
"can-util": "^3.0.0-pre.13" | ||
}, | ||
"devDependencies": { | ||
"can-list": "^3.0.0-pre.1", | ||
"can-stache": "canjs/can-stache#master", | ||
"can-list": "^3.0.0-pre.4", | ||
"can-stache": "^3.0.0-pre.8", | ||
"jshint": "^2.9.1", | ||
@@ -45,0 +45,0 @@ "serve": "^1.4.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137634
29
1
+ Addedcan-observation@^3.0.0-pre.0
- Removedcan-observe-info@^3.0.0-pre.4
- Removedcan-observe-info@3.0.0(transitive)
Updatedcan-compute@^3.0.0-pre.5