Socket
Socket
Sign inDemoInstall

scru64

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scru64 - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

8

dist/index.d.ts

@@ -170,2 +170,6 @@ /**

* See the {@link Scru64Generator} class documentation for the description.
*
* Note that this mode of generation is not recommended because rewinding
* `timestamp` without changing `nodeId` considerably increases the risk of
* duplicate results.
*/

@@ -196,2 +200,6 @@ generateOrReset(): Scru64Id;

*
* Note that this mode of generation is not recommended because rewinding
* `timestamp` without changing `nodeId` considerably increases the risk of
* duplicate results.
*
* @param rollbackAllowance - The amount of `unixTsMs` rollback that is

@@ -198,0 +206,0 @@ * considered significant. A suggested value is `10_000` (milliseconds).

@@ -399,2 +399,6 @@ /**

* See the {@link Scru64Generator} class documentation for the description.
*
* Note that this mode of generation is not recommended because rewinding
* `timestamp` without changing `nodeId` considerably increases the risk of
* duplicate results.
*/

@@ -448,2 +452,6 @@ generateOrReset() {

*
* Note that this mode of generation is not recommended because rewinding
* `timestamp` without changing `nodeId` considerably increases the risk of
* duplicate results.
*
* @param rollbackAllowance - The amount of `unixTsMs` rollback that is

@@ -450,0 +458,0 @@ * considered significant. A suggested value is `10_000` (milliseconds).

2

package.json
{
"name": "scru64",
"version": "0.3.4",
"version": "0.3.5",
"description": "SCRU64: Sortable, Clock-based, Realm-specifically Unique identifier",

@@ -5,0 +5,0 @@ "type": "module",

@@ -9,3 +9,3 @@ # SCRU64: Sortable, Clock-based, Realm-specifically Unique identifier

- ~62-bit non-negative integer storable as signed/unsigned 64-bit integer
- 63-bit non-negative integer storable as signed/unsigned 64-bit integer
- Sortable by generation time (as integer and as text)

@@ -12,0 +12,0 @@ - 12-digit case-insensitive textual representation (Base36)

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