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.4 to 0.1.0

8

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

@@ -15,5 +15,4 @@ var log = function () {

FetchRemote.prototype.patchMML = function (e) {
if (!e.project.mml || !e.project.mml.Layer) return;
if (!e.project.mml || !e.project.mml.Layer) return e.continue();
var processed = 0, layer,
length = e.project.mml.Layer.length,
force = this.config.parsed_opts['force-fetch-remote'],

@@ -37,3 +36,2 @@ self = this,

var uri = layer.Datasource.file,
ext = path.extname(uri),
basename = path.basename(uri),

@@ -58,3 +56,3 @@ destDir = path.join(e.project.dataDir, layer.id),

if (entry.type === 'Directory') return entry.autodrain();
if (layer.Datasource.type === "shape") fileName = layer.id + path.extname(fileName);
if (layer.Datasource.type === 'shape') fileName = layer.id + path.extname(fileName);
entry.pipe(fs.createWriteStream(path.join(destDir, fileName)));

@@ -61,0 +59,0 @@ }).on('close', decr);

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

@@ -21,5 +21,5 @@ "main": "index.js",

"dependencies": {
"unzip": "^0.1.11"
"unzipper": "^0.10.10"
},
"kosmtik": "~0.0.6"
}

@@ -5,1 +5,11 @@ # kosmtik-fetch-remote

them automagically.
## Install
While in your Kosmtik root, run:
`node index.js plugins --install kosmtik-fetch-remote`
## Issues and feature requests
Please report any issue or feature request on the [main kosmtik repository](https://github.com/kosmtik/kosmtik/issues).
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