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

broccoli-sourcemap-concat

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-sourcemap-concat - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

2

package.json
{
"name": "broccoli-sourcemap-concat",
"version": "1.1.4",
"version": "1.1.5",
"description": "Fast, good-enough concatenation with source maps.",

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

@@ -6,2 +6,3 @@ var CachingWriter = require('broccoli-caching-writer');

var helpers = require('broccoli-kitchen-sink-helpers');
var uniq = require('lodash.uniq');

@@ -99,3 +100,3 @@ function Combined() {

SimpleConcat.prototype._addFiles = function(combined, inputPath, beginSection) {
var files = this.listFiles();
var files = uniq(this.listFiles());

@@ -102,0 +103,0 @@ if (files.length === 0 && !this.allowNone) {

@@ -105,5 +105,27 @@ /* global describe, afterEach, it, expect */

it('dedupe uniques in inputFiles', function() {
it('dedupe uniques in inputFiles (with simpleconcat)', function() {
var final = concat(firstFixture, {
outputFile: '/staged.js',
inputFiles: ['inner/first.js', 'inner/second.js', 'inner/first.js'],
sourceMapConfig: {
enabled: false
}
});
builder = new broccoli.Builder(final);
return builder.build().then(function(result) {
var actual = fs.readFileSync(result.directory + '/staged.js', 'UTF-8');
var firstFixture = path.join(__dirname, 'fixtures', 'first');
var first = fs.readFileSync(path.join(firstFixture, 'inner/first.js'), 'UTF-8');
var second = fs.readFileSync(path.join(firstFixture, 'inner/second.js'), 'UTF-8');
var expected = first + '\n' + second;
assertFileEqual(actual, expected, 'output is wrong');
});
});
it('dedupe uniques in inputFiles (with sourcemaps)', function() {
var final = concat(firstFixture, {
outputFile: '/staged.js',
inputFiles: ['inner/first.js', 'inner/second.js', 'inner/first.js']

@@ -110,0 +132,0 @@ });

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