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

@actually_connor/uuid

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@actually_connor/uuid - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

dist/esm-browser/util.js

32

dist/esm-browser/Uuid.js

@@ -9,2 +9,4 @@ "use strict";

const uuid_1 = require("uuid");
const util_1 = require("./util");
/**

@@ -128,5 +130,35 @@ * Uuid provides constants and static methods for working with and generating UUIDs

}
/**
* @inheritDoc
*/
equals(other) {
if (!(other instanceof Uuid)) {
return false;
}
return this.compareTo(other) === 0;
}
/**
* @inheritDoc
*/
compareTo(other) {
const compare = (0, util_1.strcmp)(this.toString(), other.toString());
if (compare < 0) {
return -1;
}
if (compare > 0) {
return 1;
}
return 0;
}
}
exports.Uuid = Uuid;

@@ -9,2 +9,4 @@ "use strict";

const uuid_1 = require("uuid");
const util_1 = require("./util");
/**

@@ -128,5 +130,35 @@ * Uuid provides constants and static methods for working with and generating UUIDs

}
/**
* @inheritDoc
*/
equals(other) {
if (!(other instanceof Uuid)) {
return false;
}
return this.compareTo(other) === 0;
}
/**
* @inheritDoc
*/
compareTo(other) {
const compare = (0, util_1.strcmp)(this.toString(), other.toString());
if (compare < 0) {
return -1;
}
if (compare > 0) {
return 1;
}
return 0;
}
}
exports.Uuid = Uuid;

@@ -9,2 +9,4 @@ "use strict";

const uuid_1 = require("uuid");
const util_1 = require("./util");
/**

@@ -128,5 +130,35 @@ * Uuid provides constants and static methods for working with and generating UUIDs

}
/**
* @inheritDoc
*/
equals(other) {
if (!(other instanceof Uuid)) {
return false;
}
return this.compareTo(other) === 0;
}
/**
* @inheritDoc
*/
compareTo(other) {
const compare = (0, util_1.strcmp)(this.toString(), other.toString());
if (compare < 0) {
return -1;
}
if (compare > 0) {
return 1;
}
return 0;
}
}
exports.Uuid = Uuid;

2

package.json
{
"name": "@actually_connor/uuid",
"version": "0.3.1",
"version": "0.3.2",
"description": "A JavaScript library that provides a 'ramsey/uuid'-like interface for the uuid package",

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

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