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

traceur

Package Overview
Dependencies
Maintainers
2
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

traceur - npm Package Compare versions

Comparing version 0.0.47 to 0.0.48

4

package.json
{
"name": "traceur",
"version": "0.0.47",
"version": "0.0.48",
"description": "ES6 to ES5 compiler",

@@ -48,3 +48,3 @@ "keywords": [

"semver": "2.2.1",
"traceur": "0.0.46",
"traceur": "0.0.47",
"promises-aplus-tests": "~2.0.4"

@@ -51,0 +51,0 @@ },

@@ -45,2 +45,8 @@ // Copyright 2013 Traceur Authors.

commandLine.option('--inline <fileName>', 'Parse as Module, format \'inline\'',
function(fileName) {
rootSources.push({name: fileName, type: 'module', format: 'inline'});
}
);
commandLine.option('--out <FILE>', 'Compile all input files into a single file');

@@ -47,0 +53,0 @@ commandLine.option('--dir <INDIR> <OUTDIR>', 'Compile an input directory of modules into an output directory');

@@ -181,2 +181,3 @@ // Copyright 2012 Traceur Authors.

var name = input.name;
var moduleOption = options.modules;
if (input.type === 'script') {

@@ -186,3 +187,5 @@ loadFunction = loader.loadAsScript;

name = name.replace(/\.js$/,'');
if (options.modules === 'register')
if (input.format === 'inline')
options.modules = 'inline';
else if (options.modules === 'register')
doEvaluateModule = true;

@@ -193,4 +196,6 @@ }

function() {
options.modules = moduleOption;
if (doEvaluateModule)
appendEvaluateModule(name, referrerName);
loadCount++;

@@ -197,0 +202,0 @@ if (loadCount < fileNamesAndTypes.length) {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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