Socket
Socket
Sign inDemoInstall

hashids

Package Overview
Dependencies
0
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

8

lib/hashids.js

@@ -20,4 +20,8 @@ /*

this.version = "1.0.0";
if (!(this instanceof Hashids)) {
return new Hashids(salt, minHashLength, alphabet);
}
this.version = "1.0.1";
/* internal settings */

@@ -340,2 +344,2 @@

module.exports = Hashids;
module.exports = Hashids;

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

"description": "A small Node.js class to generate YouTube-like hashids from one or many numbers. Use hashids when you do not want to expose your database ids to the user. ",
"version": "1.0.0",
"version": "1.0.1",
"preferGlobal": true,

@@ -8,0 +8,0 @@ "homepage": "http://hashids.org/node-js",

@@ -10,3 +10,3 @@ ![hashids](http://www.hashids.org.s3.amazonaws.com/public/img/hashids.png "Hashids")

![hashids](https://api.travis-ci.org/ivanakimov/hashids.node.js.svg "Hashids")
[![hashids](https://api.travis-ci.org/ivanakimov/hashids.node.js.svg "Hashids")](https://travis-ci.org/ivanakimov/hashids.node.js)

@@ -41,3 +41,3 @@ Installation

"dependencies": {
"hashids": "1.0.0"
"hashids": "1.0.1"
}

@@ -270,2 +270,6 @@ ```

**1.0.1**
- Auto-initialize a new instance of Hashids in case it wasn't initialized with "new" (thanks to [@rfink](https://github.com/ivanakimov/hashids.node.js/pull/15))
**1.0.0**

@@ -272,0 +276,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc