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

cldr-data-downloader

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cldr-data-downloader - npm Package Compare versions

Comparing version 0.2.5 to 0.3.0

4

bin/download.js

@@ -32,2 +32,4 @@ /**

" -f, --force # Force to re-download and to re-unpack.",
" --filter # Regexp URL mask: '(core|numbers)' etc. Useful",
" # when input is for external .json config",
""

@@ -46,2 +48,3 @@ ];

"coverage": String,
filter: String,
output: path,

@@ -71,2 +74,3 @@ force: Boolean

options.force = opts.force;
options.filterRe = opts.filter;
options.srcUrlKey = opts["src-url-key"] || opts.coverage;

@@ -73,0 +77,0 @@

@@ -71,2 +71,14 @@ /**

var srcUrls = alwaysArray(srcUrl);
if (options.filterRe) {
var filterRe = options.filterRe;
if (typeof filterRe === 'string') {
filterRe = new RegExp(filterRe);
}
srcUrls = srcUrls.filter(function(url) {
return filterRe.test(url);
});
}
return Q.all(srcUrls.map(function(srcUrl) {

@@ -73,0 +85,0 @@ return download({

2

package.json
{
"name": "cldr-data-downloader",
"version": "0.2.5",
"version": "0.3.0",
"keywords": [

@@ -5,0 +5,0 @@ "unicode",

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