Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uuidjs

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uuidjs - npm Package Compare versions

Comparing version 3.5.3 to 3.6.0

types/uuidjs/index.d.ts

2

dist/uuid.core.js
/*
Version: v3.5.3
Version: v3.6.0
The MIT License: Copyright (c) 2010-2017 LiosK.

@@ -4,0 +4,0 @@ */

{
"name": "uuidjs",
"version": "3.5.3",
"version": "3.6.0",
"title": "UUID.js",
"description": "RFC-compliant UUID Generator for JavaScript",
"main": "src/uuid.js",
"types": "types/uuidjs/index.d.ts",
"directories": {

@@ -14,3 +15,4 @@ "doc": "doc",

"test": "qunit test/test.nodejs.js",
"jsdoc": "jsdoc -R ./README.md -d ./doc src/uuid.js"
"test-ts": "tsc --strict --noEmit types/uuidjs/uuidjs-tests.ts",
"jsdoc": "jsdoc -R README.md -d doc src/uuid.js"
},

@@ -39,5 +41,6 @@ "repository": {

"devDependencies": {
"jsdoc": "^3.4.3",
"qunitjs": "^1.23.1"
"jsdoc": "^3.5.5",
"qunitjs": "^2.4.0",
"typescript": "^2.5.3"
}
}

@@ -15,6 +15,12 @@ # NAME

// Node.js
let UUID = require("uuidjs")
let uuid = UUID.generate()
let UUID = require("uuidjs");
let uuid = UUID.generate();
```
```typescript
// TypeScript
import * as UUID from "uuidjs";
let uuid: string = UUID.generate();
```
# DESCRIPTION

@@ -46,3 +52,3 @@

```javascript
const UUID = require("uuidjs")
const UUID = require("uuidjs");
```

@@ -130,3 +136,4 @@

* [GitHub Repository](https://github.com/LiosK/UUID.js)
* [npm Package](https://www.npmjs.com/package/uuidjs)
* [API Documentation](https://liosk.github.io/UUID.js/doc/)
* [Run test cases on your browser](https://liosk.github.io/UUID.js/test/test.uuid.js.html)

@@ -6,7 +6,11 @@ /**

* @author LiosK
* @version v3.5.3
* @version v3.6.0
* @license The MIT License: Copyright (c) 2010-2017 LiosK.
*/
/** @namespace */
/**
* @class
* @classdesc {@link UUID} object.
* @hideconstructor
*/
var UUID;

@@ -39,4 +43,4 @@

* @private
* @param {int} x Positive integer ranging from 0 to 53, inclusive.
* @returns {int} Unsigned x-bit random integer (0 <= f(x) < 2^x).
* @param {number} x Unsigned integer ranging from 0 to 53, inclusive.
* @returns {number} Unsigned x-bit random integer (0 <= f(x) < 2^x).
*/

@@ -52,4 +56,4 @@ UUID._getRandomInt = function(x) {

* @private
* @param {int} num
* @param {int} length
* @param {number} num
* @param {number} length
* @returns {string}

@@ -66,3 +70,3 @@ */

* @since 3.2
* @type object
* @type {any}
*/

@@ -69,0 +73,0 @@ UUID.overwrittenUUID = overwrittenUUID;

@@ -6,7 +6,11 @@ /**

* @author LiosK
* @version v3.5.3
* @version v3.6.0
* @license The MIT License: Copyright (c) 2010-2017 LiosK.
*/
/** @namespace */
/**
* @class
* @classdesc {@link UUID} object.
* @hideconstructor
*/
var UUID;

@@ -39,4 +43,4 @@

* @private
* @param {int} x Positive integer ranging from 0 to 53, inclusive.
* @returns {int} Unsigned x-bit random integer (0 <= f(x) < 2^x).
* @param {number} x Unsigned integer ranging from 0 to 53, inclusive.
* @returns {number} Unsigned x-bit random integer (0 <= f(x) < 2^x).
*/

@@ -52,4 +56,4 @@ UUID._getRandomInt = function(x) {

* @private
* @param {int} num
* @param {int} length
* @param {number} num
* @param {number} length
* @returns {string}

@@ -66,3 +70,3 @@ */

* @since 3.2
* @type object
* @type {any}
*/

@@ -118,3 +122,3 @@ UUID.overwrittenUUID = overwrittenUUID;

* Names of UUID internal fields.
* @type string[]
* @type {string[]}
* @constant

@@ -128,3 +132,3 @@ * @since 3.0

* Sizes of UUID internal fields.
* @type int[]
* @type {number[]}
* @constant

@@ -173,8 +177,8 @@ * @since 3.0

* @constructs UUID
* @param {uint32} [timeLow=0] time_low field (octet 0-3).
* @param {uint16} [timeMid=0] time_mid field (octet 4-5).
* @param {uint16} [timeHiAndVersion=0] time_hi_and_version field (octet 6-7).
* @param {uint8} [clockSeqHiAndReserved=0] clock_seq_hi_and_reserved field (octet 8).
* @param {uint8} [clockSeqLow=0] clock_seq_low field (octet 9).
* @param {uint48} [node=0] node field (octet 10-15).
* @param {number} [timeLow=0] time_low field (octet 0-3, uint32).
* @param {number} [timeMid=0] time_mid field (octet 4-5, uint16).
* @param {number} [timeHiAndVersion=0] time_hi_and_version field (octet 6-7, uint16).
* @param {number} [clockSeqHiAndReserved=0] clock_seq_hi_and_reserved field (octet 8, uint8).
* @param {number} [clockSeqLow=0] clock_seq_low field (octet 9, uint8).
* @param {number} [node=0] node field (octet 10-15, uint48).
* @returns {UUID} this.

@@ -188,3 +192,3 @@ */

* UUID internal field values as an array of integers.
* @type int[]
* @type {number[]}
*/

@@ -195,3 +199,3 @@ this.intFields = new Array(6);

* UUID internal field values as an array of binary strings.
* @type string[]
* @type {string[]}
*/

@@ -202,3 +206,3 @@ this.bitFields = new Array(6);

* UUID internal field values as an array of hexadecimal strings.
* @type string[]
* @type {string[]}
*/

@@ -211,3 +215,3 @@ this.hexFields = new Array(6);

this.bitFields[i] = this.bitFields[names[i]] = bin(intValue, sizes[i]);
this.hexFields[i] = this.hexFields[names[i]] = hex(intValue, sizes[i] / 4);
this.hexFields[i] = this.hexFields[names[i]] = hex(intValue, sizes[i] >>> 2);
}

@@ -217,9 +221,9 @@

* UUID version number.
* @type int
* @type {number}
*/
this.version = (this.intFields.timeHiAndVersion >> 12) & 0xF;
this.version = (this.intFields.timeHiAndVersion >>> 12) & 0xF;
/**
* 128-bit binary string representation.
* @type string
* @type {string}
*/

@@ -230,3 +234,3 @@ this.bitString = this.bitFields.join("");

* Non-delimited hexadecimal string representation ("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx").
* @type string
* @type {string}
* @since v3.3.0

@@ -238,3 +242,3 @@ */

* Hexadecimal string representation ("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
* @type string
* @type {string}
*/

@@ -246,3 +250,3 @@ this.hexString = this.hexFields[0] + "-" + this.hexFields[1] + "-" + this.hexFields[2]

* URN string representation ("urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
* @type string
* @type {string}
*/

@@ -257,4 +261,4 @@ this.urn = "urn:uuid:" + this.hexString;

* @private
* @param {int} num
* @param {int} length
* @param {number} num
* @param {number} length
* @returns {string}

@@ -277,3 +281,3 @@ */

* @param {UUID} uuid
* @returns {bool} True if two {@link UUID} objects are equal.
* @returns {boolean} True if two {@link UUID} objects are equal.
*/

@@ -290,3 +294,3 @@ UUID.prototype.equals = function(uuid) {

* Nil UUID object.
* @type UUID
* @type {UUID}
* @constant

@@ -353,3 +357,3 @@ * @since v3.4.0

* @private
* @type float
* @type {number}
*/

@@ -361,3 +365,3 @@ UUID._tsRatio = 1 / 4;

* @private
* @type UUIDState
* @type {UUIDState}
*/

@@ -368,4 +372,4 @@ UUID._state = null;

* @private
* @param {Date|int} time ECMAScript Date Object or milliseconds from 1970-01-01.
* @returns {object}
* @param {Date|number} time ECMAScript Date Object or milliseconds from 1970-01-01.
* @returns {any}
*/

@@ -372,0 +376,0 @@ UUID._getTimeFieldValues = function(time) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc