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

can-route

Package Overview
Dependencies
Maintainers
13
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-route - npm Package Compare versions

Comparing version 4.3.4 to 4.3.5

3

can-route.js

@@ -356,3 +356,4 @@ "use strict";

map.attr = function(prop, val) {
var serializable = this.define === undefined || this.define[prop] === undefined || !!this.define[prop].serialize,
var serializable = typeof prop === "string" &&
(this.define === undefined || this.define[prop] === undefined || !!this.define[prop].serialize),
args;

@@ -359,0 +360,0 @@

{
"name": "can-route",
"version": "4.3.4",
"version": "4.3.5",
"description": "Observable front-end application routing for CanJS.",

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

@@ -410,3 +410,30 @@ /* jshint asi:true */

test("Calling attr with an object should not stringify object (#197)", function () {
setupRouteTest(function (iframe, iCanRoute, loc, win) {
var app = new win.CanMap({});
app.define = { foo: { serialize: false } };
app.attr('foo', true);
equal(app.attr('foo'), true, 'not route data - .attr("foo", ...) works');
app.attr({
foo: false
});
equal(app.attr('foo'), false, 'not route data - .attr({"foo": ...}) works');
iCanRoute.data = app;
app.attr('foo', true);
equal(app.attr('foo'), true, 'route data - .attr("foo", ...) works');
app.attr({
foo: false
});
equal(app.attr('foo'), false, 'route data - .attr({"foo": ...}) works');
teardownRouteTest();
});
});
}
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