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

fable-uuid

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fable-uuid - npm Package Compare versions

Comparing version 3.0.7 to 3.0.8

14

package.json
{
"name": "fable-uuid",
"version": "3.0.7",
"version": "3.0.8",
"description": "A simple UUID Generator.",

@@ -49,13 +49,3 @@ "main": "source/Fable-UUID.js",

"devDependencies": {
"browserify": "^17.0.0",
"chai": "4.3.10",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-sourcemaps": "^3.0.0",
"gulp-terser": "^2.1.0",
"gulp-util": "^3.0.8",
"mocha": "10.2.0",
"nyc": "^15.1.0",
"vinyl-buffer": "^1.0.1",
"vinyl-source-stream": "^2.0.0"
"quackage": "^1.0.33"
},

@@ -62,0 +52,0 @@ "dependencies": {

1

source/Fable-UUID.js

@@ -16,2 +16,3 @@ /**

this.serviceType = 'UUID';
this._Package = require('../package.json');

@@ -18,0 +19,0 @@ // Determine if the module is in "Random UUID Mode" which means just use the random character function rather than the v4 random UUID spec.

@@ -25,7 +25,7 @@ /**

'Fable-UUID',
function()
() =>
{
setup
(
function()
() =>
{

@@ -38,3 +38,3 @@ }

'Object Sanity',
function()
() =>
{

@@ -44,7 +44,11 @@ test

'initialize should build a happy little object',
function()
() =>
{
var tmpFableUUID = new libFableUUID();
Expect(tmpFableUUID)
.to.be.an('object', 'Fable-UUID should initialize as an object directly from the require statement.');
const tmpFableUUID = new libFableUUID();
Expect(tmpFableUUID).to.be.an('object', 'Fable-UUID should initialize as an object directly from the require statement.');
Expect(tmpFableUUID._PackageFableServiceProvider).to.be.an('object', 'Fable should have a _PackageFableServiceProvider object.');
Expect(tmpFableUUID._PackageFableServiceProvider.name).equal('fable-serviceproviderbase', 'Fable _PackageFableServiceProvider.package.name should be set.');
Expect(tmpFableUUID._Package).to.be.an('object', 'Fable should have a _Package object.');
Expect(tmpFableUUID._Package.name).to.equal('fable-uuid', 'Fable _Package.package.name should be set.');
}

@@ -55,5 +59,5 @@ );

'legacy new() initialization should build a happy little object',
function()
() =>
{
var tmpFableUUID = libFableUUID.new();
const tmpFableUUID = libFableUUID.new();
Expect(tmpFableUUID)

@@ -66,5 +70,5 @@ .to.be.an('object', 'Fable-UUID should initialize as an object directly from the require statement.');

'basic class parameters',
function()
() =>
{
var tmpFableUUID = new libFableUUID();
const tmpFableUUID = new libFableUUID();
Expect(tmpFableUUID).to.be.an('object');

@@ -78,3 +82,3 @@ }

'Generation',
function()
() =>
{

@@ -84,6 +88,6 @@ test

'Generating a UUID',
function()
() =>
{
var tmpFableUUID = new libFableUUID();
var tmpUUID = tmpFableUUID.getUUID();
const tmpFableUUID = new libFableUUID();
const tmpUUID = tmpFableUUID.getUUID();
Expect(tmpUUID)

@@ -100,6 +104,6 @@ .to.be.a('string')

'Bad settings object',
function()
() =>
{
var tmpFableUUID = new libFableUUID();
var tmpUUID = tmpFableUUID.getUUID();
const tmpFableUUID = new libFableUUID();
const tmpUUID = tmpFableUUID.getUUID();
console.log(`Standard UUID Generated: [${tmpUUID}]`);

@@ -117,6 +121,6 @@ Expect(tmpUUID)

'Settings object without a UUID definition',
function()
() =>
{
var tmpFableUUID = new libFableUUID();
var tmpUUID = tmpFableUUID.getUUID();
const tmpFableUUID = new libFableUUID();
const tmpUUID = tmpFableUUID.getUUID();
Expect(tmpUUID)

@@ -133,6 +137,6 @@ .to.be.a('string')

'Settings object with a bad UUID definition',
function()
() =>
{
var tmpFableUUID = new libFableUUID({UUID: {DataCenter:'BAD',Worker:'JOB'}});
var tmpUUID = tmpFableUUID.getUUID();
const tmpFableUUID = new libFableUUID({UUID: {DataCenter:'BAD',Worker:'JOB'}});
const tmpUUID = tmpFableUUID.getUUID();
Expect(tmpUUID)

@@ -149,6 +153,6 @@ .to.be.a('string')

'Random bytes',
function()
() =>
{
var tmpFableUUID = new libFableUUID({UUIDModeRandom: true});
var tmpUUID = tmpFableUUID.getUUID();
const tmpFableUUID = new libFableUUID({UUIDModeRandom: true});
const tmpUUID = tmpFableUUID.getUUID();
console.log(`Random UUID Generated: [${tmpUUID}]`);

@@ -166,6 +170,6 @@ Expect(tmpUUID)

'Random bytes with length check',
function()
() =>
{
var tmpFableUUID = new libFableUUID({UUIDModeRandom: true, UUIDLength: 5});
var tmpUUID = tmpFableUUID.getUUID();
const tmpFableUUID = new libFableUUID({UUIDModeRandom: true, UUIDLength: 5});
const tmpUUID = tmpFableUUID.getUUID();
console.log(`Very short Random UUID Generated: [${tmpUUID}]`);

@@ -185,6 +189,6 @@ Expect(tmpUUID)

'Random bytes custom dictionary',
function()
() =>
{
var tmpFableUUID = new libFableUUID({UUIDModeRandom: true, UUIDLength: 50, UUIDDictionary: 'ab'});
var tmpUUID = tmpFableUUID.getUUID();
const tmpFableUUID = new libFableUUID({UUIDModeRandom: true, UUIDLength: 50, UUIDDictionary: 'ab'});
const tmpUUID = tmpFableUUID.getUUID();
console.log(`Long Random UUID Generated with custom dictionary: [${tmpUUID}]`);

@@ -191,0 +195,0 @@ Expect(tmpUUID)

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