New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

scru128

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scru128 - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

7

CHANGELOG.md
# Changelog
## v3.0.1 - 2023-07-16
## v3.0.2 - 2023-07-17

@@ -26,3 +26,8 @@ Most notably, v3 switches the letter case of generated IDs from uppercase (e.g.,

- TypeScript transpilation target from ES2015 to ES2016
- Edge case behavior of generator functions' rollback allowance handling
### Maintenance
- Updated dev dependencies
## v2.5.0 - 2023-06-21

@@ -29,0 +34,0 @@

4

dist/index.d.ts

@@ -183,4 +183,4 @@ /**

* All of these methods return monotonically increasing IDs unless a `timestamp`
* provided is significantly (by default, ten seconds or more) smaller than the
* one embedded in the immediately preceding ID. If such a significant clock
* provided is significantly (by default, more than ten seconds) smaller than
* the one embedded in the immediately preceding ID. If such a significant clock
* rollback is detected, the `generate` (OrReset) method resets the generator

@@ -187,0 +187,0 @@ * and returns a new ID based on the given `timestamp`, while the `OrAbort`

@@ -391,4 +391,4 @@ /**

* All of these methods return monotonically increasing IDs unless a `timestamp`
* provided is significantly (by default, ten seconds or more) smaller than the
* one embedded in the immediately preceding ID. If such a significant clock
* provided is significantly (by default, more than ten seconds) smaller than
* the one embedded in the immediately preceding ID. If such a significant clock
* rollback is detected, the `generate` (OrReset) method resets the generator

@@ -487,3 +487,3 @@ * and returns a new ID based on the given `timestamp`, while the `OrAbort`

}
else if (timestamp + rollbackAllowance > this.timestamp) {
else if (timestamp + rollbackAllowance >= this.timestamp) {
// go on with previous timestamp if new one is not much smaller

@@ -490,0 +490,0 @@ this.counterLo++;

{
"name": "scru128",
"version": "3.0.1",
"version": "3.0.2",
"description": "SCRU128: Sortable, Clock and Random number-based Unique identifier",

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

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