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

can-stache-bindings

Package Overview
Dependencies
Maintainers
7
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-stache-bindings - npm Package Compare versions

Comparing version 3.0.13 to 3.0.14

17

can-stache-bindings.js

@@ -1,2 +0,2 @@

// # can/view/bindings/bindings.js
// # can-stache-bindings.js
//

@@ -310,3 +310,3 @@ // This module provides CanJS's default data and event bindings.

//!steal-remove-start
dev.warn("can/view/bindings: " + attributeName + " couldn't find method named " + expr.methodExpr.key, {
dev.warn("can-stache-bindings: " + attributeName + " couldn't find method named " + expr.methodExpr.key, {
element: el,

@@ -438,3 +438,3 @@ scope: data.scope

function syntaxWarning(el, attrData) {
dev.warn('can/view/bindings/bindings.js: mismatched binding syntax - ' + attrData.attributeName);
dev.warn('can-stache-bindings: mismatched binding syntax - ' + attrData.attributeName);
}

@@ -470,3 +470,2 @@ viewCallbacks.attr(/^\(.+\}$/, syntaxWarning);

}
}

@@ -607,3 +606,11 @@

else if(types.isMapLike(parentCompute)) {
parentCompute.attr(newVal, true);
// !steal-dev-start
var attrValue = el.getAttribute(attrName);
dev.warn("can-stache-bindings: Merging " + attrName + " into " + attrValue + " because its parent is non-observable");
// !steal-dev-end
(parentCompute.set || parentCompute.attr).call(
parentCompute,
newVal.serialize ? newVal.serialize() : newVal,
true
);
}

@@ -610,0 +617,0 @@ }

{
"name": "can-stache-bindings",
"version": "3.0.13",
"version": "3.0.14",
"description": "Default binding syntaxes for can-stache",

@@ -35,6 +35,6 @@ "homepage": "http://canjs.com",

"dependencies": {
"can-compute": "^3.0.0",
"can-event": "^3.0.1",
"can-compute": "^3.0.8",
"can-event": "^3.3.0",
"can-observation": "^3.0.1",
"can-stache": "^3.0.13",
"can-stache": "^3.0.22",
"can-types": "^1.0.1",

@@ -51,3 +51,3 @@ "can-util": "^3.2.2",

"can-list": "^3.0.1",
"can-map": "^3.0.3",
"can-map": "^3.0.7",
"can-vdom": "^3.0.2",

@@ -54,0 +54,0 @@ "can-view-nodelist": "^3.0.2",

@@ -239,2 +239,15 @@ require('can-stache-bindings');

function makeKeyboardEvent() {
var event;
try {
// IE doesn't support this syntax (Edge does, other evergreen browsers do)
event = new KeyboardEvent("keyup",{key: "Enter"});
return event;
} catch(e) {
event = document.createEvent("KeyboardEvent");
event.initKeyboardEvent("keyup", true, false, document.parentWindow, "Enter", 16, "", false, "en-US");
return event;
}
}
var supportsKeyboardEvents = (function(){

@@ -248,4 +261,3 @@ if(typeof KeyboardEvent !== "undefined") {

});
var event = new KeyboardEvent("keyup",{key: "Enter"});
el.dispatchEvent(event);
el.dispatchEvent(makeKeyboardEvent());
return supports;

@@ -271,3 +283,3 @@ } catch(e) {

var event = new KeyboardEvent("keyup",{key: "Enter"});
var event = makeKeyboardEvent();
input.dispatchEvent(event);

@@ -274,0 +286,0 @@ });

Sorry, the diff of this file is too big to display

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