UNPKG

lakutata

Version:

An IoC-based universal application framework.

42 lines (28 loc) 1.13 kB
import { CacheDriverNotFoundException as e } from "../exceptions/CacheDriverNotFoundException.mjs"; import "../../../lib/base/abstracts/Exception.mjs"; import "../../../lib/base/internal/BasicInfo.mjs"; import "../../../lib/helpers/As.mjs"; import "../../../../vendor/Package.6.mjs"; import "../../../../vendor/Package.5.mjs"; import "../../../../vendor/Package.7.mjs"; import "../../../lib/base/internal/ThrowWarning.mjs"; import "../../../lib/helpers/Templating.mjs"; import "../../../lib/base/internal/CamelCase.mjs"; import "../../../lib/helpers/NoCase.mjs"; // -- Shims -- import cjsUrl from 'node:url'; import cjsPath from 'node:path'; import cjsModule from 'node:module'; const __filename = cjsUrl.fileURLToPath(import.meta.url); const __dirname = cjsPath.dirname(__filename); const require = cjsModule.createRequire(import.meta.url); function r(r) { try { require.resolve(r); } catch (a) { throw new e('Package "{packageName}" is required for this driver. Run "npm install {packageName}".', { packageName: r }); } } export { r as IsDriverPackageInstalled };