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

ember-template-imports

Package Overview
Dependencies
Maintainers
5
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-template-imports - npm Package Compare versions

Comparing version 3.4.0 to 3.4.1

27

__tests__/preprocess-embedded-templates.test.ts

@@ -161,2 +161,29 @@ import { preprocessEmbeddedTemplates } from '../src/preprocess-embedded-templates';

});
it('includes source maps', function () {
const input = `<template>Hello!</template>`;
const templates = preprocessEmbeddedTemplates(input, {
getTemplateLocals,
relativePath: 'foo.gjs',
templateTag: util.TEMPLATE_TAG_NAME,
templateTagReplacement: util.TEMPLATE_TAG_PLACEHOLDER,
includeSourceMaps: true,
includeTemplateTokens: false,
});
expect(templates.output).toContain('//# sourceMappingURL');
});
it("doesn't include source maps if no templates", function () {
const input = `const foo = "Hello!"`;
const templates = preprocessEmbeddedTemplates(input, {
getTemplateLocals,
relativePath: 'foo.gjs',
templateTag: util.TEMPLATE_TAG_NAME,
templateTagReplacement: util.TEMPLATE_TAG_PLACEHOLDER,
includeSourceMaps: true,
includeTemplateTokens: false,
});
expect(templates.output).not.toContain('//# sourceMappingURL');
});
});
## v3.4.1 (2023-01-30)
#### :bug: Bug Fix
* [#110](https://github.com/ember-template-imports/ember-template-imports/pull/110) Fix unnecessary addition of sourcemaps - Closes [#108](https://github.com/ember-template-imports/ember-template-imports/issues/108) ([@wagenet](https://github.com/wagenet))
#### :memo: Documentation
* [#111](https://github.com/ember-template-imports/ember-template-imports/pull/111) Update CONTRIBUTING.md ([@wagenet](https://github.com/wagenet))
#### Committers: 2
- Peter Wagenet ([@wagenet](https://github.com/wagenet))
- Sergey Astapov ([@SergeAstapov](https://github.com/SergeAstapov))
## v3.4.0 (2022-11-09)

@@ -5,0 +18,0 @@

3

lib/preprocess-embedded-templates.js

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

let output = s.toString();
if (includeSourceMaps) {
const hasChanges = template !== output;
if (includeSourceMaps && hasChanges) {
const { dir, name } = path_1.default.parse(relativePath);

@@ -121,0 +122,0 @@ const map = s.generateMap({

{
"name": "ember-template-imports",
"version": "3.4.0",
"version": "3.4.1",
"description": "The default blueprint for ember-cli addons.",

@@ -44,5 +44,2 @@ "keywords": [

},
"peerDependencies": {
"ember-cli-htmlbars": "^6.0.0"
},
"devDependencies": {

@@ -53,3 +50,3 @@ "@babel/traverse": "^7.19.6",

"@ember/test-helpers": "^2.2.0",
"@embroider/test-setup": "^0.47.2",
"@embroider/test-setup": "^1.8.3",
"@glimmer/component": "^1.0.3",

@@ -88,3 +85,3 @@ "@glimmer/syntax": "0.77.6",

"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^27.0.0",

@@ -95,3 +92,3 @@ "loader.js": "^4.7.0",

"qunit": "^2.14.0",
"qunit-dom": "^1.6.0",
"qunit-dom": "^2.0.0",
"release-it": "^14.2.1",

@@ -98,0 +95,0 @@ "release-it-lerna-changelog": "^3.1.0",

Sorry, the diff of this file is not supported yet

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