1
1
/* eslint-disable no-console, camelcase */
2
- const fs = require ( 'node:fs' ) ;
3
- const axios = require ( 'axios' ) ;
4
- const { EOL } = require ( 'node:os' ) ;
2
+ import fs from 'node:fs' ;
3
+ import axios from 'axios' ;
4
+ import { EOL } from 'node:os' ;
5
5
6
- const {
7
- REMOVED_MARKER ,
8
- COMPATIBILITY_TABLE_DATA_PATH ,
9
- } = require ( './constants' ) ;
6
+ import { REMOVED_MARKER , COMPATIBILITY_TABLE_DATA_PATH } from './constants' ;
10
7
11
8
/* ************************************************************************
12
9
*
@@ -225,6 +222,7 @@ async function getCurrentUBOScriptlets() {
225
222
*
226
223
* @returns {Diff|null } diff
227
224
*/
225
+ // eslint-disable-next-line no-unused-vars
228
226
async function checkForUBOScriptletsUpdates ( ) {
229
227
const oldList = getScriptletsFromTable ( 'ubo' ) ;
230
228
const newList = await getCurrentUBOScriptlets ( ) ;
@@ -397,17 +395,18 @@ async function checkForABPRedirectsUpdates() {
397
395
*/
398
396
( async function init ( ) {
399
397
const UBORedirectsDiff = await checkForUBORedirectsUpdates ( ) ;
400
- const UBOScriptletsDiff = await checkForUBOScriptletsUpdates ( ) ;
398
+ // TODO: fix building wiki, ubo changed format of their source. AG-39652
399
+ // const UBOScriptletsDiff = await checkForUBOScriptletsUpdates();
401
400
const ABPRedirectsDiff = await checkForABPRedirectsUpdates ( ) ;
402
401
const ABPScriptletsDiff = await checkForABPScriptletsUpdates ( ) ;
403
402
404
403
if ( UBORedirectsDiff ) {
405
404
markTableWithDiff ( UBORedirectsDiff , 'redirects' , 'ubo' ) ;
406
405
}
407
406
408
- if ( UBOScriptletsDiff ) {
409
- markTableWithDiff ( UBOScriptletsDiff , 'scriptlets' , 'ubo' ) ;
410
- }
407
+ // if (UBOScriptletsDiff) {
408
+ // markTableWithDiff(UBOScriptletsDiff, 'scriptlets', 'ubo');
409
+ // }
411
410
412
411
if ( ABPRedirectsDiff ) {
413
412
markTableWithDiff ( ABPRedirectsDiff , 'redirects' , 'abp' ) ;
@@ -417,7 +416,12 @@ async function checkForABPRedirectsUpdates() {
417
416
markTableWithDiff ( ABPScriptletsDiff , 'scriptlets' , 'abp' ) ;
418
417
}
419
418
420
- const diffs = [ UBORedirectsDiff , UBOScriptletsDiff , ABPRedirectsDiff , ABPScriptletsDiff ] ;
419
+ const diffs = [
420
+ UBORedirectsDiff ,
421
+ // UBOScriptletsDiff,
422
+ ABPRedirectsDiff ,
423
+ ABPScriptletsDiff ,
424
+ ] ;
421
425
422
426
if ( diffs . some ( ( diff ) => ! ! diff ) ) {
423
427
const removed = diffs
0 commit comments