uuid 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.travis.yml +3 -3
- package/README.md +6 -5
- package/benchmark/package.json +9 -0
- package/buffer-browser.js +1 -0
- package/buffer.js +1 -0
- package/package.json +20 -11
- package/uuid.js +4 -2
package/.travis.yml
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# uuid [](http://travis-ci.org/defunctzombie/node-uuid) #
|
|
2
2
|
|
|
3
|
-
[](https://ci.testling.com/defunctzombie/node-uuid)
|
|
4
4
|
|
|
5
5
|
Simple, fast generation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDS.
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ Features:
|
|
|
9
9
|
* Generate RFC4122 version 1 or version 4 UUIDs
|
|
10
10
|
* Runs in node.js and all browsers.
|
|
11
11
|
* Cryptographically strong random # generation on supporting platforms
|
|
12
|
-
*
|
|
12
|
+
* 1185 bytes minified and gzip'ed (Want something smaller? Check this [crazy shit](https://gist.github.com/982883) out! )
|
|
13
13
|
* [Annotated source code](http://broofa.github.com/node-uuid/docs/uuid.html)
|
|
14
14
|
|
|
15
15
|
## Getting Started
|
|
@@ -177,8 +177,9 @@ open test/test.html
|
|
|
177
177
|
Requires node.js
|
|
178
178
|
|
|
179
179
|
```
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
cd benchmark/
|
|
181
|
+
npm install
|
|
182
|
+
node benchmark.js
|
|
182
183
|
```
|
|
183
184
|
|
|
184
185
|
For a more complete discussion of uuid performance, please see the `benchmark/README.md` file, and the [benchmark wiki](https://github.com/broofa/uuid/wiki/Benchmark)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = Array;
|
package/buffer.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = Buffer;
|
package/package.json
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name"
|
|
3
|
-
"version"
|
|
4
|
-
"description"
|
|
5
|
-
"keywords"
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
"name": "uuid",
|
|
3
|
+
"version": "1.4.2",
|
|
4
|
+
"description": "Rigorous implementation of RFC4122 (v1 and v4) UUIDs.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"uuid",
|
|
7
|
+
"guid",
|
|
8
|
+
"rfc4122"
|
|
9
|
+
],
|
|
10
|
+
"author": "Robert Kieffer <robert@broofa.com>",
|
|
11
|
+
"contributors": [
|
|
8
12
|
{
|
|
9
13
|
"name": "Christoph Tavan <dev@tavan.de>",
|
|
10
14
|
"github": "https://github.com/ctavan"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "Vincent Voyer <vincent@zeroload.net>",
|
|
18
|
+
"github": "https://github.com/vvo"
|
|
11
19
|
}
|
|
12
20
|
],
|
|
13
|
-
"main"
|
|
21
|
+
"main": "./uuid.js",
|
|
14
22
|
"devDependencies": {
|
|
15
23
|
"mocha": "1.8.0"
|
|
16
24
|
},
|
|
@@ -18,11 +26,12 @@
|
|
|
18
26
|
"test": "mocha test/test.js"
|
|
19
27
|
},
|
|
20
28
|
"browser": {
|
|
21
|
-
"./rng.js": "./rng-browser.js"
|
|
29
|
+
"./rng.js": "./rng-browser.js",
|
|
30
|
+
"./buffer.js": "./buffer-browser.js"
|
|
22
31
|
},
|
|
23
|
-
"repository"
|
|
24
|
-
"type"
|
|
25
|
-
"url"
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/shtylman/node-uuid.git"
|
|
26
35
|
},
|
|
27
36
|
"testling": {
|
|
28
37
|
"browsers": [
|
package/uuid.js
CHANGED
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
// returns 128-bits of randomness, since that's what's usually required
|
|
9
9
|
var _rng = require('./rng');
|
|
10
10
|
|
|
11
|
-
// Buffer class to use
|
|
12
|
-
|
|
11
|
+
// Buffer class to use,
|
|
12
|
+
// we can't use `Buffer || Array` otherwise Buffer would be
|
|
13
|
+
// shimmed by browserify and added to the browser build
|
|
14
|
+
var BufferClass = require('./buffer');
|
|
13
15
|
|
|
14
16
|
// Maps for number <-> hex string conversion
|
|
15
17
|
var _byteToHex = [];
|