@balena/es-version
Advanced tools
Comparing version 1.0.1 to 1.0.2-es-2022-fa3275fbb963e1d6708a20bb9e9ff3de3aae78e7-1
@@ -11,7 +11,8 @@ declare enum validVersions { | ||
'es2021' = 8, | ||
'esnext' = 9 | ||
'es2022' = 9, | ||
'esnext' = 10 | ||
} | ||
export declare type ValidVersion = keyof typeof validVersions; | ||
export declare const set: (version: ValidVersion) => void; | ||
export declare const get: (supportedVersions?: ("es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "esnext")[] | undefined) => ValidVersion; | ||
export declare const get: (supportedVersions?: ValidVersion[]) => ValidVersion; | ||
export {}; |
@@ -15,3 +15,4 @@ "use strict"; | ||
validVersions[validVersions["es2021"] = 8] = "es2021"; | ||
validVersions[validVersions["esnext"] = 9] = "esnext"; | ||
validVersions[validVersions["es2022"] = 9] = "es2022"; | ||
validVersions[validVersions["esnext"] = 10] = "esnext"; | ||
})(validVersions || (validVersions = {})); | ||
@@ -18,0 +19,0 @@ var desiredVersionIndex = 0; |
{ | ||
"name": "@balena/es-version", | ||
"version": "1.0.1", | ||
"version": "1.0.2-es-2022-fa3275fbb963e1d6708a20bb9e9ff3de3aae78e7-1", | ||
"description": "This module provides the ability to specify the default es version to include for balena modules.", | ||
@@ -27,11 +27,11 @@ "browser": "build/index.js", | ||
"devDependencies": { | ||
"@balena/lint": "^6.1.1", | ||
"@types/chai": "^4.2.11", | ||
"@types/mocha": "^9.0.0", | ||
"chai": "^4.2.0", | ||
"husky": "^4.2.5", | ||
"@balena/lint": "^6.2.0", | ||
"@types/chai": "^4.3.3", | ||
"@types/mocha": "^9.1.1", | ||
"chai": "^4.3.6", | ||
"husky": "^4.3.8", | ||
"lint-staged": "^11.2.6", | ||
"mocha": "^9.1.3", | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.4.4" | ||
"mocha": "^9.2.2", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.8.4" | ||
}, | ||
@@ -49,4 +49,4 @@ "husky": { | ||
"versionist": { | ||
"publishedAt": "2021-11-01T13:45:37.266Z" | ||
"publishedAt": "2022-10-31T13:19:56.545Z" | ||
} | ||
} |
@@ -12,2 +12,4 @@ # @balena/es-version | ||
* es2020 | ||
* es2021 | ||
* es2022 | ||
* esnext | ||
@@ -14,0 +16,0 @@ |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
80
69
17997
6
2