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

idea-toolbox

Package Overview
Dependencies
Maintainers
1
Versions
377
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idea-toolbox - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

6

index.js

@@ -103,3 +103,3 @@ 'use strict';

*/
function IUID(project, cb, attempt, maxAttempts) {
function IUID(dynamo, project, cb, attempt, maxAttempts) {
if(!project) return cb(false);

@@ -110,5 +110,5 @@ attempt = attempt || 0;

let id = project+'_'+UUIDV4();
Dynamo.getItem({ TableName: 'idea_iuid', Key: { project: project, id: id } },
dynamo.getItem({ TableName: 'idea_iuid', Key: { project: project, id: id } },
(err, data) => {
if(data.Item) return IUID(project, cb, attempt+1, maxAttempts); // the ID exists, try again
if(data.Item) return IUID(dynamo, project, cb, attempt+1, maxAttempts); // ID exists, try again
else Dynamo.putItem({ TableName: 'idea_iuid', Key: { project: project, id: id } },

@@ -115,0 +115,0 @@ (err, data) => {

{
"name": "idea-toolbox",
"version": "0.0.4",
"version": "0.0.5",
"description": "IDEA's utility functions",

@@ -5,0 +5,0 @@ "engines": {

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