Socket
Socket
Sign inDemoInstall

uuid

Package Overview
Dependencies
0
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.0 to 3.2.1

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="3.2.1"></a>
## [3.2.1](https://github.com/kelektiv/node-uuid/compare/v3.1.0...v3.2.1) (2018-01-16)
### Bug Fixes
* use msCrypto if available. Fixes [#241](https://github.com/kelektiv/node-uuid/issues/241) ([#247](https://github.com/kelektiv/node-uuid/issues/247)) ([1fef18b](https://github.com/kelektiv/node-uuid/commit/1fef18b))
<a name="3.2.0"></a>

@@ -7,0 +17,0 @@ # [3.2.0](https://github.com/kelektiv/node-uuid/compare/v3.1.0...v3.2.0) (2018-01-16)

5

lib/rng-browser.js

@@ -6,4 +6,5 @@ // Unique ID creation requires a high quality random # generator. In the

var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues) ||
(typeof(msCrypto) != 'undefined' && msCrypto.getRandomValues);
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues.bind(crypto)) ||
(typeof(msCrypto) != 'undefined' && msCrypto.getRandomValues.bind(msCrypto));
if (getRandomValues) {

@@ -10,0 +11,0 @@ // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto

2

package.json
{
"name": "uuid",
"version": "3.2.0",
"version": "3.2.1",
"description": "RFC4122 (v1, v4, and v5) UUIDs",

@@ -5,0 +5,0 @@ "keywords": [

@@ -31,3 +31,3 @@ <!--

const uuidv1 = require('uuid/v1');
uuidv1(); // ⇨ 'cd4b78f0-facb-11e7-8ab9-db97a89e6c61'
uuidv1(); // ⇨ 'f64f2940-fae4-11e7-8c5f-ef356f279131'

@@ -60,3 +60,3 @@ ```

const uuidv4 = require('uuid/v4');
uuidv4(); // ⇨ '50fcd19b-5302-4b7b-97fd-92cabead0a6d'
uuidv4(); // ⇨ '416ac246-e7ac-49ff-93b4-f7e94d997e6b'

@@ -172,4 +172,4 @@ ```

const arr = new Array();
uuidv1(null, arr, 0); // ⇨ [ 205, 84, 121, 160, 250, 203, 17, 231, 146, 52, 219, 151, 168, 158, 108, 97 ]
uuidv1(null, arr, 16); // ⇨ [ 205, 84, 121, 160, 250, 203, 17, 231, 146, 52, 219, 151, 168, 158, 108, 97, 205, 84, 160, 176, 250, 203, 17, 231, 146, 52, 219, 151, 168, 158, 108, 97 ]
uuidv1(null, arr, 0); // ⇨ [ 246, 87, 141, 176, 250, 228, 17, 231, 146, 52, 239, 53, 111, 39, 145, 49 ]
uuidv1(null, arr, 16); // ⇨ [ 246, 87, 141, 176, 250, 228, 17, 231, 146, 52, 239, 53, 111, 39, 145, 49, 246, 87, 180, 192, 250, 228, 17, 231, 146, 52, 239, 53, 111, 39, 145, 49 ]

@@ -243,4 +243,4 @@ ```

const buffer = new Array();
uuidv4(null, buffer, 0); // ⇨ [ 67, 176, 245, 14, 66, 213, 76, 211, 160, 194, 254, 30, 190, 20, 195, 236 ]
uuidv4(null, buffer, 16); // ⇨ [ 67, 176, 245, 14, 66, 213, 76, 211, 160, 194, 254, 30, 190, 20, 195, 236, 25, 78, 246, 100, 115, 188, 70, 66, 185, 84, 18, 78, 23, 254, 174, 151 ]
uuidv4(null, buffer, 0); // ⇨ [ 175, 10, 162, 184, 217, 255, 77, 139, 161, 80, 41, 200, 70, 238, 196, 250 ]
uuidv4(null, buffer, 16); // ⇨ [ 175, 10, 162, 184, 217, 255, 77, 139, 161, 80, 41, 200, 70, 238, 196, 250, 75, 162, 105, 153, 48, 238, 77, 58, 169, 56, 158, 207, 106, 160, 47, 239 ]

@@ -247,0 +247,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc