Comparing version 1.0.0 to 1.0.2
@@ -84,6 +84,6 @@ "use strict"; | ||
function _prng(root) { | ||
var crypto = root && (root.crypto || root.msCrypto) | ||
if (root) { | ||
if (crypto) { | ||
try { | ||
var crypto = root.crypto || root.msCrypto | ||
return function() { | ||
@@ -96,3 +96,3 @@ return crypto.getRandomValues(new Uint16Array(1))[0] / 0xFFFF | ||
try { | ||
var crypto = require("crypto") | ||
crypto = require("crypto") | ||
return function() { | ||
@@ -99,0 +99,0 @@ return crypto.randomBytes(2).readUInt16LE() / 0xFFFF |
{ | ||
"name": "ulid", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"description": "A universally unique lexicographically sortable identifier generator", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -84,2 +84,3 @@ <h1 align="center"> | ||
| [Python](https://github.com/ahawker/ulid) | [ahawker](https://github.com/ahawker) | ✓ | | ||
| [Python](https://github.com/mdomke/python-ulid) | [mdomke](https://github.com/mdomke) | ✓ | | ||
| [Ruby](https://github.com/rafaelsales/ulid) | [rafaelsales](https://github.com/rafaelsales) | | ||
@@ -86,0 +87,0 @@ | [Rust](https://github.com/mmacedoeu/rulid.rs) | [mmacedoeu](https://github.com/mmacedoeu/rulid.rs) | ✓ | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193
21934
11