Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
@balena/es-version
Advanced tools
This module provides the ability to specify the default es version to include for balena modules.
This module allows specifying a target es version for other modules to require, currently supported target versions:
^
version specifier, eg"@balena/es-version": "^1.0.0",
Note: If using locked dependences, eg package-lock.json/npm-shrinkwrap.json/etc, then make sure to also dedupe the module so that the same instance of the module is used everywhere.
// Must be set before the first require of an @balena/es-version supporting module
require('@balena/es-version').set('es5');
and then the closest matching version will be used by any module that supports choosing the target version, with the priority being:
^
version specifier, eg"@balena/es-version": "^1.0.0",
"build-es5": "tsc --target es5 --outDir es5",
"build-es2015": "tsc --target es2015 --outDir es2015",
"build-es2018": "tsc --target es2018 --outDir es2018",
"build-types": "tsc --emitDeclarationOnly --outDir .",
"build": "npm run build-es5 && npm run build-es2015 && npm run build-es2018 && npm run build-types",
// First get the es version to use:
var esVersion = require('@balena/es-version').get(['es5', 'es2015', 'es2018');
// Then include/return the correct version of your module, eg
module.exports = module.exports = require('./' + esVersion);
Note: This must be compatible with your lowest supported es version
"main": "index.js",
"types": "index.d.ts",
"browser": "es5"
FAQs
This module provides the ability to specify the default es version to include for balena modules.
We found that @balena/es-version demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.