Comparing version 0.5.3 to 0.6.0
@@ -1,22 +0,9 @@ | ||
exports.libPath = __dirname; | ||
exports.nodeShebang = "#!/usr/bin/env node"; | ||
exports.nodeWrap = function (id) { | ||
var wrap = exports.nodeWrapWithoutShebang(id); | ||
wrap.start = exports.nodeShebang + "\n" + wrap.start; | ||
return wrap; | ||
}; | ||
exports.nodeWrapWithoutShebang = function (id) { | ||
var wrapSource = JSON.stringify('_wrap_' + id), | ||
idSource = JSON.stringify(id); | ||
function nodeWrapper() { | ||
return { | ||
start: "(function(define, require){\n" + | ||
"define(" + wrapSource + ", function (requirejs) {\n" + | ||
"define('__wrap__', function (requirejs) {\n" + | ||
"requirejs.resolve = require.resolve;\n" + | ||
"require = requirejs;\n", | ||
end: "require(" + idSource + ");\n" + | ||
"});\n" + | ||
"define.require(" + wrapSource + ");\n" + | ||
end: "});\n" + | ||
"define.require('__wrap__');\n" + | ||
"}((" + | ||
@@ -26,2 +13,15 @@ require("amdefine") + | ||
}; | ||
} | ||
var SHEBANG = "#!/usr/bin/env node", | ||
WRAPPER = nodeWrapper(), | ||
WRAPPER_WITH_SHEBANG = nodeWrapper(); | ||
WRAPPER_WITH_SHEBANG.start = SHEBANG + "\n" + WRAPPER_WITH_SHEBANG.start; | ||
module.exports = { | ||
libPath: __dirname, | ||
nodeShebang: SHEBANG, | ||
nodeWrapper: WRAPPER, | ||
nodeWrapperWithShebang: WRAPPER_WITH_SHEBANG | ||
}; |
{ | ||
"name": "amber-dev", | ||
"version": "0.5.3", | ||
"version": "0.6.0", | ||
"description": "Development goodies for Amber Smalltalk", | ||
@@ -19,5 +19,5 @@ "scripts": { | ||
"amd-config-builder": "^0.2.0", | ||
"amdefine": ">=0.1.0", | ||
"amdefine": ">=0.1.1", | ||
"es6-promise": "^2.0.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
38440
Updatedamdefine@>=0.1.1