Socket
Socket
Sign inDemoInstall

hashids

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hashids - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

4

CHANGELOG.md
# CHANGELOG
**1.1.3**:
- looks like some bad input could generate negative numbers, which when passed to `_encode` would crash because it can't handle those <https://github.com/ivanakimov/hashids.js/issues/34>
**1.1.2**:

@@ -5,0 +9,0 @@

2

lib/hashids.js

@@ -262,3 +262,3 @@

if (this._encode(ret) !== id) {
if (this.encode(ret) !== id) {
ret = [];

@@ -265,0 +265,0 @@ }

@@ -5,3 +5,3 @@ {

"description": "Generate YouTube-like ids from numbers. Use Hashids when you do not want to expose your database ids to the user.",
"version": "1.1.2",
"version": "1.1.3",
"homepage": "http://hashids.org/javascript",

@@ -8,0 +8,0 @@ "repository": {

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