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

can-stache-bindings

Package Overview
Dependencies
Maintainers
15
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 4.6.3 to 4.6.4

4

can-stache-bindings.js

@@ -603,3 +603,5 @@ "use strict";

"can.setValue": function setValue(newVal) {
scope.set(cleanVMName(scopeProp, scope), newVal);
var expr = expression.parse(cleanVMName(scopeProp, scope),{baseMethodType: "Call"});
var value = expr.value(scope);
canReflect.setValue(value, newVal);
},

@@ -606,0 +608,0 @@

{
"name": "can-stache-bindings",
"version": "4.6.3",
"version": "4.6.4",
"description": "Default binding syntaxes for can-stache",

@@ -5,0 +5,0 @@ "homepage": "https://canjs.com/doc/can-stache-bindings.html",

@@ -1290,2 +1290,30 @@ var QUnit = require('steal-qunit');

});
testIfRealDocument("Bracket Expression with :to bindings", function () {
var demoContext = new DefineMap({
person: {
name: 'Matt'
}
});
var SourceComponentVM = DefineMap.extend("SourceComponentVM", {
name: {
default: 'Kevin'
}
});
MockComponent.extend({
tag: "source-component",
viewModel: SourceComponentVM,
template: stache('<span>{{name}}</span>')
});
var demoRenderer = stache(
'<source-component name:to="person[\'name\']" />'
);
demoRenderer(demoContext);
QUnit.equal(demoContext.person.name, 'Kevin', "source-component has correct name set");
});
});
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