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

can-stache

Package Overview
Dependencies
Maintainers
16
Versions
284
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-stache - npm Package Compare versions

Comparing version 4.17.9 to 4.17.10

2

package.json
{
"name": "can-stache",
"version": "4.17.9",
"version": "4.17.10",
"description": "Live binding handlebars templates",

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

@@ -228,2 +228,12 @@ "use strict";

var domRenderer = core.getTemplateById(localPartialName);
//!steal-remove-start
if (process.env.NODE_ENV !== 'production') {
if (!domRenderer) {
dev.warn(
(state.filename ? state.filename + ':' : '') +
(state.lineNo ? state.lineNo + ': ' : '') +
'Unable to find partial "' + localPartialName + '".');
}
}
//!steal-remove-end
return domRenderer ? domRenderer(partialScope, {}, nodeList) : getDocument().createDocumentFragment();

@@ -230,0 +240,0 @@ }

@@ -222,1 +222,9 @@ var testHelpers = require('can-test-helpers');

});
testHelpers.dev.devOnlyTest("Should give a warning when a partial is not found #493", function () {
var template,
teardown = testHelpers.dev.willWarn(/Unable to find partial/);
template = stache('missing.stache', "{{> aPartial}}");
template();
QUnit.equal(teardown(), 1, "got expected warning");
});
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