404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.117.78.194: ~ $
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.detectLocalCLI = exports.ERROR_VERSION_TOO_OLD = exports.ERROR_LOCAL_CLI_NOT_FOUND = exports.ERROR_BASE_DIRECTORY_NOT_FOUND = void 0;
const node_1 = require("@ionic/cli-framework/utils/node");
const Debug = require("debug");
const path = require("path");
const semver = require("semver");
const color_1 = require("./lib/color");
const debug = Debug('ionic:bootstrap');
exports.ERROR_BASE_DIRECTORY_NOT_FOUND = 'BASE_DIRECTORY_NOT_FOUND';
exports.ERROR_LOCAL_CLI_NOT_FOUND = 'LOCAL_CLI_NOT_FOUND';
exports.ERROR_VERSION_TOO_OLD = 'VERSION_TOO_OLD';
async function detectLocalCLI() {
    let pkgPath;
    try {
        pkgPath = require.resolve('ionic/package', { paths: node_1.compileNodeModulesPaths(process.cwd()) });
    }
    catch (e) {
        // ignore
    }
    if (pkgPath && process.env.IONIC_CLI_LIB !== path.dirname(pkgPath)) {
        const pkg = await node_1.readPackageJsonFile(pkgPath);
        debug(`local CLI ${color_1.strong(pkg.version)} found at ${color_1.strong(pkgPath)}`);
        if (semver.lt(pkg.version, '4.0.0')) {
            throw exports.ERROR_VERSION_TOO_OLD;
        }
        return path.dirname(pkgPath);
    }
    throw exports.ERROR_LOCAL_CLI_NOT_FOUND;
}
exports.detectLocalCLI = detectLocalCLI;

Filemanager

Name Type Size Permission Actions
assets Folder 0755
bin Folder 0755
commands Folder 0755
lib Folder 0755
node_modules Folder 0755
CHANGELOG.md File 55.09 KB 0644
LICENSE File 1.05 KB 0644
README.md File 396 B 0644
bootstrap.d.ts File 277 B 0644
bootstrap.js File 1.29 KB 0644
constants.d.ts File 382 B 0644
constants.js File 859 B 0644
definitions.d.ts File 23.34 KB 0644
definitions.js File 77 B 0644
guards.d.ts File 4.35 KB 0644
guards.js File 11.04 KB 0644
index.d.ts File 472 B 0644
index.js File 6.73 KB 0644
package.json File 6.52 KB 0644