Socket
Socket
Sign inDemoInstall

@adonisjs/hash

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/hash - npm Package Compare versions

Comparing version 3.1.1 to 4.0.0

1

build/adonis-typings/hash.d.ts

@@ -86,2 +86,3 @@ declare module '@ioc:Adonis/Core/Hash' {

fake: {
config: undefined;
implementation: FakeContract;

@@ -88,0 +89,0 @@ };

14

build/adonis-typings/hash.js
/*
* @adonisjs/hash
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
* @adonisjs/hash
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

@@ -6,5 +6,5 @@ /**

export default class HashProvider {
protected $container: IocContract;
constructor($container: IocContract);
protected container: IocContract;
constructor(container: IocContract);
register(): void;
}

@@ -8,8 +8,8 @@ "use strict";

class HashProvider {
constructor($container) {
this.$container = $container;
constructor(container) {
this.container = container;
}
register() {
this.$container.singleton('Adonis/Core/Hash', () => {
const config = this.$container.use('Adonis/Core/Config').get('hash', {});
this.container.singleton('Adonis/Core/Hash', () => {
const config = this.container.use('Adonis/Core/Config').get('hash', {});
return new Hash_1.Hash(this, config);

@@ -16,0 +16,0 @@ });

"use strict";
/*
* @adonisjs/hash
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
* @adonisjs/hash
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -11,0 +11,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

"use strict";
/*
* @adonisjs/hash
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
* @adonisjs/hash
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -11,0 +11,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

@@ -35,3 +35,3 @@ /// <reference path="../../adonis-typings/hash.d.ts" />

private validateConfig;
protected $cacheMappings: boolean;
protected singleton: boolean;
/**

@@ -83,3 +83,3 @@ * Pulling the default driver name from the user config.

*/
use(name?: string): HashDriverContract;
use(name?: string): any;
}
"use strict";
/*
* @adonisjs/hash
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
* @adonisjs/hash
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -23,3 +23,3 @@ exports.Hash = void 0;

this.config = config;
this.$cacheMappings = true;
this.singleton = true;
this.validateConfig();

@@ -26,0 +26,0 @@ }

"use strict";
/*
* @adonisjs/hash
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
* @adonisjs/hash
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
Object.defineProperty(exports, "__esModule", { value: true });
var Hash_1 = require("./src/Hash");
Object.defineProperty(exports, "Hash", { enumerable: true, get: function () { return Hash_1.Hash; } });
{
"name": "@adonisjs/hash",
"version": "3.1.1",
"description": "Multi driver hash module with support for PHC string formats",
"main": "build/providers/HashProvider",
"files": [
"build/adonis-typings",
"build/providers",
"build/src",
"build/standalone.d.ts",
"build/standalone.js"
],
"scripts": {
"mrm": "mrm --preset=@adonisjs/mrm-preset",
"pretest": "npm run lint",
"test": "node japaFile.js",
"lint": "eslint . --ext=.ts",
"clean": "del build",
"compile": "npm run lint && npm run clean && tsc",
"build": "npm run compile",
"commit": "git-cz",
"release": "np",
"version": "npm run build"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/poppinss/hash.git"
},
"keywords": [
"hash",
"bcrypt",
"argon2"
],
"author": "poppinss,virk",
"license": "MIT",
"bugs": {
"url": "https://github.com/poppinss/hash/issues"
},
"homepage": "https://github.com/poppinss/hash#readme",
"devDependencies": {
"@adonisjs/fold": "^6.3.5",
"@adonisjs/mrm-preset": "^2.3.0",
"@types/node": "^14.0.13",
"argon2": "^0.26.2",
"bcrypt": "^5.0.0",
"commitizen": "^4.1.2",
"cz-conventional-changelog": "^3.2.0",
"del-cli": "^3.0.1",
"doctoc": "^1.4.0",
"eslint": "^7.2.0",
"eslint-plugin-adonis": "^1.0.10",
"husky": "^4.2.5",
"japa": "^3.1.1",
"mrm": "^2.3.3",
"np": "^6.2.4",
"phc-argon2": "^1.0.0",
"phc-bcrypt": "^1.0.0",
"ts-node": "^8.10.2",
"typescript": "^3.9.5"
},
"nyc": {
"exclude": [
"test"
],
"extension": [
".ts"
]
},
"husky": {
"hooks": {
"pre-commit": "doctoc README.md --title='## Table of contents' && git add README.md",
"commit-msg": "node ./node_modules/@adonisjs/mrm-preset/validateCommit/conventional/validate.js"
}
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"np": {
"contents": ".",
"anyBranch": false
},
"dependencies": {
"@phc/format": "^0.5.0",
"@poppinss/manager": "^2.1.8",
"@poppinss/utils": "^2.2.7"
},
"optionalDependencies": {
"phc-argon2": "^1.0.0",
"phc-bcrypt": "^1.0.0"
}
"name": "@adonisjs/hash",
"version": "4.0.0",
"description": "Multi driver hash module with support for PHC string formats",
"main": "build/providers/HashProvider",
"files": [
"build/adonis-typings",
"build/providers",
"build/src",
"build/standalone.d.ts",
"build/standalone.js"
],
"scripts": {
"mrm": "mrm --preset=@adonisjs/mrm-preset",
"pretest": "npm run lint",
"test": "node japaFile.js",
"lint": "eslint . --ext=.ts",
"clean": "del build",
"compile": "npm run lint && npm run clean && tsc",
"build": "npm run compile",
"commit": "git-cz",
"release": "np",
"version": "npm run build",
"format": "prettier --write ."
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/poppinss/hash.git"
},
"keywords": [
"hash",
"bcrypt",
"argon2"
],
"author": "poppinss,virk",
"license": "MIT",
"bugs": {
"url": "https://github.com/poppinss/hash/issues"
},
"homepage": "https://github.com/poppinss/hash#readme",
"devDependencies": {
"@adonisjs/fold": "^6.3.5",
"@adonisjs/mrm-preset": "^2.3.7",
"@types/node": "^14.0.14",
"argon2": "^0.26.2",
"bcrypt": "^5.0.0",
"commitizen": "^4.1.2",
"cz-conventional-changelog": "^3.2.0",
"del-cli": "^3.0.1",
"doctoc": "^1.4.0",
"eslint": "^7.4.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-adonis": "^1.0.14",
"eslint-plugin-prettier": "^3.1.4",
"husky": "^4.2.5",
"japa": "^3.1.1",
"mrm": "^2.3.3",
"np": "^6.3.0",
"npm-audit-html": "^1.4.1",
"phc-argon2": "^1.0.10",
"phc-bcrypt": "^1.0.3",
"prettier": "^2.0.5",
"ts-node": "^8.10.2",
"typescript": "^3.9.6"
},
"nyc": {
"exclude": [
"test"
],
"extension": [
".ts"
]
},
"husky": {
"hooks": {
"pre-commit": "doctoc README.md --title='## Table of contents' && git add README.md && npm audit --production --json | ./node_modules/.bin/npm-audit-html && git add npm-audit.html",
"commit-msg": "node ./node_modules/@adonisjs/mrm-preset/validateCommit/conventional/validate.js"
}
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"np": {
"contents": ".",
"anyBranch": false
},
"dependencies": {
"@phc/format": "^1.0.0",
"@poppinss/manager": "^3.0.1",
"@poppinss/utils": "^2.2.7"
},
"optionalDependencies": {}
}

@@ -20,3 +20,3 @@ <div align="center">

- [Switching drivers](#switching-drivers)
- [API Docs](#api-docs)
- [Audit report](#audit-report)

@@ -85,7 +85,5 @@ <!-- END doctoc generated TOC please keep comment here to allow auto update -->

## API Docs
Following are the autogenerated files via Typedoc
## Audit report
[Click here](https://htmlpreview.github.io/?https://github.com/adonisjs/hash/blob/develop/npm-audit.html) to see the latest npm audit report.
* [API](docs/README.md)
[circleci-image]: https://img.shields.io/circleci/project/github/adonisjs/hash/master.svg?style=for-the-badge&logo=circleci

@@ -92,0 +90,0 @@ [circleci-url]: https://circleci.com/gh/adonisjs/hash "circleci"

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