[next] Rename all runtime(s) references to interpreter(s) (#1536)

This commit is contained in:
Andrea Giammarchi
2023-06-15 15:34:07 +02:00
committed by GitHub
parent db27d52352
commit 6284c02032
21 changed files with 214 additions and 198 deletions

View File

@@ -1,10 +1,10 @@
import { runtime } from "./runtimes.js";
import { interpreter } from "./interpreters.js";
import { absoluteURL, resolve } from "./utils.js";
import { parse } from "./toml.js";
import { getJSON, getText } from "./fetch-utils.js";
/**
* @param {string} id the runtime name @ version identifier
* @param {string} id the interpreter name @ version identifier
* @param {string} [config] optional config file to parse
* @returns
*/
@@ -28,12 +28,12 @@ export const getRuntime = (id, config) => {
}
/* c8 ignore stop */
}
return resolve(options).then((options) => runtime[id](options, config));
return resolve(options).then((options) => interpreter[id](options, config));
};
/**
* @param {string} type the runtime type
* @param {string} [version] the optional runtime version
* @param {string} type the interpreter type
* @param {string} [version] the optional interpreter version
* @returns
*/
export const getRuntimeID = (type, version = "") =>