Socket
Socket
Sign inDemoInstall

@adonisjs/hash

Package Overview
Dependencies
Maintainers
3
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/hash - npm Package Compare versions

Comparing version 9.0.3 to 9.0.4

build/chunk-5WRI5ZAA.js

2

build/factories/main.js

@@ -9,3 +9,3 @@ import {

import "../chunk-HRTBMSFS.js";
import "../chunk-LQ2VYIYD.js";
import "../chunk-5WRI5ZAA.js";

@@ -12,0 +12,0 @@ // factories/hash_manager.ts

@@ -5,3 +5,3 @@ import {

} from "./chunk-FN54PEFD.js";
import "./chunk-LQ2VYIYD.js";
import "./chunk-5WRI5ZAA.js";
export {

@@ -8,0 +8,0 @@ Hash,

@@ -1,3 +0,2 @@

/// <reference types="node" resolution-mode="require"/>
declare const _default: import("util").DebugLogger;
export default _default;

@@ -11,3 +11,3 @@ import {

} from "../../chunk-HRTBMSFS.js";
import "../../chunk-LQ2VYIYD.js";
import "../../chunk-5WRI5ZAA.js";

@@ -14,0 +14,0 @@ // src/drivers/argon.ts

@@ -12,3 +12,3 @@ import {

__toESM
} from "../../chunk-LQ2VYIYD.js";
} from "../../chunk-5WRI5ZAA.js";

@@ -187,18 +187,14 @@ // src/legacy/bcrypt_base64.cjs

const c2 = code < BASE64_INDEX.length ? BASE64_INDEX[code] : -1;
if (c1 === -1 || c2 === -1)
break;
if (c1 === -1 || c2 === -1) break;
let o = c1 << 2 >>> 0;
o |= (c2 & 48) >> 4;
stra.push(String.fromCharCode(o));
if (++olen >= len || off >= slen)
break;
if (++olen >= len || off >= slen) break;
code = str.charCodeAt(off++);
const c3 = code < BASE64_INDEX.length ? BASE64_INDEX[code] : -1;
if (c3 === -1)
break;
if (c3 === -1) break;
o = (c2 & 15) << 4 >>> 0;
o |= (c3 & 60) >> 2;
stra.push(String.fromCharCode(o));
if (++olen >= len || off >= slen)
break;
if (++olen >= len || off >= slen) break;
code = str.charCodeAt(off++);

@@ -212,4 +208,3 @@ const c4 = code < BASE64_INDEX.length ? BASE64_INDEX[code] : -1;

const buffa = [];
for (off = 0; off < olen; off++)
buffa.push(stra[off].charCodeAt(0));
for (off = 0; off < olen; off++) buffa.push(stra[off].charCodeAt(0));
return Buffer.from(buffa);

@@ -216,0 +211,0 @@ }

@@ -6,3 +6,3 @@ import {

import "../../chunk-HRTBMSFS.js";
import "../../chunk-LQ2VYIYD.js";
import "../../chunk-5WRI5ZAA.js";
export {

@@ -9,0 +9,0 @@ Scrypt

@@ -1,3 +0,1 @@

/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
import { type ScryptOptions } from 'node:crypto';

@@ -4,0 +2,0 @@ export declare const MAX_UINT32: number;

@@ -1,2 +0,1 @@

/// <reference types="node" resolution-mode="require"/>
import { PhcNode } from './types.js';

@@ -3,0 +2,0 @@ /**

import {
PhcFormatter
} from "../chunk-HRTBMSFS.js";
import "../chunk-LQ2VYIYD.js";
import "../chunk-5WRI5ZAA.js";
export {

@@ -6,0 +6,0 @@ PhcFormatter

@@ -1,2 +0,1 @@

/// <reference types="node" resolution-mode="require"/>
/**

@@ -3,0 +2,0 @@ * The contract Hash drivers should adhere to

{
"name": "@adonisjs/hash",
"version": "9.0.3",
"version": "9.0.4",
"description": "Framework agnostic Password hashing package with support for PHC string format",

@@ -37,5 +37,5 @@ "main": "build/index.js",

"prepublishOnly": "npm run build",
"lint": "eslint . --ext=.ts",
"lint": "eslint .",
"sync-labels": "github-label-sync --labels .github/labels.json adonisjs/hash",
"quick:test": "node --loader=ts-node/esm bin/test.ts"
"quick:test": "node --import=ts-node-maintained/register/esm bin/test.ts"
},

@@ -50,26 +50,25 @@ "keywords": [

"devDependencies": {
"@adonisjs/eslint-config": "^1.3.0",
"@adonisjs/prettier-config": "^1.3.0",
"@adonisjs/tsconfig": "^1.3.0",
"@commitlint/cli": "^19.2.2",
"@commitlint/config-conventional": "^19.2.2",
"@adonisjs/eslint-config": "^2.0.0-beta.6",
"@adonisjs/prettier-config": "^1.4.0",
"@adonisjs/tsconfig": "^1.4.0",
"@japa/assert": "^3.0.0",
"@japa/expect-type": "^2.0.2",
"@japa/runner": "^3.1.4",
"@swc/core": "^1.4.16",
"@release-it/conventional-changelog": "^8.0.1",
"@swc/core": "^1.7.23",
"@types/bcrypt": "^5.0.2",
"@types/node": "^20.12.7",
"argon2": "^0.40.1",
"@types/node": "^22.5.2",
"argon2": "^0.41.1",
"bcrypt": "^5.1.1",
"c8": "^9.1.0",
"c8": "^10.1.2",
"cross-env": "^7.0.3",
"del-cli": "^5.1.0",
"eslint": "^8.57.0",
"eslint": "^9.9.1",
"github-label-sync": "^2.3.1",
"husky": "^9.0.11",
"prettier": "^3.2.5",
"release-it": "^17.2.0",
"ts-node": "^10.9.2",
"tsup": "^8.0.2",
"typescript": "^5.4.5"
"husky": "^9.1.5",
"prettier": "^3.3.3",
"release-it": "^17.6.0",
"ts-node-maintained": "^10.9.4",
"tsup": "^8.2.4",
"typescript": "^5.5.4"
},

@@ -81,3 +80,3 @@ "dependencies": {

"peerDependencies": {
"argon2": "^0.31.2 || ^0.40.0",
"argon2": "^0.31.2 || ^0.41.0",
"bcrypt": "^5.1.1"

@@ -101,26 +100,27 @@ },

"homepage": "https://github.com/adonisjs/hash#readme",
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"publishConfig": {
"access": "public",
"tag": "latest"
"provenance": true
},
"release-it": {
"git": {
"requireCleanWorkingDir": true,
"requireUpstream": true,
"commitMessage": "chore(release): ${version}",
"tagAnnotation": "v${version}",
"push": true,
"tagName": "v${version}"
},
"hooks": {
"before:init": [
"npm test"
]
"github": {
"release": true
},
"github": {
"release": true,
"releaseName": "v${version}",
"web": true
"npm": {
"publish": true,
"skipChecks": true
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": {
"name": "angular"
}
}
}

@@ -138,5 +138,2 @@ },

},
"eslintConfig": {
"extends": "@adonisjs/eslint-config/package"
},
"prettier": "@adonisjs/prettier-config",

@@ -143,0 +140,0 @@ "tsup": {

Sorry, the diff of this file is not supported yet

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