@batijs/core 0.0.549 → 0.0.550
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1157,7 +1157,7 @@ ${R} return (`),yield _.insertTextAfter(z,`);
|
|
|
1157
1157
|
|
|
1158
1158
|
`+a.message+`
|
|
1159
1159
|
`+Array(a.message.length+1).join("=")+`
|
|
1160
|
-
`+IWr(t,r)):a}}var VEt=da("fs"),REt=da("path"),Nps=/^\uFEFF/;function jEt(t,e,r){var i=REt.resolve(r?e:REt.dirname(e),t),a=REt.extname(t);return a||(i+=".sqrl"),i}function Ips(t,e){var r,i,a=e.views,l=/^[A-Za-z]+:\\|^\//.exec(t);if(l&&l.length)r=jEt(t.replace(/^\/*/,""),e.root||"/",!0);else if(e.filename&&(i=jEt(t,e.filename),VEt.existsSync(i)&&(r=i)),r||Array.isArray(a)&&a.some(function(u){return i=jEt(t,u,!0),VEt.existsSync(i)})&&(r=i),!r)throw Zv('Could not find the include file "'+t+'"');return r}function jWr(t){return VEt.readFileSync(t).toString().replace(Nps,"")}function Ops(t,e){var r=m7e(e),i=jWr(t);try{var a=YEt(i,r);return r.storage.templates.define(r.filename,a),a}catch{throw Zv("Loading file: "+t+" failed")}}function Fps(t){var e=t.filename;if(t.cache){var r=t.storage.templates.get(e);return r||Ops(e,t)}return YEt(jWr(e),t)}function BWr(t,e){var r=m7e({filename:Ips(t,e)},e);return Fps(r)}function Lps(t,e,r){if(e&&e.length>0)throw Zv("Helper 'includeFile' doesn't accept blocks");return BWr(t.params[0],r)(t.params[1],r)}function Mps(t,e,r){var i=t.params[1]||{};i.content=t.exec();for(var a=0;a<e.length;a++){var l=e[a];i[l.name]=l.exec()}return BWr(t.params[0],r)(i,r)}function BEt(t,e){var r;return e.cache&&e.name&&e.storage.templates.get(e.name)?e.storage.templates.get(e.name):(typeof t=="function"?r=t:r=YEt(t,e),e.cache&&e.name&&e.storage.templates.define(e.name,r),r)}function UWr(t,e,r,i){var a=m7e(r||{});if(a.async){var l;if(i)try{BEt(t,a)(e,a,i)}catch(u){return i(u)}else{if(typeof kWr=="function")return new kWr(function(u,f){try{l=BEt(t,a)(e,a),u(l)}catch(_){f(_)}});throw Zv("Please provide a callback function, this env doesn't support Promises")}}else return BEt(t,a)(e,a)}zEt.define("includeFile",Lps);zEt.define("extendsFile",Mps);var WEt=["/*{","}*/"];function qWr(t,e){return UWr(t,e,{tags:WEt})}function Rps(t,e){return{eslint:(t.includes("BATI.has")||t.includes("BATI_TEST")||t.includes("/*# BATI ")||t.includes("@batijs/")||e.endsWith(".ts")||e.endsWith(".tsx"))&&!e.endsWith(".css"),squirelly:t.includes(WEt[0])}}var jps=/\/\/\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n]*/gim,Bps=/\/\/\s*biome-ignore[^\n]*/gim,Ups=/\/\*+\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n*]*\*+\//gim,qps=/\/\*+\s*biome-ignore[^\n*]*\*+\//gim,VWr=new RegExp(`${jps.source}|${Ups.source}`,"gim"),zWr=new RegExp(`${Bps.source}|${qps.source}`,"gim");async function Vps(t,e,r){let{eslint:i,squirelly:a}=Rps(t,r.filepath),l=t,u,f=!1;if(a&&(l=qWr(l,e),f=!0),i){let _=PWr(l,r.filepath,e);l=_.code,u=_.context,f=!0}return!e.BATI.has("eslint")&&VWr.test(l)&&(l=l.replace(VWr,""),f=!0),!e.BATI.has("biome")&&zWr.test(l)&&(l=l.replace(zWr,""),f=!0),{code:f?await lst(l,r):l,context:u}}import{randomBytes as cjs}from"crypto";var JEt={name:"@batijs/core",version:"0.0.
|
|
1160
|
+
`+IWr(t,r)):a}}var VEt=da("fs"),REt=da("path"),Nps=/^\uFEFF/;function jEt(t,e,r){var i=REt.resolve(r?e:REt.dirname(e),t),a=REt.extname(t);return a||(i+=".sqrl"),i}function Ips(t,e){var r,i,a=e.views,l=/^[A-Za-z]+:\\|^\//.exec(t);if(l&&l.length)r=jEt(t.replace(/^\/*/,""),e.root||"/",!0);else if(e.filename&&(i=jEt(t,e.filename),VEt.existsSync(i)&&(r=i)),r||Array.isArray(a)&&a.some(function(u){return i=jEt(t,u,!0),VEt.existsSync(i)})&&(r=i),!r)throw Zv('Could not find the include file "'+t+'"');return r}function jWr(t){return VEt.readFileSync(t).toString().replace(Nps,"")}function Ops(t,e){var r=m7e(e),i=jWr(t);try{var a=YEt(i,r);return r.storage.templates.define(r.filename,a),a}catch{throw Zv("Loading file: "+t+" failed")}}function Fps(t){var e=t.filename;if(t.cache){var r=t.storage.templates.get(e);return r||Ops(e,t)}return YEt(jWr(e),t)}function BWr(t,e){var r=m7e({filename:Ips(t,e)},e);return Fps(r)}function Lps(t,e,r){if(e&&e.length>0)throw Zv("Helper 'includeFile' doesn't accept blocks");return BWr(t.params[0],r)(t.params[1],r)}function Mps(t,e,r){var i=t.params[1]||{};i.content=t.exec();for(var a=0;a<e.length;a++){var l=e[a];i[l.name]=l.exec()}return BWr(t.params[0],r)(i,r)}function BEt(t,e){var r;return e.cache&&e.name&&e.storage.templates.get(e.name)?e.storage.templates.get(e.name):(typeof t=="function"?r=t:r=YEt(t,e),e.cache&&e.name&&e.storage.templates.define(e.name,r),r)}function UWr(t,e,r,i){var a=m7e(r||{});if(a.async){var l;if(i)try{BEt(t,a)(e,a,i)}catch(u){return i(u)}else{if(typeof kWr=="function")return new kWr(function(u,f){try{l=BEt(t,a)(e,a),u(l)}catch(_){f(_)}});throw Zv("Please provide a callback function, this env doesn't support Promises")}}else return BEt(t,a)(e,a)}zEt.define("includeFile",Lps);zEt.define("extendsFile",Mps);var WEt=["/*{","}*/"];function qWr(t,e){return UWr(t,e,{tags:WEt})}function Rps(t,e){return{eslint:(t.includes("BATI.has")||t.includes("BATI_TEST")||t.includes("/*# BATI ")||t.includes("@batijs/")||e.endsWith(".ts")||e.endsWith(".tsx"))&&!e.endsWith(".css"),squirelly:t.includes(WEt[0])}}var jps=/\/\/\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n]*/gim,Bps=/\/\/\s*biome-ignore[^\n]*/gim,Ups=/\/\*+\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n*]*\*+\//gim,qps=/\/\*+\s*biome-ignore[^\n*]*\*+\//gim,VWr=new RegExp(`${jps.source}|${Ups.source}`,"gim"),zWr=new RegExp(`${Bps.source}|${qps.source}`,"gim");async function Vps(t,e,r){let{eslint:i,squirelly:a}=Rps(t,r.filepath),l=t,u,f=!1;if(a&&(l=qWr(l,e),f=!0),i){let _=PWr(l,r.filepath,e);l=_.code,u=_.context,f=!0}return!e.BATI.has("eslint")&&VWr.test(l)&&(l=l.replace(VWr,""),f=!0),!e.BATI.has("biome")&&zWr.test(l)&&(l=l.replace(zWr,""),f=!0),{code:f?await lst(l,r):l,context:u}}import{randomBytes as cjs}from"crypto";var JEt={name:"@batijs/core",version:"0.0.550",description:"",type:"module",types:"./dist/index.d.ts",scripts:{"check-types":"tsc --noEmit",vue:"tsx src/parse/linters/vue.ts",test:"vitest run","test:ci":"vitest run",build:"tsup"},keywords:[],author:"Jo\xEBl Charles <joel.charles91@gmail.com>",repository:"https://github.com/vikejs/bati",license:"MIT",devDependencies:{"@batijs/features":"workspace:*","@types/eslint":"^9.6.1","@types/estree":"^1.0.8","@types/node":"^20.19.25","@types/which":"^3.0.4","@typescript-eslint/parser":"^8.48.1","@typescript-eslint/utils":"^8.48.1","attributes-parser":"^2.2.3",colorette:"^2.0.20",esbuild:"^0.27.1",eslint:"^9.39.1","eslint-plugin-solid":"^0.14.5","eslint-rule-composer":"^0.3.0",espree:"^11.0.0",magicast:"^0.5.1","mdast-builder":"^1.1.1","mdast-util-from-markdown":"^2.0.2","mdast-util-to-markdown":"^2.1.2","mdast-util-to-string":"^4.0.0","mdast-util-toc":"^7.1.0",prettier:"^3.7.4",squirrelly:"^9.1.0",tsup:"^8.5.1",tsx:"^4.21.0",typescript:"^5.9.3","unplugin-purge-polyfills":"^0.1.0",vitest:"^4.0.15","vue-eslint-parser":"^10.2.0",which:"^6.0.0",yaml:"^2.8.2"},exports:{".":"./dist/index.js","./config":"./dist/config.js","./types":{types:"./global.d.ts"}},typesVersions:{"*":{config:["./dist/config.d.ts"],types:["./global.d.ts"]}},files:["dist/"]};function Yps(){return process.env.npm_config_user_agent?Wps(process.env.npm_config_user_agent):{name:"npm",run:"npm run",exec:"npx"}}function Wps(t){let e=t.split(" ")[0],r=e.lastIndexOf("/"),i=e.substring(0,r);i=i==="npminstall"?"cnpm":i;let a;switch(i){case"pnpm":a="pnpm dlx";break;case"yarn":a="yarn dlx";break;case"bun":a="bunx";break;case"cnpm":a="cnpx";break;default:a="npx"}return{name:i,version:e.substring(r+1),run:i==="npm"?"npm run":i,exec:a}}function fjs(){switch(Yps().name){case"pnpm":return"pnpm create vike@latest";case"yarn":return"yarn create vike@latest";case"bun":return"bun create vike@latest";default:return"npm create vike@latest ---"}}function _js(){let t=JEt.version.split("."),e=t[0],r=t[1],i=t.slice(2).join(".");return{version:JEt.version,semver:[e,r,i]}}function mjs(t,e,r,i){t??="",t.endsWith(`
|
|
1161
1161
|
|
|
1162
1162
|
`)||(t.endsWith(`
|
|
1163
1163
|
`)?t=`${t}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.550",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"vue-eslint-parser": "^10.2.0",
|
|
39
39
|
"which": "^6.0.0",
|
|
40
40
|
"yaml": "^2.8.2",
|
|
41
|
-
"@batijs/features": "0.0.
|
|
41
|
+
"@batijs/features": "0.0.550"
|
|
42
42
|
},
|
|
43
43
|
"exports": {
|
|
44
44
|
".": "./dist/index.js",
|