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

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.3.0 to 1.3.1

23

install-spawn.js

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

var isglobal = process.env.npm_config_global === 'true';
var npmrc = '.npmrc';
var npmrcPath = path.resolve(process.env.INIT_CWD, npmrc);
// uses semver regex from https://semver.org/
const YARN_REGEX = /yarn(-(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)?((.*cli)?\.js)?$/;
module.exports = function npmInstallNpm(fullIcu, advice) {

@@ -23,3 +28,3 @@ var icupkg = fullIcu.icupkg;

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

@@ -38,4 +43,20 @@ installVerb = 'add';

if(fs.existsSync(npmrcPath)) {
try {
fs.linkSync(npmrcPath, npmrc);
} catch(e) {
fs.symlinkSync(npmrcPath, npmrc);
}
}
console.log('full-icu$', cmdPath, args.join(' '));
var spawned = child_process.spawnSync(cmdPath, args, { stdio: 'inherit' });
if(fs.existsSync(npmrc)) {
try {
fs.unlinkSync(npmrc);
} catch(e) {
}
}
if(spawned.error) {

@@ -42,0 +63,0 @@ throw(spawned.error);

2

package.json
{
"name": "full-icu",
"version": "1.3.0",
"version": "1.3.1",
"description": "install 'full-icu' data for your current node",

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

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