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

cldr-data

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cldr-data - npm Package Compare versions

Comparing version 27.0.0 to 27.0.1

46

install.js

@@ -11,34 +11,40 @@ /**

var coverage, parentPackage, srcUrl;
var cldrDownloader = require("cldr-data-downloader");
var path = require("path");
var urls = require("./urls");
var parentPackage;
var url;
try {
parentPackage = require("../../package.json");
}
catch(error) {}
var options = {};
url = urls[process.env.CLDR_COVERAGE || "core"];
if (process.env.CLDR_URL) {
srcUrl = srcUrl.replace(
"http://www.unicode.org/Public/cldr",
process.env.CLDR_URL.replace(/\/$/, "")
);
if (parentPackage) {
if (parentPackage["cldr-data-coverage"] && parentPackage.dependencies["cldr-data"]) {
if (!/^full|core$/.test(parentPackage["cldr-data-coverage"])) {
throw new TypeError("Your `cldr-data-coverage` setting must have the value \"core\" or \"full\".");
} else {
srcUrl = path.join(__dirname, "./urls.json");
try {
parentPackage = require("../../package.json");
if (parentPackage["cldr-data-coverage"] && parentPackage.dependencies["cldr-data"]) {
coverage = parentPackage["cldr-data-coverage"];
}
url = urls[parentPackage["cldr-data-coverage"]];
}
}
catch(error) {}
if (process.env.CLDR_URL) {
url = url.replace(
"http://www.unicode.org/Public/cldr",
process.env.CLDR_URL.replace(/\/$/, "")
);
if (process.env.CLDR_COVERAGE) {
coverage = process.env.CLDR_COVERAGE;
}
if (coverage) {
options.srcUrlKey = coverage;
}
}
cldrDownloader(
url,
srcUrl,
__dirname,
options,
function(error) {

@@ -45,0 +51,0 @@ if (error) {

{
"name": "cldr-data",
"version": "27.0.0",
"version": "27.0.1",
"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