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

ember-cli-htmlbars

Package Overview
Dependencies
Maintainers
4
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-htmlbars - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

35

ember-addon-main.js

@@ -12,2 +12,25 @@ 'use strict';

purgeModule(templateCompilerPath) {
// ensure we get a fresh templateCompilerModuleInstance per ember-addon
// instance NOTE: this is a quick hack, and will only work as long as
// templateCompilerPath is a single file bundle
//
// (╯°□°)╯︵ ɹǝqɯǝ
//
// we will also fix this in ember for future releases
// Module will be cached in .parent.children as well. So deleting from require.cache alone is not sufficient.
let mod = require.cache[templateCompilerPath];
if (mod && mod.parent) {
let index = mod.parent.children.indexOf(mod);
if (index >= 0) {
mod.parent.children.splice(index, 1);
} else {
throw new TypeError(`ember-cli-htmlbars attempted to purge '${templateCompilerPath}' but something went wrong.`);
}
}
delete require.cache[templateCompilerPath];
},
setupPreprocessorRegistry(type, registry) {

@@ -68,10 +91,3 @@ // ensure that broccoli-ember-hbs-template-compiler is not processing hbs files

// ensure we get a fresh templateCompilerModuleInstance per ember-addon
// instance NOTE: this is a quick hack, and will only work as long as
// templateCompilerPath is a single file bundle
//
// (╯°□°)╯︵ ɹǝqɯǝ
//
// we will also fix this in ember for future releases
delete require.cache[templateCompilerPath];
this.purgeModule(templateCompilerPath);

@@ -98,3 +114,4 @@ // do a full clone of the EmberENV (it is guaranteed to be structured

delete require.cache[templateCompilerPath];
this.purgeModule(templateCompilerPath);
delete global.Ember;

@@ -101,0 +118,0 @@ delete global.EmberENV;

{
"name": "ember-cli-htmlbars",
"version": "2.0.4",
"version": "2.0.5",
"description": "A library for adding htmlbars to ember CLI",

@@ -5,0 +5,0 @@ "main": "index.js",

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