From fadd51446306164b63267d2d353ae6aa00224e0c Mon Sep 17 00:00:00 2001 From: Thodoris Greasidis Date: Wed, 7 Sep 2022 17:07:16 +0300 Subject: [PATCH] Set desired es-version for downstream modules that support it Change-type: patch --- package-lock.json | 6 +++--- package.json | 1 + src/app.ts | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8a217a1e..0a6a6f01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -520,9 +520,9 @@ "dev": true }, "@balena/es-version": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@balena/es-version/-/es-version-1.0.0.tgz", - "integrity": "sha512-o3/sRDyrXC75BUUziMAs+W5C02aVST0YqY5Ny31Ot3a+7CzK2XDRinMGywvK93tm2QVdL83HGkN483S62Xo9Dw==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@balena/es-version/-/es-version-1.0.1.tgz", + "integrity": "sha512-3hS6695vmZcKm+UX9W+4xVSYIW56OIjq8wLybKZsNoMDLAXei9HnbhnVLsbqWhqATrRKHy19onjJQHL/AfcpFA==", "dev": true }, "@balena/happy-eyeballs": { diff --git a/package.json b/package.json index 23c5e230..76040e0c 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ }, "devDependencies": { "@balena/contrato": "^0.6.0", + "@balena/es-version": "^1.0.1", "@balena/lint": "^5.1.0", "@types/bluebird": "^3.5.32", "@types/chai": "^4.2.16", diff --git a/src/app.ts b/src/app.ts index ae22a3d3..c63bf682 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,3 +1,7 @@ +import { set } from '@balena/es-version'; +// Set the desired es version for downstream modules that support it, before we import any +set('es2019'); + import { NOTFOUND } from 'dns'; import * as mdnsResolver from 'mdns-resolver';