systemjs-builder
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -210,4 +210,6 @@ var System = require('systemjs'); | ||
if (requireIndex != -1) { | ||
var fnParameters = factory.parameterList.parameters; | ||
var reqName = fnParameters[requireIndex] && fnParameters[requireIndex].parameter.binding.identifierToken.value; | ||
if (factory.parameterList) { | ||
var fnParameters = factory.parameterList.parameters; | ||
var reqName = fnParameters[requireIndex] && fnParameters[requireIndex].parameter.binding.identifierToken.value; | ||
} | ||
var cjsRequireTransformer = new CJSRequireTransformer(reqName, function(v) { return self.depMap[v] || v }); | ||
@@ -214,0 +216,0 @@ factory.body = cjsRequireTransformer.transformAny(factory.body); |
{ | ||
"name": "systemjs-builder", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "SystemJS Build Tool ===", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -39,4 +39,2 @@ "format register"; | ||
// ES6 declarative | ||
if (deps.length > 0 && declare.length != 1) | ||
throw 'Invalid System.register form for ' + name + '. Declare function must take one argument.'; | ||
entry = { | ||
@@ -165,3 +163,3 @@ declarative: true, | ||
if (!module.setters || !module.execute) | ||
throw "Invalid System.register form for " + entry.name; | ||
throw new TypeError("Invalid System.register form for " + entry.name); | ||
@@ -216,3 +214,3 @@ // now link all the module dependencies | ||
if (!exports) | ||
throw "System Register: The module requested " + name + " but this was not declared as a dependency"; | ||
throw new Error("Unable to load dependency " + name + "."); | ||
} | ||
@@ -262,2 +260,3 @@ | ||
} | ||
throw new TypeError('Module ' + name + ' not declared as a dependency.'); | ||
}, exports, module); | ||
@@ -264,0 +263,0 @@ |
@@ -39,4 +39,2 @@ "format register"; | ||
// ES6 declarative | ||
if (deps.length > 0 && declare.length != 1) | ||
throw 'Invalid System.register form for ' + name + '. Declare function must take one argument.'; | ||
entry = { | ||
@@ -165,3 +163,3 @@ declarative: true, | ||
if (!module.setters || !module.execute) | ||
throw "Invalid System.register form for " + entry.name; | ||
throw new TypeError("Invalid System.register form for " + entry.name); | ||
@@ -216,3 +214,3 @@ // now link all the module dependencies | ||
if (!exports) | ||
throw "System Register: The module requested " + name + " but this was not declared as a dependency"; | ||
throw new Error("Unable to load dependency " + name + "."); | ||
} | ||
@@ -262,2 +260,3 @@ | ||
} | ||
throw new TypeError('Module ' + name + ' not declared as a dependency.'); | ||
}, exports, module); | ||
@@ -264,0 +263,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91730