mirror of
				https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
				synced 2025-11-04 06:55:23 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			596 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			596 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// polyfill that overwrites parse-args.ts in the mjs build
 | 
						|
import { createRequire } from 'module';
 | 
						|
import * as util from 'util';
 | 
						|
const pv = typeof process === 'object' &&
 | 
						|
    !!process &&
 | 
						|
    typeof process.version === 'string'
 | 
						|
    ? process.version
 | 
						|
    : 'v0.0.0';
 | 
						|
const pvs = pv
 | 
						|
    .replace(/^v/, '')
 | 
						|
    .split('.')
 | 
						|
    .map(s => parseInt(s, 10));
 | 
						|
let { parseArgs: pa } = util;
 | 
						|
if (!pa || pvs[0] > 18 || pvs[1] < 11) {
 | 
						|
    const require = createRequire(import.meta.url);
 | 
						|
    pa = require('@pkgjs/parseargs').parseArgs;
 | 
						|
}
 | 
						|
export const parseArgs = pa;
 | 
						|
//# sourceMappingURL=parse-args-esm.js.map
 |