@adonisjs/encryption
Advanced tools
Comparing version 5.0.0-0 to 5.0.1-0
export { Encryption as default } from './src/encryption.js'; | ||
export { InsecureAppKeyException } from './src/exceptions/insecure_app_key_exception.js'; | ||
export { MissingAppKeyException } from './src/exceptions/missing_app_key_exception.js'; |
export { Encryption as default } from './src/encryption.js'; | ||
export { InsecureAppKeyException } from './src/exceptions/insecure_app_key_exception.js'; | ||
export { MissingAppKeyException } from './src/exceptions/missing_app_key_exception.js'; |
import { createHash } from 'node:crypto'; | ||
import { base64, MessageBuilder } from '@poppinss/utils'; | ||
import { base64, MessageBuilder, RuntimeException } from '@poppinss/utils'; | ||
import { Hmac } from './hmac.js'; | ||
@@ -12,3 +12,3 @@ export class MessageVerifier { | ||
if (payload === null || payload === undefined) { | ||
throw new Error(`Cannot sign "${payload}" value`); | ||
throw new RuntimeException(`Cannot sign "${payload}" value`); | ||
} | ||
@@ -15,0 +15,0 @@ const encoded = base64.urlEncode(new MessageBuilder().build(payload, expiresIn, purpose)); |
@@ -1,4 +0,4 @@ | ||
export declare type EncryptionOptions = { | ||
export type EncryptionOptions = { | ||
algorithm?: 'aes-256-cbc'; | ||
secret: string; | ||
}; |
{ | ||
"name": "@adonisjs/encryption", | ||
"version": "5.0.0-0", | ||
"version": "5.0.1-0", | ||
"description": "Encryption provider for AdonisJs", | ||
@@ -36,4 +36,4 @@ "main": "build/index.js", | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.2.0", | ||
"@commitlint/config-conventional": "^17.2.0", | ||
"@commitlint/cli": "^17.3.0", | ||
"@commitlint/config-conventional": "^17.3.0", | ||
"@japa/assert": "^1.3.5", | ||
@@ -44,7 +44,7 @@ "@japa/run-failed-tests": "^1.0.8", | ||
"@poppinss/dev-utils": "^2.0.3", | ||
"@swc/core": "^1.3.16", | ||
"@types/node": "^18.7.15", | ||
"@swc/core": "^1.3.21", | ||
"@types/node": "^18.11.10", | ||
"c8": "^7.12.0", | ||
"del-cli": "^5.0.0", | ||
"eslint": "^8.23.0", | ||
"eslint": "^8.28.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
@@ -56,8 +56,8 @@ "eslint-plugin-adonis": "^3.0.3", | ||
"np": "^7.6.2", | ||
"prettier": "^2.7.1", | ||
"prettier": "^2.8.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.8.2" | ||
"typescript": "^4.9.3" | ||
}, | ||
"dependencies": { | ||
"@poppinss/utils": "^6.0.1-0" | ||
"@poppinss/utils": "^6.1.0-0" | ||
}, | ||
@@ -64,0 +64,0 @@ "repository": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12957
178
0
Updated@poppinss/utils@^6.1.0-0