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 CHANGED
@@ -1,5 +1,5 @@
1
1
  language: node_js
2
2
  node_js:
3
- - 0.6
4
- - 0.8
5
- - 0.9
3
+ - "0.6"
4
+ - "0.8"
5
+ - "0.10"
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # uuid [![Build Status](https://secure.travis-ci.org/shtylman/node-uuid.png?branch=master)](http://travis-ci.org/shtylman/node-uuid) #
1
+ # uuid [![Build Status](https://secure.travis-ci.org/defunctzombie/node-uuid.png?branch=master)](http://travis-ci.org/defunctzombie/node-uuid) #
2
2
 
3
- [![browser support](http://ci.testling.com/shtylman/node-uuid.png)](http://ci.testling.com/shtylman/node-uuid)
3
+ [![browser support](https://ci.testling.com/defunctzombie/node-uuid.png)](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
- * 1.1K minified and gzip'ed (Want something smaller? Check this [crazy shit](https://gist.github.com/982883) out! )
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
- npm install uuid uuid-js
181
- node benchmark/benchmark.js
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,9 @@
1
+ {
2
+ "name": "benchmark-uuid",
3
+ "private": true,
4
+ "description": "Benchmarks for node-uuid",
5
+ "dependencies": {
6
+ "uuid": "^1.4.1",
7
+ "uuid-js": "^0.7.4"
8
+ }
9
+ }
@@ -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" : "uuid",
3
- "version" : "1.4.1",
4
- "description" : "Rigorous implementation of RFC4122 (v1 and v4) UUIDs.",
5
- "keywords" : ["uuid", "guid", "rfc4122"],
6
- "author" : "Robert Kieffer <robert@broofa.com>",
7
- "contributors" : [
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" : "./uuid.js",
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" : "git",
25
- "url" : "https://github.com/shtylman/node-uuid.git"
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
- var BufferClass = typeof(Buffer) == 'function' ? Buffer : Array;
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 = [];