⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
node_modules
/
has-dynamic-import
/
View File Name :
index.js
'use strict'; var callBound = require('call-bind/callBound'); var callBind = require('call-bind'); var GetIntrinsic = require('get-intrinsic'); var $then = callBound('Promise.prototype.then', true); var $Promise = GetIntrinsic('%Promise%', true); var $PromiseResolve = GetIntrinsic('%Promise.resolve%', true); var $resolve = $Promise && $PromiseResolve && callBind($PromiseResolve, $Promise); var thunkFalse = function () { return false; }; var thunkTrue = function () { return true; }; module.exports = function hasDynamicImport() { if (!$then) { var p = { then: function (resolve) { // eslint-disable-line consistent-return if (typeof resolve === 'function') { process.nextTick(function () { resolve(false); }); } else { return hasDynamicImport(); } } }; return p; } try { var importWrapper = require('./import'); // eslint-disable-line global-require return $then(importWrapper(), thunkTrue, thunkFalse); } catch (e) { return $resolve(false); } };