cross-import
Advanced tools
Comparing version 2.5.20 to 2.5.21
@@ -1,2 +0,2 @@ | ||
var a=Object.create;var c=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var D=(r,e)=>{for(var o in e)c(r,o,{get:e[o],enumerable:!0})},i=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of m(e))!g.call(r,s)&&s!==o&&c(r,s,{get:()=>e[s],enumerable:!(t=l(e,s))||t.enumerable});return r};var v=(r,e,o)=>(o=r!=null?a(u(r)):{},i(e||!r||!r.__esModule?c(o,"default",{value:r,enumerable:!0}):o,r)),B=r=>i(c({},"__esModule",{value:!0}),r);var E={};D(E,{default:()=>p});module.exports=B(E);var n=v(require("jiti/dist/jiti")),f=require("sucrase");function p(r){if(r){try{require.cache[r]&&(delete require.cache[r],process.env.DEBUG&&console.log("[cross-import] cache deleted"))}catch{}try{return process.env.DEBUG&&console.log("[cross-import] require:",r),require(r)}catch(e){return process.env.DEBUG&&(console.error(e),console.log("[cross-import] fall back to jiti:",r)),(0,n.default)(__filename,{interopDefault:!0,cache:!1,debug:!!process.env.DEBUG,transform:o=>(process.env.DEBUG&&console.log("[cross-import] jiti transform"),(0,f.transform)(o.source,{transforms:["imports","typescript"]}))})(r)}}} | ||
var a=Object.create;var c=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var D=(r,e)=>{for(var o in e)c(r,o,{get:e[o],enumerable:!0})},i=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of m(e))!g.call(r,s)&&s!==o&&c(r,s,{get:()=>e[s],enumerable:!(t=l(e,s))||t.enumerable});return r};var E=(r,e,o)=>(o=r!=null?a(u(r)):{},i(e||!r||!r.__esModule?c(o,"default",{value:r,enumerable:!0}):o,r)),v=r=>i(c({},"__esModule",{value:!0}),r);var B={};D(B,{default:()=>p});module.exports=v(B);var n=E(require("jiti/dist/jiti")),f=require("sucrase");function p(r){if(r){try{require.cache[r]&&(delete require.cache[r],process.env.DEBUG&&console.log("[cross-import] cache deleted"))}catch{}try{return process.env.DEBUG&&console.log("[cross-import] require:",r),require(r)}catch(e){return process.env.DEBUG&&(console.error(e),console.log("[cross-import] fall back to jiti:",r)),(0,n.default)(__filename,{interopDefault:!0,cache:!1,debug:!!process.env.DEBUG,onError(o){throw o},transform:o=>(process.env.DEBUG&&console.log("[cross-import] jiti transform"),(0,f.transform)(o.source,{transforms:["imports","typescript"]}))})(r)}}} | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
{"name":"cross-import","scripts":{"build:cjs":"esbuild src/index.ts --outfile=dist/index.js --format=cjs --minify --sourcemap --platform=node","build:type":"tsc --emitDeclarationOnly --preserveWatchOutput","build":"pnpm run \"/^build:.*/\"","dev":"pnpm run \"/^build:.*/\" --watch","test":"node -r sucrase/register ./tests/real && 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/techor/issues"},"repository":{"type":"git","url":"https://github.com/1aron/techor.git","directory":"packages/read-module"},"keywords":["cjs","mjs","config","utils","module","read","cross","environments","commonjs","ts","typescript"],"sideEffects":false,"publishConfig":{"access":"public"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":"./dist/index.js","files":["dist"],"dependencies":{"jiti":"^1.21.0","sucrase":"^3.34.0"},"version":"2.5.20"} | ||
{"name":"cross-import","scripts":{"build:cjs":"esbuild src/index.ts --outfile=dist/index.js --format=cjs --minify --sourcemap --platform=node","build:type":"tsc --emitDeclarationOnly --preserveWatchOutput","build":"pnpm run \"/^build:.*/\"","dev":"pnpm run \"/^build:.*/\" --watch","test":"node -r sucrase/register ./tests/real && 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/techor/issues"},"repository":{"type":"git","url":"https://github.com/1aron/techor.git","directory":"packages/read-module"},"keywords":["cjs","mjs","config","utils","module","read","cross","environments","commonjs","ts","typescript"],"sideEffects":false,"publishConfig":{"access":"public"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":"./dist/index.js","files":["dist"],"dependencies":{"jiti":"^1.21.0","sucrase":"^3.35.0"},"version":"2.5.21"} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9413
Updatedsucrase@^3.35.0