@adonisjs/hash
Advanced tools
Comparing version 3.1.1 to 4.0.0
@@ -86,2 +86,3 @@ declare module '@ioc:Adonis/Core/Hash' { | ||
fake: { | ||
config: undefined; | ||
implementation: FakeContract; | ||
@@ -88,0 +89,0 @@ }; |
/* | ||
* @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; } }); |
184
package.json
{ | ||
"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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28003
3
738
23
98
+ Added@poppinss/manager@3.0.8(transitive)
- Removed@kdf/salt@2.0.1(transitive)
- Removed@mapbox/node-pre-gyp@1.0.11(transitive)
- Removed@phc/format@0.5.0(transitive)
- Removed@poppinss/manager@2.1.8(transitive)
- Removedabbrev@1.1.1(transitive)
- Removedagent-base@6.0.2(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedaproba@2.0.0(transitive)
- Removedare-we-there-yet@2.0.0(transitive)
- Removedargon2@0.30.3(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbcrypt@5.1.1(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedchownr@2.0.0(transitive)
- Removedcolor-support@1.1.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconsole-control-strings@1.1.0(transitive)
- Removeddebug@4.3.7(transitive)
- Removeddelegates@1.0.0(transitive)
- Removeddetect-libc@2.0.3(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedfs-minipass@2.1.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedgauge@3.0.2(transitive)
- Removedglob@7.2.3(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedhttps-proxy-agent@5.0.1(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedmake-dir@3.1.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminipass@3.3.65.0.0(transitive)
- Removedminizlib@2.1.2(transitive)
- Removedmkdirp@1.0.4(transitive)
- Removednode-addon-api@5.1.0(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removednopt@5.0.0(transitive)
- Removednpmlog@5.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedphc-argon2@1.1.4(transitive)
- Removedphc-bcrypt@1.0.8(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedrimraf@3.0.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsemver@6.3.17.6.3(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedtar@6.2.1(transitive)
- Removedtr46@0.0.3(transitive)
- Removedtsse@2.1.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
- Removedwide-align@1.1.5(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedyallist@4.0.0(transitive)
Updated@phc/format@^1.0.0
Updated@poppinss/manager@^3.0.1