Socket
Socket
Sign inDemoInstall

full-icu

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

full-icu - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

2

install-spawn.js

@@ -22,3 +22,3 @@ // Copyright (C) 2015-2016 IBM Corporation and Others. All Rights Reserved.

if ( /yarn(\.js)?$/.test(npmPath) ) {
if ( /yarn((.*cli)?\.js)?$/.test(npmPath) ) {
console.log('Looks like you are using yarn…');

@@ -25,0 +25,0 @@ installVerb = 'add';

{
"name": "full-icu",
"version": "1.2.1",
"version": "1.3.0",
"description": "install 'full-icu' data for your current node",

@@ -5,0 +5,0 @@ "scripts": {

@@ -10,8 +10,13 @@ // Copyright (C) 2015 IBM Corporation and Others. All Rights Reserved.

function exit(reason) {
console.log(reason);
process.exit(0);
}
if (fullIcu.oldNode) {
console.log('Not sure how to handle node < 0.12. Exitting.');
exit('Not sure how to handle node < 0.12. Exitting.');
} else if (fullIcu.noi18n) {
console.log('Note: Your node was not compiled with i18n support. Nothing to do, Exitting.');
exit('Note: Your node was not compiled with i18n support. Nothing to do, Exitting.');
} else if (fullIcu.icu_system) {
console.log('Note: Your node was compiled to link against an ' +
exit('Note: Your node was compiled to link against an ' +
'externally-provided ICU, so the locale data is not customizable ' +

@@ -21,9 +26,9 @@ 'through this script. Exitting.');

// maybe already full icu, or some as-yet-unforseen case.
console.log('Note: Your node was not compiled with the ‘small-icu’ case,' +
exit('Note: Your node was not compiled with the ‘small-icu’ case,' +
' so the ICU data is not customizable through this script. Exitting.');
} else if( fullIcu.icumaj < 54 ) {
// This is kind of a sanity check that the ICU version is correct.
// ICU 54 was what Node v0.12 started with.
throw Error('Don’t know how to work with ICU version ' + fullIcu.icumaj + ', sorry.');
}
// This is kind of a sanity check that the ICU version is correct.
// ICU 54 was what Node v0.12 started with.
throw Error('Don’t know how to work with ICU version ' + fullIcu.icumaj + ', sorry.');
}

@@ -45,11 +50,10 @@ var cwd = fs.realpathSync('.');

}
if(fullIcu.nodeDetectIcu !== true) {
console.log('Node will use this ICU datafile if the environment variable NODE_ICU_DATA is set to “'+relpath+'”');
console.log('or with node --icu-data-dir='+relpath+' YOURAPP.js' );
{
var asJson = {scripts: { start: "node --icu-data-dir="+relpath + " YOURAPP.js" }};
console.log(" For package.json:");
console.log(JSON.stringify(asJson));
}
var asJson = {scripts: { start: "node --icu-data-dir="+relpath + " YOURAPP.js" }};
console.log(" For package.json:");
console.log(JSON.stringify(asJson));
}

@@ -59,3 +63,3 @@ console.log("");

// 9E8 is 10 days into January, so TimeZone independent
console.log("> new Intl.DateTimeFormat('es',{month:'long'}).format(new Date(9E8));");
console.log("> new Intl.DateTimeFormat('es',{month:'long'}).format(new Date(9E8));");
console.log("... will show “enero”. If it shows “January” you don't have full data.");

@@ -62,0 +66,0 @@ }

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