@adonisjs/encryption
Advanced tools
Comparing version 2.0.6 to 3.0.0
@@ -1,2 +0,2 @@ | ||
import { IocContract } from '@adonisjs/fold'; | ||
import { ApplicationContract } from '@ioc:Adonis/Core/Application'; | ||
/** | ||
@@ -6,5 +6,5 @@ * Encryption provider to binding encryption class to the container | ||
export default class EncryptionProvider { | ||
protected container: IocContract; | ||
constructor(container: IocContract); | ||
protected app: ApplicationContract; | ||
constructor(app: ApplicationContract); | ||
register(): void; | ||
} |
@@ -15,8 +15,8 @@ "use strict"; | ||
class EncryptionProvider { | ||
constructor(container) { | ||
this.container = container; | ||
constructor(app) { | ||
this.app = app; | ||
} | ||
register() { | ||
this.container.singleton('Adonis/Core/Encryption', () => { | ||
const Config = this.container.use('Adonis/Core/Config'); | ||
this.app.container.singleton('Adonis/Core/Encryption', () => { | ||
const Config = this.app.container.use('Adonis/Core/Config'); | ||
const { Encryption } = require('../src/Encryption'); | ||
@@ -23,0 +23,0 @@ return new Encryption({ secret: Config.get('app.appKey') }); |
@@ -11,3 +11,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Encryption = void 0; | ||
var Encryption_1 = require("./src/Encryption"); | ||
Object.defineProperty(exports, "Encryption", { enumerable: true, get: function () { return Encryption_1.Encryption; } }); |
{ | ||
"name": "@adonisjs/encryption", | ||
"version": "2.0.6", | ||
"version": "3.0.0", | ||
"description": "Encryption provider for AdonisJs", | ||
@@ -43,22 +43,22 @@ "main": "build/providers/EncryptionProvider.js", | ||
"devDependencies": { | ||
"@adonisjs/config": "^1.1.0", | ||
"@adonisjs/fold": "^6.3.5", | ||
"@adonisjs/application": "^3.0.5", | ||
"@adonisjs/mrm-preset": "^2.4.0", | ||
"@types/node": "^14.0.23", | ||
"commitizen": "^4.1.2", | ||
"cz-conventional-changelog": "^3.2.0", | ||
"@adonisjs/require-ts": "^1.0.0", | ||
"@poppinss/dev-utils": "^1.0.10", | ||
"@types/node": "^14.11.2", | ||
"commitizen": "^4.2.1", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"del-cli": "^3.0.1", | ||
"eslint": "^7.5.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-adonis": "^1.0.14", | ||
"eslint": "^7.10.0", | ||
"eslint-config-prettier": "^6.12.0", | ||
"eslint-plugin-adonis": "^1.0.15", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"github-label-sync": "^2.0.0", | ||
"husky": "^4.2.5", | ||
"husky": "^4.3.0", | ||
"japa": "^3.1.1", | ||
"mrm": "^2.3.3", | ||
"np": "^6.3.2", | ||
"npm-audit-html": "^1.4.1", | ||
"prettier": "^2.0.5", | ||
"ts-node": "^8.10.2", | ||
"typescript": "^3.9.7" | ||
"mrm": "^2.5.1", | ||
"np": "^6.5.0", | ||
"npm-audit-html": "^1.4.3", | ||
"prettier": "^2.1.2", | ||
"typescript": "^4.0.3" | ||
}, | ||
@@ -85,4 +85,7 @@ "nyc": { | ||
"dependencies": { | ||
"@poppinss/utils": "^2.3.0" | ||
"@poppinss/utils": "^2.5.7" | ||
}, | ||
"peerDependencies": { | ||
"@adonisjs/application": "^3.0.0" | ||
}, | ||
"np": { | ||
@@ -94,3 +97,7 @@ "contents": ".", | ||
"exceptions": "./build/exceptions.json" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"tag": "next" | ||
} | ||
} |
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
25252
555
2
+ Added@adonisjs/application@3.0.21(transitive)
+ Added@adonisjs/config@2.0.3(transitive)
+ Added@adonisjs/env@2.0.9(transitive)
+ Added@adonisjs/fold@7.0.9(transitive)
+ Added@adonisjs/logger@3.0.4(transitive)
+ Added@adonisjs/profiler@5.0.4(transitive)
+ Added@types/node@22.10.1(transitive)
+ Added@types/pino@6.3.12(transitive)
+ Added@types/pino-pretty@5.0.0(transitive)
+ Added@types/pino-std-serializers@4.0.0(transitive)
+ Addedabstract-logging@2.0.1(transitive)
+ Addedatomic-sleep@1.0.0(transitive)
+ Addedcolorette@2.0.20(transitive)
+ Addedcuid@2.1.8(transitive)
+ Addeddateformat@4.6.3(transitive)
+ Addeddotenv@8.6.0(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedfast-copy@3.0.2(transitive)
+ Addedfast-redact@3.5.0(transitive)
+ Addedflatstr@1.0.12(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedhelp-me@5.0.0(transitive)
+ Addedjest-worker@26.6.2(transitive)
+ Addedjoycon@3.1.1(transitive)
+ Addedmerge-stream@2.0.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedon-exit-leak-free@2.1.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpino@6.14.0(transitive)
+ Addedpino-abstract-transport@2.0.0(transitive)
+ Addedpino-pretty@13.0.0(transitive)
+ Addedpino-std-serializers@3.2.07.0.0(transitive)
+ Addedprocess-warning@1.0.0(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedquick-format-unescaped@4.0.4(transitive)
+ Addedsecure-json-parse@2.7.0(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedsonic-boom@1.4.12.8.04.2.0(transitive)
+ Addedsplit2@4.2.0(transitive)
+ Addedstrip-json-comments@3.1.1(transitive)
+ Addedsupports-color@7.2.0(transitive)
+ Addedundici-types@6.20.0(transitive)
+ Addedvalidator@13.12.0(transitive)
+ Addedwrappy@1.0.2(transitive)
Updated@poppinss/utils@^2.5.7