Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
bemhint-deps-schema
Advanced tools
Plugin for bemhint which checks *.deps.js to be written by specification
Plugin for bemhint checks *.deps.js to be written by specification. Requires bemhint 0.7.0 or above.
$ npm install bemhint-deps-schema
Add plugin to .bemhint.js
:
module.exports = {
plugins: {
'bemhint-deps-schema': true
}
};
To validate custom deps.js format (code style reasons or others) configure plugin with custom json-schema (path is relative to config location):
module.exports = {
plugins: {
'bemhint-deps-schema': {
schema: './dir/deps.schema.json'
}
}
};
We suggest to base your custom schema on standard plugin's schema.
Validator reports error with JSON-style error location like shouldDeps[1].elem
. To get line/column error location define the function:
module.exports = {
plugins: {
'bemhint-deps-schema': {
/**
* Returns location of dataPath in content
*
* @param {String} content
* @param {String} dataPath
*
* @returns {Location}
*/
locator: (content, dataPath) => {
return { line: 153, column: 12 };
}
}
}
};
/**
* @typedef {Object} Location
*
* @property {Number} line - 1-based line number
* @property {Number} column - 1-based column number
*/
You can use external module like Json-file-pointer:
const pointer = require('json-file-pointer');
module.exports = {
plugins: {
'bemhint-deps-schema': {
locator: (content, dataPath) => pointer.getLocationOf(content, dataPath)
}
}
};
FAQs
Plugin for bemhint which checks *.deps.js to be written by specification
The npm package bemhint-deps-schema receives a total of 2 weekly downloads. As such, bemhint-deps-schema popularity was classified as not popular.
We found that bemhint-deps-schema demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.