From 23563c7188e089929b60f9e10721c6fc43a220ff Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 22 Jun 2023 23:06:12 +0200 Subject: Updated 15 files, added includes/maintenance/deleteUnusedAssets.php and deleted 4944 files (automated) --- .../school/node_modules/axios/bin/ssl_hotfix.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 includes/external/school/node_modules/axios/bin/ssl_hotfix.js (limited to 'includes/external/school/node_modules/axios/bin') diff --git a/includes/external/school/node_modules/axios/bin/ssl_hotfix.js b/includes/external/school/node_modules/axios/bin/ssl_hotfix.js deleted file mode 100644 index 6147bf0..0000000 --- a/includes/external/school/node_modules/axios/bin/ssl_hotfix.js +++ /dev/null @@ -1,22 +0,0 @@ -import {spawn} from 'child_process'; - -const args = process.argv.slice(2); - -console.log(`Running ${args.join(' ')} on ${process.version}\n`); - -const match = /v(\d+)/.exec(process.version); - -const isHotfixNeeded = match && match[1] > 16; - -isHotfixNeeded && console.warn('Setting --openssl-legacy-provider as ssl hotfix'); - -const test = spawn('cross-env', - isHotfixNeeded ? ['NODE_OPTIONS=--openssl-legacy-provider', ...args] : args, { - shell: true, - stdio: 'inherit' - } -); - -test.on('exit', function (code) { - process.exit(code) -}) -- cgit