!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/pmb/node_modules/workbox-build/build/lib/   drwxr-xr-x
Free 13.26 GB of 57.97 GB (22.88%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     write-sw-using-default-template.js (2.74 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
"use strict";
/*
  Copyright 2018 Google LLC

  Use of this source code is governed by an MIT-style
  license that can be found in the LICENSE file or at
  https://opensource.org/licenses/MIT.
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.writeSWUsingDefaultTemplate = void 0;
const fs_extra_1 = __importDefault(require("fs-extra"));
const upath_1 = __importDefault(require("upath"));
const bundle_1 = require("./bundle");
const errors_1 = require("./errors");
const populate_sw_template_1 = require("./populate-sw-template");
async function writeSWUsingDefaultTemplate({ babelPresetEnvTargets, cacheId, cleanupOutdatedCaches, clientsClaim, directoryIndex, disableDevLogs, ignoreURLParametersMatching, importScripts, inlineWorkboxRuntime, manifestEntries, mode, navigateFallback, navigateFallbackDenylist, navigateFallbackAllowlist, navigationPreload, offlineGoogleAnalytics, runtimeCaching, skipWaiting, sourcemap, swDest, }) {
    const outputDir = upath_1.default.dirname(swDest);
    try {
        await fs_extra_1.default.mkdirp(outputDir);
    }
    catch (error) {
        throw new Error(`${errors_1.errors['unable-to-make-sw-directory']}. ` +
            `'${error instanceof Error && error.message ? error.message : ''}'`);
    }
    const unbundledCode = (0, populate_sw_template_1.populateSWTemplate)({
        cacheId,
        cleanupOutdatedCaches,
        clientsClaim,
        directoryIndex,
        disableDevLogs,
        ignoreURLParametersMatching,
        importScripts,
        manifestEntries,
        navigateFallback,
        navigateFallbackDenylist,
        navigateFallbackAllowlist,
        navigationPreload,
        offlineGoogleAnalytics,
        runtimeCaching,
        skipWaiting,
    });
    try {
        const files = await (0, bundle_1.bundle)({
            babelPresetEnvTargets,
            inlineWorkboxRuntime,
            mode,
            sourcemap,
            swDest,
            unbundledCode,
        });
        const filePaths = [];
        for (const file of files) {
            const filePath = upath_1.default.resolve(file.name);
            filePaths.push(filePath);
            await fs_extra_1.default.writeFile(filePath, file.contents);
        }
        return filePaths;
    }
    catch (error) {
        const err = error;
        if (err.code === 'EISDIR') {
            // See https://github.com/GoogleChrome/workbox/issues/612
            throw new Error(errors_1.errors['sw-write-failure-directory']);
        }
        throw new Error(`${errors_1.errors['sw-write-failure']} '${err.message}'`);
    }
}
exports.writeSWUsingDefaultTemplate = writeSWUsingDefaultTemplate;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0047 ]--