Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/clinic.corals.io/node_modules/laravel-mix/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/clinic.corals.io/node_modules/laravel-mix/src/VueVersion.js
let Log = require('./Log');

class VueVersion {
    /**
     * Vue versions that are supported by Mix.
     *
     * @returns {number[]}
     */
    static supported() {
        return [2, 3];
    }

    /**
     * Detect and validate the current version of Vue for the build.
     *
     * @param {number|null} version
     */
    static detect(version) {
        version = parseInt(version);

        if (!version) {
            try {
                return VueVersion.detect(require('vue').version);
            } catch (e) {
                VueVersion.fail();
            }
        }

        if (VueVersion.supported().includes(version)) {
            return version;
        }

        VueVersion.fail();
    }

    /**
     * Abort and log that a supported version of Vue wasn't found.
     */
    static fail() {
        Log.error(
            `We couldn't find a supported version of Vue in your project. ` +
                `Please ensure that it's installed (npm install vue).`
        );

        throw new Error();
    }
}

module.exports = VueVersion;

Spamworldpro Mini