@adonisjs/encryption
Advanced tools
Comparing version 5.1.2-3 to 5.1.2-4
@@ -1,21 +0,1 @@ | ||
import { E as Encryption } from '../encryption-cb1ec59b.js'; | ||
import { EncryptionOptions } from '../src/types.js'; | ||
import '@poppinss/utils'; | ||
/** | ||
* Encryption factory is used to generate encryption class instances for | ||
* testing | ||
*/ | ||
declare class EncryptionFactory { | ||
#private; | ||
/** | ||
* Merge encryption factory options | ||
*/ | ||
merge(options: Partial<EncryptionOptions>): this; | ||
/** | ||
* Create instance of encryption class | ||
*/ | ||
create(): Encryption; | ||
} | ||
export { EncryptionFactory }; | ||
export { EncryptionFactory } from './encryption.js'; |
import { | ||
Encryption | ||
} from "../chunk-N5VJCADW.js"; | ||
} from "../chunk-ZAK4JBDX.js"; | ||
@@ -27,1 +27,2 @@ // factories/encryption.ts | ||
}; | ||
//# sourceMappingURL=main.js.map |
@@ -1,17 +0,2 @@ | ||
import * as _poppinss_utils from '@poppinss/utils'; | ||
export { E as Encryption } from './encryption-cb1ec59b.js'; | ||
import './src/types.js'; | ||
declare const E_INSECURE_APP_KEY: new (args?: any, options?: ErrorOptions | undefined) => _poppinss_utils.Exception; | ||
declare const E_MISSING_APP_KEY: new (args?: any, options?: ErrorOptions | undefined) => _poppinss_utils.Exception; | ||
declare const errors_E_INSECURE_APP_KEY: typeof E_INSECURE_APP_KEY; | ||
declare const errors_E_MISSING_APP_KEY: typeof E_MISSING_APP_KEY; | ||
declare namespace errors { | ||
export { | ||
errors_E_INSECURE_APP_KEY as E_INSECURE_APP_KEY, | ||
errors_E_MISSING_APP_KEY as E_MISSING_APP_KEY, | ||
}; | ||
} | ||
export { errors }; | ||
export * as errors from './src/errors.js'; | ||
export { Encryption } from './src/encryption.js'; |
import { | ||
Encryption, | ||
errors_exports | ||
} from "./chunk-N5VJCADW.js"; | ||
} from "./chunk-ZAK4JBDX.js"; | ||
export { | ||
@@ -9,1 +9,2 @@ Encryption, | ||
}; | ||
//# sourceMappingURL=index.js.map |
/** | ||
* Config accepted by the encryption | ||
*/ | ||
type EncryptionOptions = { | ||
export type EncryptionOptions = { | ||
algorithm?: 'aes-256-cbc'; | ||
secret: string; | ||
}; | ||
export { EncryptionOptions }; |
{ | ||
"name": "@adonisjs/encryption", | ||
"version": "5.1.2-3", | ||
"version": "5.1.2-4", | ||
"description": "Encryption provider for AdonisJs", | ||
@@ -8,3 +8,5 @@ "main": "build/index.js", | ||
"files": [ | ||
"build" | ||
"build", | ||
"!build/bin", | ||
"!build/tests" | ||
], | ||
@@ -24,3 +26,4 @@ "exports": { | ||
"typecheck": "tsc --noEmit", | ||
"compile": "npm run lint && npm run clean && tsup-node", | ||
"precompile": "npm run lint && npm run clean", | ||
"compile": "tsup-node && tsc --emitDeclarationOnly --declaration", | ||
"build": "npm run compile", | ||
@@ -41,24 +44,24 @@ "release": "np", | ||
"devDependencies": { | ||
"@adonisjs/eslint-config": "^1.1.8", | ||
"@adonisjs/prettier-config": "^1.1.8", | ||
"@adonisjs/tsconfig": "^1.1.8", | ||
"@commitlint/cli": "^17.8.0", | ||
"@commitlint/config-conventional": "^17.8.0", | ||
"@japa/assert": "^2.0.0", | ||
"@japa/runner": "^3.0.2", | ||
"@swc/core": "1.3.82", | ||
"@types/node": "^20.8.6", | ||
"@adonisjs/eslint-config": "^1.1.9", | ||
"@adonisjs/prettier-config": "^1.1.9", | ||
"@adonisjs/tsconfig": "^1.1.9", | ||
"@commitlint/cli": "^18.4.3", | ||
"@commitlint/config-conventional": "^18.4.3", | ||
"@japa/assert": "^2.0.1", | ||
"@japa/runner": "^3.1.0", | ||
"@swc/core": "^1.3.99", | ||
"@types/node": "^20.9.4", | ||
"c8": "^8.0.1", | ||
"del-cli": "^5.1.0", | ||
"eslint": "^8.51.0", | ||
"eslint": "^8.54.0", | ||
"github-label-sync": "^2.3.1", | ||
"husky": "^8.0.3", | ||
"np": "^8.0.4", | ||
"prettier": "^3.0.3", | ||
"prettier": "^3.1.0", | ||
"ts-node": "^10.9.1", | ||
"tsup": "^7.2.0", | ||
"typescript": "^5.2.2" | ||
"tsup": "^8.0.1", | ||
"typescript": "5.2.2" | ||
}, | ||
"dependencies": { | ||
"@poppinss/utils": "^6.5.0" | ||
"@poppinss/utils": "^6.5.1" | ||
}, | ||
@@ -110,5 +113,6 @@ "repository": { | ||
"format": "esm", | ||
"dts": true, | ||
"dts": false, | ||
"sourcemap": true, | ||
"target": "esnext" | ||
} | ||
} |
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
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
31356
19
373
Updated@poppinss/utils@^6.5.1