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

amber-dev

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amber-dev - npm Package Compare versions

Comparing version 0.5.3 to 0.6.0

34

lib/helpers.js

@@ -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"
}
}
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