Comparing version
{ | ||
"name": "xmpp-jid", | ||
"description": "Parse XMPP URIs", | ||
"version": "1.2.3", | ||
"author": "Lance Stout <lance@andyet.net>", | ||
"version": "1.3.0", | ||
"author": "Lance Stout <lancestout@gmail.com>", | ||
"browser": { | ||
@@ -10,17 +10,8 @@ "./lib/stringprep.js": "./lib/stringprep-browser.js" | ||
"bugs": "https://github.com/otalk/xmpp-jid/issues", | ||
"dependencies": { | ||
"punycode": "^1.3.0" | ||
}, | ||
"optionalDependencies": { | ||
"peerDependencies": { | ||
"node-stringprep": "^0.8.0" | ||
}, | ||
"devDependencies": { | ||
"browserify": "^9.0.0", | ||
"jshint": "^2.6.3", | ||
"make-better": "^0.4.1", | ||
"nsp": "^1.0.0", | ||
"precommit-hook": "^2.0.0", | ||
"tap-spec": "^2.0.0", | ||
"tape": "^3.0.3", | ||
"uglify-js": "^2.4.15" | ||
"tap-spec": "^5.0.0", | ||
"tape": "^4.9.1" | ||
}, | ||
@@ -41,21 +32,4 @@ "homepage": "https://github.com/otalk/xmpp-jid", | ||
"scripts": { | ||
"test": "make test" | ||
}, | ||
"testling": { | ||
"files": [ | ||
"test/index.js" | ||
], | ||
"browsers": [ | ||
"ie/10..latest", | ||
"chrome/20..latest", | ||
"chrome/canary", | ||
"firefox/10..latest", | ||
"firefox/nightly", | ||
"opera/next", | ||
"safari/6..latest", | ||
"iphone/6..latest", | ||
"ipad/6..latest", | ||
"android-browser/4.2..latest" | ||
] | ||
"test": "node test | tap-spec" | ||
} | ||
} |
# XMPP-JID | ||
**Parse and Create XMPP JIDs** | ||
[](https://travis-ci.org/otalk/xmpp-jid) | ||
[](https://david-dm.org/otalk/xmpp-jid) | ||
[](https://david-dm.org/otalk/xmpp-jid#info=devDependencies) | ||
[](https://ci.testling.com/otalk/xmpp-jid) | ||
## What is this? | ||
@@ -39,10 +33,2 @@ | ||
## Building bundled/minified version (for AMD, etc) | ||
```sh | ||
$ make | ||
``` | ||
The bundled and minified files will be in the generated `build` directory. | ||
## Usage | ||
@@ -73,6 +59,13 @@ | ||
to use StringPrep to normalize the individual parts of a JID so that we can safely use | ||
them in comparisons. Unfortunately, we don't have access to StringPrep in browsers, so | ||
them in comparisons. Unfortunately, we don't have always have access to StringPrep, so | ||
all `JID` objects are marked with a `prepped` attribute indicating if StringPrep has | ||
been applied. | ||
To enable full StringPrep application, also add the `node-stringprep` module to your | ||
dependcies: | ||
```sh | ||
npm i node-stringprep | ||
``` | ||
Comparisons between JIDs should only be trusted if both JIDs have `prepped` set to `true`. | ||
@@ -79,0 +72,0 @@ |
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
1
-50%2
-75%25776
-13.57%9
-40%562
-7.87%136
-4.9%1
Infinity%- Removed
- Removed