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.1 to 0.0.2

CHANGELOG.md

10

index.js

@@ -18,3 +18,11 @@ module.exports = function(precompile) {

this.remove();
// Prefer calling dangerouslyRemove instead of remove (if present) to
// suppress a deprecation warning.
//
// TODO: delete the fallback once we only support babel >= 5.5.0.
if (typeof this.dangerouslyRemove === 'function') {
this.dangerouslyRemove();
} else {
this.remove();
}
}

@@ -21,0 +29,0 @@ },

2

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

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

@@ -57,10 +57,6 @@ var assert = require('assert');

it("warns when the tagged template string contains placeholders", function() {
try {
assert.throws(function() {
transform("import hbs from 'htmlbars-inline-precompile'; var compiled = hbs`string ${value}`");
assert.fail("error should have been thrown");
} catch (e) {
assert.ok(e.message.match(/placeholders inside a tagged template string are not supported/));
}
}, /placeholders inside a tagged template string are not supported/);
});
});
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