@contrail/entity-types 1.2.0-alpha-node-runtime → 1.2.0-alpha-node-runtime-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app-version.d.ts +1 -0
- package/lib/app-version.js +5 -1
- package/package.json +1 -1
package/lib/app-version.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare enum NodeRuntime {
|
|
|
15
15
|
NODEJS_18_X = "nodejs18.x",
|
|
16
16
|
NODEJS_22_X = "nodejs22.x"
|
|
17
17
|
}
|
|
18
|
+
export declare function isValidNodeRuntime(runtime: string): runtime is NodeRuntime;
|
|
18
19
|
export interface AppVersion extends BaseManagedEntity {
|
|
19
20
|
orgId?: string;
|
|
20
21
|
appId?: string;
|
package/lib/app-version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeRuntime = exports.AppVersionStatus = void 0;
|
|
3
|
+
exports.isValidNodeRuntime = exports.NodeRuntime = exports.AppVersionStatus = void 0;
|
|
4
4
|
var AppVersionStatus;
|
|
5
5
|
(function (AppVersionStatus) {
|
|
6
6
|
AppVersionStatus["PUBLISHING"] = "PUBLISHING";
|
|
@@ -15,3 +15,7 @@ var NodeRuntime;
|
|
|
15
15
|
NodeRuntime["NODEJS_18_X"] = "nodejs18.x";
|
|
16
16
|
NodeRuntime["NODEJS_22_X"] = "nodejs22.x";
|
|
17
17
|
})(NodeRuntime = exports.NodeRuntime || (exports.NodeRuntime = {}));
|
|
18
|
+
function isValidNodeRuntime(runtime) {
|
|
19
|
+
return Object.values(NodeRuntime).includes(runtime);
|
|
20
|
+
}
|
|
21
|
+
exports.isValidNodeRuntime = isValidNodeRuntime;
|