文件操作 - loader.cjs
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/untyped/dist/loader/loader.cjs
编辑文件内容
'use strict'; const defu = require('defu'); const jiti = require('jiti'); const schema = require('../shared/untyped.kaUOsshY.cjs'); const loader_babel = require('./babel.cjs'); require('../shared/untyped.B9ocnjd2.cjs'); require('scule'); require('@babel/types'); async function loadSchema(entryPath, options = {}) { const jiti$1 = jiti.createJiti( process.cwd(), defu.defu(options.jiti, { interopDefault: true, transformOptions: { babel: { plugins: [[loader_babel, { experimentalFunctions: true }]] } } }) ); let rawSchema = await jiti$1.import(entryPath); const rawSchemaKeys = Object.keys(rawSchema); if (rawSchemaKeys.length === 1 && rawSchemaKeys[0] === "default") { rawSchema = rawSchema.default; } const schema$1 = await schema.resolveSchema(rawSchema, options.defaults, { ignoreDefaults: options.ignoreDefaults }); return schema$1; } exports.loadSchema = loadSchema;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件