Comparing version 0.0.1 to 0.0.2
@@ -87,12 +87,13 @@ 'use strict'; | ||
}, | ||
_wrapper: function (ast, exportName) { | ||
_wrapper: function (ast) { | ||
var wrapper = [], | ||
ns = this.ns, | ||
wAst; | ||
wAst, | ||
exportName; | ||
exportName = ns + '.' + exportName || this.exportName; | ||
wrapper.push('(function(' + ns + '){'); | ||
if (exportName && this.isExistsNode(ast, 'moduleExport')) { | ||
if (this.exportName && this.isExistsNode(ast, 'moduleExport')) { | ||
exportName = this.exportName; | ||
wrapper.push(exportName + ' = ' + exportName + ' || {};'); | ||
@@ -99,0 +100,0 @@ } |
{ | ||
"name": "jsm2c", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "将采用commonJS规范的模块化代码,转译成闭包形式的代码", | ||
@@ -36,3 +36,2 @@ "main": "index.js", | ||
}, | ||
"maintainers": [ | ||
@@ -42,3 +41,3 @@ "guomilo <guomilo@gmail.com>" | ||
"directories": {}, | ||
"devDependencies": { | ||
"devDependencies": { | ||
"autod": "2.5.1", | ||
@@ -45,0 +44,0 @@ "chai": "3.5.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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
651
29185