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

depsync

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

depsync - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

38

lib/depsync.js

@@ -240,2 +240,21 @@ var Utils;

Cache.initCache = initCache;
function clean(downloads) {
var data = readCache();
for (var i = data.downloads.length - 1; i >= 0; i--) {
var item = data.downloads[i];
var found = false;
for (var _i = 0, downloads_2 = downloads; _i < downloads_2.length; _i++) {
var downloadItem = downloads_2[_i];
if (downloadItem.url == item.url) {
found = true;
break;
}
}
if (!found) {
data.downloads.splice(i, 1);
}
}
saveCache(data);
}
Cache.clean = clean;
function isDownloaded(targetItem) {

@@ -434,2 +453,12 @@ var data = readCache();

function downloadFiles(list, callback) {
if (!list) {
list = [];
}
else {
list = list.concat();
}
doDownloadFiles(list, callback);
}
Loader.downloadFiles = downloadFiles;
function doDownloadFiles(list, callback) {
if (list.length == 0) {

@@ -441,3 +470,3 @@ callback && callback();

if (Cache.isDownloaded(item)) {
downloadFiles(list, callback);
doDownloadFiles(list, callback);
return;

@@ -481,6 +510,6 @@ }

Cache.finishDownload(item);
downloadFiles(list, callback);
doDownloadFiles(list, callback);
}
}
Loader.downloadFiles = downloadFiles;
Loader.doDownloadFiles = doDownloadFiles;
function getEntryName(entry) {

@@ -622,3 +651,3 @@ var entryName = entry.entryName.toString();

var path = require("path");
var VERSION = "1.0.2";
var VERSION = "1.0.3";
function run(args) {

@@ -664,2 +693,3 @@ var commandOptions = CommandLine.parse(args);

Loader.downloadFiles(config.downloads, function () {
Cache.clean(config.downloads);
});

@@ -666,0 +696,0 @@ }

2

package.json
{
"name": "depsync",
"version": "1.0.2",
"version": "1.0.3",
"author": "Dom Chen",

@@ -5,0 +5,0 @@ "homepage": "http://www.idom.me/",

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