Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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.
The npm package @balena/es-version receives a total of 10,239 weekly downloads. As such, @balena/es-version popularity was classified as popular.
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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.