Comparing version 0.4.8 to 0.4.9
@@ -1,4 +0,4 @@ | ||
var fs, watchFileFallback, watchFile, watchFilesOnce, out$ = typeof exports != 'undefined' && exports || this; | ||
var fs, watchFile, out$ = typeof exports != 'undefined' && exports || this; | ||
fs = require('fs'); | ||
watchFileFallback = function(filename, options, cb){ | ||
function watchFileFallback(filename, options, cb){ | ||
options.interval = 701; | ||
@@ -15,5 +15,6 @@ fs.watchFile(filename, options, function(curr, prev){ | ||
}; | ||
}; | ||
} | ||
watchFile = fs.watch || watchFileFallback; | ||
import$(out$, watchFilesOnce = function(files, cb){ | ||
out$.watchFilesOnce = watchFilesOnce; | ||
function watchFilesOnce(files, cb){ | ||
var watchers, close, doCallback, i$, len$, file, watcher, err; | ||
@@ -48,7 +49,2 @@ watchers = []; | ||
}; | ||
}); | ||
function import$(obj, src){ | ||
var own = {}.hasOwnProperty; | ||
for (var key in src) if (own.call(src, key)) obj[key] = src[key]; | ||
return obj; | ||
} |
{ | ||
"name": "jspackage", | ||
"description": "build tool which adds client-side import syntax", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Andrew Kelley", |
19288
512