1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Rename scuo- to s14e-

This commit is contained in:
Raymond Hill 2024-03-11 15:40:50 -04:00
parent 9c35ffe3c7
commit 461810d93c
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
3 changed files with 9 additions and 9 deletions

View File

@ -29,7 +29,7 @@ import lz4Codec from './lz4.js';
import webext from './webext.js';
import µb from './background.js';
import { ubolog } from './console.js';
import * as scuo from './scuo-serializer.js';
import * as s14e from './s14e-serializer.js';
/******************************************************************************/
@ -74,7 +74,7 @@ const cacheStorage = (( ) => {
const compress = async (bin, key, data) => {
const µbhs = µb.hiddenSettings;
const after = await scuo.serializeAsync(data, {
const after = await s14e.serializeAsync(data, {
compress: µbhs.cacheStorageCompression,
compressThreshold: µbhs.cacheStorageCompressionThreshold,
multithreaded: µbhs.cacheStorageMultithread,
@ -84,10 +84,10 @@ const cacheStorage = (( ) => {
const decompress = async (bin, key) => {
const data = bin[key];
if ( scuo.isSerialized(data) === false ) { return; }
if ( s14e.isSerialized(data) === false ) { return; }
const µbhs = µb.hiddenSettings;
const isLarge = data.length >= µbhs.cacheStorageCompressionThreshold;
bin[key] = await scuo.deserializeAsync(data, {
bin[key] = await s14e.deserializeAsync(data, {
multithreaded: isLarge && µbhs.cacheStorageMultithread || 1,
});
};

View File

@ -45,7 +45,7 @@ import { dnrRulesetFromRawLists } from './static-dnr-filtering.js';
import { i18n$ } from './i18n.js';
import { redirectEngine } from './redirect-engine.js';
import * as sfp from './static-filtering-parser.js';
import * as scuo from './scuo-serializer.js';
import * as s14e from './s14e-serializer.js';
import {
permanentFirewall,
@ -947,8 +947,8 @@ const onMessage = function(request, sender, callback) {
case 'cloudPull':
request.decode = encoded => {
if ( scuo.isSerialized(encoded) ) {
return scuo.deserializeAsync(encoded, { thread: true });
if ( s14e.isSerialized(encoded) ) {
return s14e.deserializeAsync(encoded, { thread: true });
}
// Legacy decoding: needs to be kept around for the foreseeable future.
return lz4Codec.decode(encoded, fromBase64);
@ -963,7 +963,7 @@ const onMessage = function(request, sender, callback) {
compress: µb.hiddenSettings.cloudStorageCompression,
thread: true,
};
return scuo.serializeAsync(data, options);
return s14e.serializeAsync(data, options);
};
return vAPI.cloud.push(request).then(result => {
callback(result);

View File

@ -1227,7 +1227,7 @@ class Thread {
this.workerPromise = new Promise(resolve => {
let worker = null;
try {
worker = new Worker('js/scuo-serializer.js', { type: 'module' });
worker = new Worker('js/s14e-serializer.js', { type: 'module' });
worker.onmessage = ev => {
const msg = ev.data;
if ( isInstanceOf(msg, 'Object') === false ) { return; }