/var/www/qr4y.kz/server/delivery/node_modules/sequelize-cli/lib/helpers
NameSizeModeActions
asset-helper.js10690644editdlrm
config-helper.js54380644editdlrm
dummy-file.js1040644editdlrm
generic-helper.js12590644editdlrm
import-helper.js10780644editdlrm
index.js5110644editdlrm
init-helper.js25050644editdlrm
migration-helper.js11770644editdlrm
model-helper.js32970644editdlrm
path-helper.js24700644editdlrm
template-helper.js7320644editdlrm
umzug-helper.js18010644editdlrm
version-helper.js9800644editdlrm
view-helper.js18840644editdlrm
Edit: /var/www/qr4y.kz/server/delivery/node_modules/sequelize-cli/lib/helpers/import-helper.js (1078B)
"use strict"; const url = require('url'); async function supportsDynamicImport() { try { // imports are cached. // no need to worry about perf here. // Don't remove .js: extension must be included for ESM imports! await import('./dummy-file.js'); return true; } catch (e) { return false; } } /** * Imports a JSON, CommonJS or ESM module * based on feature detection. * * @param modulePath path to the module to import * @returns {Promise} the imported module. */ async function importModule(modulePath) { // JSON modules are still behind a flag. Fallback to require for now. // https://nodejs.org/api/esm.html#json-modules if (url.pathToFileURL && !modulePath.endsWith('.json') && (await supportsDynamicImport())) { // 'import' expects a URL. (https://github.com/sequelize/cli/issues/994) return import(url.pathToFileURL(modulePath)); } // mimics what `import()` would return for // cjs modules. return { default: require(modulePath) }; } module.exports = { supportsDynamicImport, importModule };