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

systemjs-builder

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systemjs-builder - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

8

compilers/amd.js

@@ -36,3 +36,3 @@ var System = require('systemjs');

if (!tree.operand.identifierToken || tree.operand.identifierToken.value != 'define')
return;
return ScopeTransformer.prototype.transformCallExpression.call(this, tree);

@@ -340,2 +340,4 @@ var args = tree.args.args;

exports.compile = function(load, normalize, loader) {
console.log(load.name);
console.log(load.metadata.isAnon);
var output = load.metadata.parseTree;

@@ -348,5 +350,7 @@ var transformer = new AMDDefineRegisterTransformer(load, load.metadata.isAnon, normalize ? load.depMap : {});

// because we've blindly replaced the define statement from AMD with a System.register call
// we have to ensure we still trigger any AMD guard statements in the code by creating a dummy define which isn't called
return Promise.resolve({
source: output.js
source: '(function() {\nfunction define(){}; define.amd = true;\n ' + output.js.replace(/\n/g, '\n ') + '})();'
});
}

@@ -27,4 +27,2 @@ // Converts globals into a form that will define the module onto the loader

load.source
return Promise.resolve({

@@ -31,0 +29,0 @@ source: globalOutput(load.name, deps, load.metadata.exports, load.metadata.init, load.source)

@@ -151,4 +151,9 @@ var Promise = require('rsvp').Promise;

exports.config = function(config) {
loader.config(config);
pluginLoader.config(config);
var cfg = {};
for (var p in config) {
if (p != 'bundles')
cfg[p] = config[p];
}
loader.config(cfg);
pluginLoader.config(cfg);
}

@@ -213,4 +218,3 @@

if (config) {
loader.config(config);
pluginLoader.config(config);
exports.config(config);
}

@@ -217,0 +221,0 @@

{
"name": "systemjs-builder",
"version": "0.1.2",
"version": "0.1.3",
"description": "",

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

"rsvp": "^3.0.6",
"systemjs": "0.8.1",
"systemjs": "0.8.2",
"traceur": "0.0.58"

@@ -14,0 +14,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