Set @balena/es-version to es2022 to match tsconfig.json

Change-type: patch
This commit is contained in:
Pagan Gazzard 2024-03-25 16:56:27 +00:00
parent 1e2d9a71f9
commit 6b0500cdbc
3 changed files with 9 additions and 9 deletions

14
package-lock.json generated
View File

@ -14,7 +14,7 @@
}, },
"devDependencies": { "devDependencies": {
"@balena/contrato": "^0.6.0", "@balena/contrato": "^0.6.0",
"@balena/es-version": "^1.0.1", "@balena/es-version": "^1.0.3",
"@balena/lint": "^7.3.0", "@balena/lint": "^7.3.0",
"@types/bluebird": "^3.5.37", "@types/bluebird": "^3.5.37",
"@types/chai": "^4.3.3", "@types/chai": "^4.3.3",
@ -614,9 +614,9 @@
"dev": true "dev": true
}, },
"node_modules/@balena/es-version": { "node_modules/@balena/es-version": {
"version": "1.0.1", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/@balena/es-version/-/es-version-1.0.1.tgz", "resolved": "https://registry.npmjs.org/@balena/es-version/-/es-version-1.0.3.tgz",
"integrity": "sha512-3hS6695vmZcKm+UX9W+4xVSYIW56OIjq8wLybKZsNoMDLAXei9HnbhnVLsbqWhqATrRKHy19onjJQHL/AfcpFA==", "integrity": "sha512-ER6xtNwBSytZ1E1TmEzcE19mHpfJH8NPItxgGeJZjMYE4k5VHlBorl4UwZkAmsiW4vhy7LgJ+RGvHU15rB1L7g==",
"dev": true "dev": true
}, },
"node_modules/@balena/lint": { "node_modules/@balena/lint": {
@ -16672,9 +16672,9 @@
"dev": true "dev": true
}, },
"@balena/es-version": { "@balena/es-version": {
"version": "1.0.1", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/@balena/es-version/-/es-version-1.0.1.tgz", "resolved": "https://registry.npmjs.org/@balena/es-version/-/es-version-1.0.3.tgz",
"integrity": "sha512-3hS6695vmZcKm+UX9W+4xVSYIW56OIjq8wLybKZsNoMDLAXei9HnbhnVLsbqWhqATrRKHy19onjJQHL/AfcpFA==", "integrity": "sha512-ER6xtNwBSytZ1E1TmEzcE19mHpfJH8NPItxgGeJZjMYE4k5VHlBorl4UwZkAmsiW4vhy7LgJ+RGvHU15rB1L7g==",
"dev": true "dev": true
}, },
"@balena/lint": { "@balena/lint": {

View File

@ -40,7 +40,7 @@
}, },
"devDependencies": { "devDependencies": {
"@balena/contrato": "^0.6.0", "@balena/contrato": "^0.6.0",
"@balena/es-version": "^1.0.1", "@balena/es-version": "^1.0.3",
"@balena/lint": "^7.3.0", "@balena/lint": "^7.3.0",
"@types/bluebird": "^3.5.37", "@types/bluebird": "^3.5.37",
"@types/chai": "^4.3.3", "@types/chai": "^4.3.3",

View File

@ -1,6 +1,6 @@
import { set } from '@balena/es-version'; import { set } from '@balena/es-version';
// Set the desired es version for downstream modules that support it, before we import any // Set the desired es version for downstream modules that support it, before we import any
set('es2019'); set('es2022');
import { setDefaultAutoSelectFamilyAttemptTimeout } from 'net'; import { setDefaultAutoSelectFamilyAttemptTimeout } from 'net';
// Increase the timeout for the happy eyeballs algorithm to 5000ms to avoid issues on slower networks // Increase the timeout for the happy eyeballs algorithm to 5000ms to avoid issues on slower networks