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

broccoli-es6modules

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-es6modules - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

test/expected/reexport-es3.js

25

index.js

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

return this.newTranspilerCache[key] = {
amd: esperanto.toAmd(source, {
amdName: moduleName,
strict: true
}).code
amd: esperanto.toAmd(
source,
this.generateEsperantoOptions(moduleName)
).code
};

@@ -60,3 +60,20 @@ } catch(err) {

}
},
generateEsperantoOptions: function(moduleName) {
var providedOptions = this.esperantoOptions || {};
var result = {
_evilES3SafeReExports: false,
absolutePaths: true,
strict: true
};
for (var keyName in providedOptions) {
result[keyName] = providedOptions[keyName];
}
result.amdName = moduleName;
return result;
}
});

4

package.json
{
"name": "broccoli-es6modules",
"version": "0.4.1",
"version": "0.4.2",
"description": "An es6 module transpiler & concatenator for broccoli.",

@@ -15,3 +15,3 @@ "main": "index.js",

"broccoli-kitchen-sink-helpers": "^0.2.5",
"esperanto": "^0.6.6",
"esperanto": "^0.6.7",
"mkdirp": "^0.5.0",

@@ -18,0 +18,0 @@ "walk-sync": "^0.1.3"

@@ -1,2 +0,2 @@

define('inner/first', ['exports', '../something'], function (exports, Something) {
define('inner/first', ['exports', 'something'], function (exports, Something) {

@@ -3,0 +3,0 @@ 'use strict';

@@ -25,2 +25,3 @@ /* global describe, afterEach, it, expect */

expectFile('outer.js').in(result);
expectFile('reexport.js').in(result);
expectFile('inner/first.js').in(result);

@@ -30,2 +31,15 @@ });

it('uses esperantoOptions if provided', function() {
var tree = new ES6(fixtures, {
esperantoOptions: {
_evilES3SafeReExports: true
}
});
builder = new broccoli.Builder(tree);
return builder.build().then(function(result) {
expectFile('reexport-es3.js').in(result);
});
});
afterEach(function() {

@@ -32,0 +46,0 @@ if (builder) {

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