browserify-transform-machinepack
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -33,3 +33,3 @@ /** | ||
var shimCode = _.reduce(packMetadata.machines, function (memo, machineIdentity){ | ||
var line = util.format(' \'%s\': Machine.build( require(\'%s\') ),\n', machineIdentity, './'+Path.join(packMetadata.machineDir,machineIdentity)); | ||
var line = util.format('module.exports[Machine.getMethodName(\'%s\')] = Machine.build( require(\'%s\') );\n', machineIdentity, './'+Path.join(packMetadata.machineDir,machineIdentity)); | ||
memo += line; | ||
@@ -44,3 +44,3 @@ return memo; | ||
'\n'+ | ||
'module.exports = {\n'); | ||
'module.exports = {};\n'); | ||
shimCode += '};\n'; | ||
@@ -47,0 +47,0 @@ // console.log('\n------\n',shimCode,'\n\n'); |
{ | ||
"name": "browserify-transform-machinepack", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A browserify transform that makes machinepacks work when they are required from a browserified module (or each other).", | ||
@@ -5,0 +5,0 @@ "scripts": {}, |
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
3330