node-stringprep
Advanced tools
Comparing version 0.5.2 to 0.5.3
12
index.js
'use strict'; | ||
var log = require('debug')('node-stringprep') | ||
// from unicode/uidna.h | ||
@@ -16,2 +18,3 @@ var UIDNA_ALLOW_UNASSIGNED = 1 | ||
) | ||
log(ex) | ||
} | ||
@@ -36,6 +39,7 @@ | ||
} catch (e) { | ||
if (options.throwIfError) | ||
if (options.throwIfError) { | ||
throw e | ||
else | ||
} else { | ||
return value | ||
} | ||
} | ||
@@ -50,2 +54,3 @@ } | ||
this.stringPrep = null | ||
log('Operation does not exist', operation, e) | ||
} | ||
@@ -67,4 +72,5 @@ } | ||
} catch (e) {} | ||
if (false === this.useJsFallbacks) | ||
if (false === this.useJsFallbacks) { | ||
throw new Error(this.LIBICU_NOT_AVAILABLE) | ||
} | ||
return this.jsFallback() | ||
@@ -71,0 +77,0 @@ } |
{ | ||
"name": "node-stringprep", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"main": "index.js", | ||
@@ -16,3 +16,4 @@ "description": "ICU StringPrep profiles", | ||
"nan": "^1.2.0", | ||
"bindings": "~1.1.1" | ||
"bindings": "~1.1.1", | ||
"debug": "^2.0.0" | ||
}, | ||
@@ -19,0 +20,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
21276
271
3
+ Addeddebug@^2.0.0
+ Addeddebug@2.6.9(transitive)
+ Addedms@2.0.0(transitive)