Socket
Socket
Sign inDemoInstall

json-rpc-random-id

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-rpc-random-id - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

index.js

@@ -5,4 +5,4 @@ module.exports = IdIterator

opts = opts || {}
let max = opts.max || Number.MAX_SAFE_INTEGER
let idCounter = typeof opts.start !== 'undefined' ? opts.start : Math.floor(Math.random() * max)
var max = opts.max || Number.MAX_SAFE_INTEGER
var idCounter = typeof opts.start !== 'undefined' ? opts.start : Math.floor(Math.random() * max)

@@ -9,0 +9,0 @@ return function createRandomId () {

{
"name": "json-rpc-random-id",
"version": "1.0.0",
"version": "1.0.1",
"description": "Generates an id useable in json rpc payloads.",

@@ -5,0 +5,0 @@ "main": "index.js",

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