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

can-map

Package Overview
Dependencies
Maintainers
3
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-map - npm Package Compare versions

Comparing version 3.0.0-pre.6 to 3.0.0-pre.7

10

can-map_test.js

@@ -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 @@ },

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