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

node-stringprep

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-stringprep - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

13

index.js
'use strict';
try {
var bindings = require('bindings')('node_stringprep.node')
var icu = require('node-stringprep-icu')
} catch (ex) {
console.warn(
'Cannot load StringPrep-' +
require('./package.json').version +
' bindings (using fallback). You may need to ' +
'`npm install node-stringprep`'
'Cannot load StringPrep-ICU' +
' icu (using fallback). You may need to ' +
'`npm install node-stringprep-icu`'
)

@@ -16,3 +15,3 @@ }

try {
return bindings.toUnicode(value)
return icu.toUnicode(value)
} catch (e) {

@@ -26,3 +25,3 @@ return value

try {
this.stringPrep = new bindings.StringPrep(this.operation)
this.stringPrep = new icu.StringPrep(this.operation)
} catch (e) {

@@ -29,0 +28,0 @@ this.stringPrep = null

{
"name": "node-stringprep",
"version": "0.2.0",
"version": "0.2.1",
"main": "index.js",

@@ -14,5 +14,4 @@ "description": "ICU StringPrep profiles",

},
"dependencies": {
"nan": "~0.7.0",
"bindings": "~1.1.1"
"optionalDependencies": {
"node-stringprep-icu": "~0.1.0"
},

@@ -28,18 +27,11 @@ "devDependencies": {

"type": "git",
"path": "git://github.com/astro/node-stringprep.git"
"path": "git://github.com/node-xmpp/node-stringprep.git"
},
"homepage": "http://github.com/astro/node-stringprep",
"bugs": "http://github.com/astro/node-stringprep/issues",
"homepage": "http://github.com/node-xmpp/node-stringprep",
"bugs": "http://github.com/node-xmpp/node-stringprep/issues",
"author": {
"name": "Astro",
"email": "astro@spaceboyz.net",
"web": "http://spaceboyz.net/~astro/"
"name": "Lloyd Watkin",
"email": "lloyd@evilprofessor.co.uk",
"web": "http://evilprofessor.co.uk"
},
"maintainers": [
{
"name": "Lloyd Watkin",
"email": "lloyd@evilprofessor.co.uk",
"web": "http://evilprofessor.co.uk"
}
],
"licenses": [

@@ -52,8 +44,3 @@ {

"node": ">=0.8"
},
"contributors": [
"Camilo Aguilar",
"Mauro Pompilio",
"Joachim Kainz"
]
}
}

@@ -7,3 +7,3 @@ 'use strict';

var StringPrep = proxyquire('../index', { 'bindings': null }).StringPrep
var StringPrep = proxyquire('../index', { 'node-stringprep-icu': null }).StringPrep

@@ -10,0 +10,0 @@ it('Should throw on unknown icu-profile', function(done) {

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