Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@adonisjs/encryption

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/encryption - npm Package Compare versions

Comparing version 5.0.0-0 to 5.0.1-0

2

build/index.d.ts
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';

4

build/src/message_verifier.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": {

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