diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 942be391d..99074cd59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: "20.x" + node-version: "22.x" cache: "npm" - name: CI run: | diff --git a/eslint.config.js b/eslint.config.js index e5dbb3805..75869036f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -117,7 +117,7 @@ export default [ version: "detect", }, node: { - version: ">=20", + version: ">=22", allowModules: [ ...Object.keys(pkg.dependencies), ...Object.keys(pkg.devDependencies), diff --git a/patches/@devoxa+paddle-sdk+0.4.2.patch b/patches/@devoxa+paddle-sdk+0.4.2.patch new file mode 100644 index 000000000..75edc9874 --- /dev/null +++ b/patches/@devoxa+paddle-sdk+0.4.2.patch @@ -0,0 +1,34 @@ +diff --git a/node_modules/@devoxa/paddle-sdk/dist/src/helpers/fetch.js b/node_modules/@devoxa/paddle-sdk/dist/src/helpers/fetch.js +index d7aa967..3ab6c7b 100644 +--- a/node_modules/@devoxa/paddle-sdk/dist/src/helpers/fetch.js ++++ b/node_modules/@devoxa/paddle-sdk/dist/src/helpers/fetch.js +@@ -1,26 +1,3 @@ +-"use strict"; +-var __importDefault = (this && this.__importDefault) || function (mod) { +- return (mod && mod.__esModule) ? mod : { "default": mod }; +-}; +-Object.defineProperty(exports, "__esModule", { value: true }); +-exports.fetch = void 0; +-const form_data_1 = __importDefault(require("form-data")); +-const node_fetch_1 = __importDefault(require("node-fetch")); +-async function fetch(url, options) { +- const response = await (0, node_fetch_1.default)(url, { +- method: options.method, +- body: objectToFormData(options.body), +- }); +- return response.json(); ++export async function fetch(url, options) { ++ throw new Error("Not supported"); + } +-exports.fetch = fetch; +-function objectToFormData(object) { +- const formData = new form_data_1.default(); +- Object.entries(object).forEach(([key, value]) => { +- if (typeof value === 'undefined') +- return; +- formData.append(key, value.toString()); +- }); +- return formData; +-} +-//# sourceMappingURL=fetch.js.map +\ No newline at end of file diff --git a/root/etc/install.sh b/root/etc/install.sh index 9581081f3..fa0a9109d 100755 --- a/root/etc/install.sh +++ b/root/etc/install.sh @@ -23,7 +23,7 @@ function install_packages() { function install_nodejs() { mkdir -p /etc/apt/keyrings curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg --yes - echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list + echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list apt update -y apt install -y --no-install-recommends --no-install-suggests \ nodejs