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

kosmtik-fetch-remote

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

kosmtik-fetch-remote - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

8

index.js
var fs = require('fs'),
path = require('path'),
http = require('http'),
unzip = require('unzip');

@@ -20,2 +19,3 @@

force = this.config.parsed_opts['force-fetch-remote'],
self = this,
incr = function () {

@@ -67,3 +67,4 @@ processed++;

};
http.get(uri, function onResponse (resp) {
var onResponse = function (resp) {
if (resp.statusCode >= 400) return onError(new Error('Bad status code: ' + resp.statusCode));
var file = fs.createWriteStream(dest);

@@ -74,3 +75,4 @@ resp.pipe(file);

});
}).on('error', onError);
};
self.config.helpers.request({uri: uri}).on('error', onError).on('response', onResponse);
};

@@ -77,0 +79,0 @@ incr();

{
"name": "kosmtik-fetch-remote",
"version": "0.0.3",
"version": "0.0.4",
"description": "Kosmtik plugin to fetch remote layer data",

@@ -23,3 +23,3 @@ "main": "index.js",

},
"kosmtik": "~0.0.2"
"kosmtik": "~0.0.6"
}
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