Socket
Socket
Sign inDemoInstall

@types/bcryptjs

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/bcryptjs - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

22

bcryptjs/index.d.ts
// Type definitions for bcryptjs v2.4.0
// Project: https://github.com/dcodeIO/bcrypt.js
// Definitions by: Joshua Filby <https://github.com/Joshua-F/>, Rafael Kraut <https://github.com/RafaelKr>
// Definitions by: Joshua Filby <https://github.com/Joshua-F/>
// Rafael Kraut <https://github.com/RafaelKr>
// Branislav Holý <https://github.com/branoholy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
/**

@@ -106,1 +108,17 @@ * Sets the pseudo random number generator to use as a fallback if neither node's crypto module nor the Web Crypto API is available.

export declare function getSalt(hash: string): string;
/**
* Encodes a byte array to base64 with up to len bytes of input, using the custom bcrypt alphabet.
* @function
* @param b Byte array
* @param len Maximum input length
*/
export declare function encodeBase64(b: Readonly<ArrayLike<number>>, len: number): string;
/**
* Decodes a base64 encoded string to up to len bytes of output, using the custom bcrypt alphabet.
* @function
* @param s String to decode
* @param len Maximum output length
*/
export declare function decodeBase64(s: string, len: number): number[];

16

bcryptjs/package.json
{
"name": "@types/bcryptjs",
"version": "2.4.1",
"version": "2.4.2",
"description": "TypeScript definitions for bcryptjs",

@@ -13,3 +13,9 @@ "license": "MIT",

"name": "Rafael Kraut",
"url": "https://github.com/RafaelKr"
"url": "https://github.com/RafaelKr",
"githubUsername": "RafaelKr"
},
{
"name": "Branislav Holý",
"url": "https://github.com/branoholy",
"githubUsername": "branoholy"
}

@@ -20,8 +26,8 @@ ],

"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "d421258ebcccf1770c75dd5bfb5563b5de1bc1d5543e7c10c19822144b14b647",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "9345c8c9ad3f5bca4c674be7a291facba6488a5a4ef0fa3ed9a60bda92c48db6",
"typeScriptVersion": "2.1"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bcryptjs
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bcryptjs
Additional Details
* Last updated: Mon, 21 Aug 2017 21:47:08 GMT
* Last updated: Wed, 19 Sep 2018 22:33:26 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Joshua Filby <https://github.com/Joshua-F/>, Rafael Kraut <https://github.com/RafaelKr>.
These definitions were written by Joshua Filby <https://github.com/Joshua-F/>, Rafael Kraut <https://github.com/RafaelKr>, Branislav Holý <https://github.com/branoholy>.

Sorry, the diff of this file is not supported yet

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