Socket
Socket
Sign inDemoInstall

babel-plugin-htmlbars-inline-precompile

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-htmlbars-inline-precompile - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

12

index.js

@@ -40,3 +40,13 @@ module.exports = function(precompile) {

return "Ember.HTMLBars.template(" + precompile(template) + ")";
var compiledTemplateString = "Ember.HTMLBars.template(" + precompile(template) + ")";
// Prefer calling replaceWithStringSource if it is present.
// this prevents a deprecation warning in Babel 5.6.7+.
//
// TODO: delete the fallback once we only support babel >= 5.6.7.
if (this.replaceWithStringSource) {
this.replaceWithStringSource(compiledTemplateString);
} else {
return compiledTemplateString;
}
}

@@ -43,0 +53,0 @@ }

2

package.json
{
"name": "babel-plugin-htmlbars-inline-precompile",
"version": "0.0.2",
"version": "0.0.3",
"description": "Babel plugin to replace tagged template strings with precompiled HTMLBars templates",

@@ -5,0 +5,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc