Comparing version 1.2.0 to 1.2.1
@@ -7,2 +7,3 @@ // Copyright (C) 2015 IBM Corporation and Others. All Rights Reserved. | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
@@ -82,3 +83,3 @@ if(!process || !process.versions || !process.versions.node) { | ||
var haveDat = module.exports.haveDat = function haveDat(d) { | ||
if(!d) d = icudat; | ||
if(!d) d = path.resolve(__dirname, icudat); | ||
return fs.existsSync(d); | ||
@@ -88,3 +89,3 @@ } | ||
var datPath = module.exports.datPath = function datPath(d) { | ||
if(!d) d = icudat; | ||
if(!d) d = path.resolve(__dirname, icudat); | ||
if(haveDat(d)) return fs.realpathSync(d); | ||
@@ -91,0 +92,0 @@ throw Error('Does not exist: ' + fs.realpathSync(d)); |
{ | ||
"name": "full-icu", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "install 'full-icu' data for your current node", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29486
196