diff --git a/src/utils.js b/src/utils.js index e71c608..08c805d 100644 --- a/src/utils.js +++ b/src/utils.js @@ -19,8 +19,8 @@ const { createFetch } = require('@adobe/aio-lib-core-networking') const globby = require('globby') const path = require('path') const archiver = require('archiver') -// this is a static list that comes from here: https://developer.adobe.com/runtime/docs/guides/reference/runtimes/ -const SupportedRuntimes = ['sequence', 'blackbox', 'nodejs:10', 'nodejs:12', 'nodejs:14', 'nodejs:16', 'nodejs:18', 'nodejs:20', 'nodejs:22'] +// this is a static list that comes from here: https://developer.adobe.com/runtime/docs/guides/reference/runtimes/ +const SupportedRuntimes = ['sequence', 'blackbox', 'nodejs:10', 'nodejs:12', 'nodejs:14', 'nodejs:16', 'nodejs:18', 'nodejs:20', 'nodejs:22', 'nodejs:24'] const { HttpProxyAgent } = require('http-proxy-agent') const PatchedHttpsProxyAgent = require('./PatchedHttpsProxyAgent.js') diff --git a/test/utils.test.js b/test/utils.test.js index 5595585..1107f71 100644 --- a/test/utils.test.js +++ b/test/utils.test.js @@ -2574,6 +2574,7 @@ describe('validateActionRuntime', () => { expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:18' } })).not.toThrow() expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:20' } })).not.toThrow() expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:22' } })).not.toThrow() + expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:24' } })).not.toThrow() }) test('no exec', () => { expect(utils.validateActionRuntime({})).toBeUndefined()