You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

bundlet

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bundlet - npm Package Compare versions

Comparing version

to
0.1.3

31

lib/index.js

@@ -1,4 +0,4 @@

// Generated by CoffeeScript 1.4.0
// Generated by CoffeeScript 1.8.0
(function() {
var bundle, fs, funclet, loglet, path, run;
var bundle, fs, funclet, isAbsolute, loglet, path, pathToSpec, relative, run;

@@ -15,5 +15,25 @@ bundle = require('./bundle');

isAbsolute = function(filePath) {
return filePath.indexOf('/') === 0;
};
relative = function(filePath) {
if (filePath.indexOf('.') === 0) {
return filePath;
} else {
return './' + filePath;
}
};
pathToSpec = function(filePath) {
if (isAbsolute(filePath)) {
return filePath;
} else {
return relative(filePath);
}
};
run = function(argv) {
return bundle.bundle(argv._[0], argv, function(err, res) {
var destPath, item, _i, _len, _results;
return bundle.bundle(pathToSpec(argv._[0]), argv, function(err, res) {
var destPath, e, item, _i, _len, _results;
if (err) {

@@ -38,3 +58,4 @@ return loglet.croak(err);

return _results;
} catch (e) {
} catch (_error) {
e = _error;
return loglet.croak(e);

@@ -41,0 +62,0 @@ }

2

package.json

@@ -5,3 +5,3 @@ {

"description": "client-side Javascript packager.",
"version": "0.1.2",
"version": "0.1.3",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet