cross-import
Advanced tools
Comparing version 2.1.12 to 2.1.13
@@ -1,2 +0,2 @@ | ||
var h=Object.create;var f=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var x=(r,t)=>{for(var e in t)f(r,e,{get:t[e],enumerable:!0})},n=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of y(t))!w.call(r,o)&&o!==e&&f(r,o,{get:()=>t[o],enumerable:!(i=g(t,o))||i.enumerable});return r};var m=(r,t,e)=>(e=r!=null?h(P(r)):{},n(t||!r||!r.__esModule?f(e,"default",{value:r,enumerable:!0}):e,r)),q=r=>n(f({},"__esModule",{value:!0}),r);var v={};x(v,{crossImport:()=>_,default:()=>_});module.exports=q(v);var a=m(require("upath")),p=m(require("fast-glob")),c=m(require("@techor/extend")),s=m(require("jiti")),u=require("sucrase"),d=m(require("path")),l=require("url"),b={};if(typeof __dirname>"u"){let r=(0,l.fileURLToPath)(b.url);global.__dirname=d.default.dirname(r)}function _(r,t){if(t=(0,c.default)({cwd:process.cwd()},t),!r)return;let e=p.default.sync(r,t)[0];if(!e)return;let i=a.default.resolve(t.cwd,e);try{return delete require.cache[i],require(i)}catch{return(0,s.default)(__dirname,{interopDefault:!0,transform:o=>(0,u.transform)(o.source,{transforms:["imports","typescript"]})})(i)}}0&&(module.exports={crossImport}); | ||
var l=Object.create;var i=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var x=(r,t)=>{for(var e in t)i(r,e,{get:t[e],enumerable:!0})},m=(r,t,e,f)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of g(t))!w.call(r,o)&&o!==e&&i(r,o,{get:()=>t[o],enumerable:!(f=h(t,o))||f.enumerable});return r};var n=(r,t,e)=>(e=r!=null?l(y(r)):{},m(t||!r||!r.__esModule?i(e,"default",{value:r,enumerable:!0}):e,r)),P=r=>m(i({},"__esModule",{value:!0}),r);var q={};x(q,{crossImport:()=>d,default:()=>d});module.exports=P(q);var c=n(require("upath")),s=n(require("fast-glob")),a=n(require("@techor/extend")),p=n(require("jiti")),u=require("sucrase");function d(r,t){if(t=(0,a.default)({cwd:process.cwd()},t),!r)return;let e=s.default.sync(r,t)[0];if(!e)return;let f=c.default.resolve(t.cwd,e);try{return delete require.cache[f],require(f)}catch{return(0,p.default)(__dirname,{interopDefault:!0,transform:o=>(0,u.transform)(o.source,{transforms:["imports","typescript"]})})(f)}}0&&(module.exports={crossImport}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
{"name":"cross-import","scripts":{"build:cjs":"esbuild src/index.ts --bundle --outfile=dist/index.js --format=cjs --minify --sourcemap --platform=node --external:esbuild --external:fast-glob --external:jiti --external:@techor/extend --external:sucrase --external:upath","build:type":"tsc --emitDeclarationOnly --preserveWatchOutput","build":"npm run build:cjs && npm run build:type","dev":"conc 'npm:build:* -- --watch'","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"Import .ts, .mjs, .cjs files across environments as JavaScript modules","author":{"name":"Aron","email":"i@aron.tw","url":"http://aron.tw"},"homepage":"https://aron.tw","bugs":{"url":"https://github.com/1aron/utils/issues"},"repository":{"type":"git","url":"https://github.com/1aron/utils.git","directory":"packages/read-module"},"keywords":["cjs","mjs","config","utils","module","read","cross","environments","esm","commonjs","ts","typescript"],"sideEffects":false,"publishConfig":{"access":"public"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","types":"./dist/index.d.ts"}},"files":["dist"],"dependencies":{"@techor/extend":"^2.1.12","fast-glob":"^3.2.12","jiti":"^1.18.2","sucrase":"^3.32.0","upath":"^2.0.1"},"version":"2.1.12"} | ||
{"name":"cross-import","scripts":{"build:cjs":"esbuild src/index.ts --bundle --outfile=dist/index.js --format=cjs --minify --sourcemap --platform=node --external:esbuild --external:fast-glob --external:jiti --external:@techor/extend --external:sucrase --external:upath","build:type":"tsc --emitDeclarationOnly --preserveWatchOutput","build":"npm run build:cjs && npm run build:type","dev":"conc 'npm:build:* -- --watch'","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"Import .ts, .mjs, .cjs files across environments as JavaScript modules","author":{"name":"Aron","email":"i@aron.tw","url":"http://aron.tw"},"homepage":"https://aron.tw","bugs":{"url":"https://github.com/1aron/utils/issues"},"repository":{"type":"git","url":"https://github.com/1aron/utils.git","directory":"packages/read-module"},"keywords":["cjs","mjs","config","utils","module","read","cross","environments","esm","commonjs","ts","typescript"],"sideEffects":false,"publishConfig":{"access":"public"},"main":"./dist/index.js","types":"./dist/index.d.ts","files":["dist"],"dependencies":{"@techor/extend":"^2.1.13","fast-glob":"^3.2.12","jiti":"^1.18.2","sucrase":"^3.32.0","upath":"^2.0.1"},"version":"2.1.13"} |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
9555
Updated@techor/extend@^2.1.13