Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
@isaacs /
import-jsx /
Delete
Unzip
Name
Size
Permission
Date
Action
cache.js
2.5
KB
-rw-r--r--
2023-12-12 09:48
index.js
1.46
KB
-rw-r--r--
2023-12-12 09:48
package.json
1.27
KB
-rw-r--r--
2023-12-12 09:48
transform.js
756
B
-rw-r--r--
2023-12-12 09:48
Save
Rename
'use strict'; const path = require('path'); const resolveFrom = require('resolve-from'); const callerPath = require('caller-path'); const cache = require('./cache'); const {version} = require('./package.json'); const importJsx = (moduleId, options) => { if (typeof moduleId !== 'string') { throw new TypeError('Expected a string'); } options = { pragma: 'h', pragmaFrag: 'Fragment', cache: true, ...options }; const modulePath = resolveFrom(path.dirname(callerPath()), moduleId); if (!options.cache) { delete require.cache[modulePath]; } // If they used .jsx, and there's already a .jsx, then hook there // Otherwise, hook node's default .js const ext = path.extname(modulePath); const hookExt = require.extensions[ext] ? ext : '.js'; const oldExtension = require.extensions[hookExt]; require.extensions[hookExt] = module => { const oldCompile = module._compile; module._compile = source => { const result = cache({ modulePath, options, source, version }); module._compile = oldCompile; module._compile(result, modulePath); }; require.extensions[hookExt] = oldExtension; oldExtension(module, modulePath); }; const m = require(modulePath); require.extensions[hookExt] = oldExtension; if (!options.cache) { delete require.cache[modulePath]; } return m; }; module.exports = importJsx; module.exports.default = importJsx; module.exports.create = options => { return moduleId => importJsx(moduleId, options); };