@batijs/core 0.0.515 → 0.0.516

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1145,7 +1145,7 @@ ${j} return (`),yield _.insertTextAfter(z,`);
1145
1145
 
1146
1146
  `+a.message+`
1147
1147
  `+Array(a.message.length+1).join("=")+`
1148
- `+D$r(t,n)):a}}var xxt=$s("fs"),bxt=$s("path"),Zps=/^\uFEFF/;function Txt(t,e,n){var i=bxt.resolve(n?e:bxt.dirname(e),t),a=bxt.extname(t);return a||(i+=".sqrl"),i}function efs(t,e){var n,i,a=e.views,c=/^[A-Za-z]+:\\|^\//.exec(t);if(c&&c.length)n=Txt(t.replace(/^\/*/,""),e.root||"/",!0);else if(e.filename&&(i=Txt(t,e.filename),xxt.existsSync(i)&&(n=i)),n||Array.isArray(a)&&a.some(function(p){return i=Txt(t,p,!0),xxt.existsSync(i)})&&(n=i),!n)throw iS('Could not find the include file "'+t+'"');return n}function O$r(t){return xxt.readFileSync(t).toString().replace(Zps,"")}function tfs(t,e){var n=u7e(e),i=O$r(t);try{var a=Axt(i,n);return n.storage.templates.define(n.filename,a),a}catch{throw iS("Loading file: "+t+" failed")}}function rfs(t){var e=t.filename;if(t.cache){var n=t.storage.templates.get(e);return n||tfs(e,t)}return Axt(O$r(e),t)}function L$r(t,e){var n=u7e({filename:efs(t,e)},e);return rfs(n)}function nfs(t,e,n){if(e&&e.length>0)throw iS("Helper 'includeFile' doesn't accept blocks");return L$r(t.params[0],n)(t.params[1],n)}function ifs(t,e,n){var i=t.params[1]||{};i.content=t.exec();for(var a=0;a<e.length;a++){var c=e[a];i[c.name]=c.exec()}return L$r(t.params[0],n)(i,n)}function vxt(t,e){var n;return e.cache&&e.name&&e.storage.templates.get(e.name)?e.storage.templates.get(e.name):(typeof t=="function"?n=t:n=Axt(t,e),e.cache&&e.name&&e.storage.templates.define(e.name,n),n)}function F$r(t,e,n,i){var a=u7e(n||{});if(a.async){var c;if(i)try{vxt(t,a)(e,a,i)}catch(p){return i(p)}else{if(typeof C$r=="function")return new C$r(function(p,f){try{c=vxt(t,a)(e,a),p(c)}catch(_){f(_)}});throw iS("Please provide a callback function, this env doesn't support Promises")}}else return vxt(t,a)(e,a)}Cxt.define("includeFile",nfs);Cxt.define("extendsFile",ifs);var Dxt=["/*{","}*/"];function M$r(t,e){return F$r(t,e,{tags:Dxt})}function sfs(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(Dxt[0])}}var afs=/\/\/\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n]*/gim,ofs=/\/\/\s*biome-ignore[^\n]*/gim,lfs=/\/\*+\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n*]*\*+\//gim,cfs=/\/\*+\s*biome-ignore[^\n*]*\*+\//gim,R$r=new RegExp(`${afs.source}|${lfs.source}`,"gim"),j$r=new RegExp(`${ofs.source}|${cfs.source}`,"gim");async function ufs(t,e,n){let{eslint:i,squirelly:a}=sfs(t,n.filepath),c=t,p,f=!1;if(a&&(c=M$r(c,e),f=!0),i){let _=x$r(c,n.filepath,e);c=_.code,p=_.context,f=!0}return!e.BATI.has("eslint")&&R$r.test(c)&&(c=c.replace(R$r,""),f=!0),!e.BATI.has("biome")&&j$r.test(c)&&(c=c.replace(j$r,""),f=!0),{code:f?await Pit(c,n):c,context:p}}import{randomBytes as yBs}from"crypto";var wxt={name:"@batijs/core",version:"0.0.515",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.24","@types/which":"^3.0.4","@typescript-eslint/parser":"^8.46.4","@typescript-eslint/utils":"^8.46.4","attributes-parser":"^2.2.3",colorette:"^2.0.20",esbuild:"^0.27.0",eslint:"^9.39.1","eslint-plugin-solid":"^0.14.5","eslint-rule-composer":"^0.3.0",espree:"^10.4.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.6.2",squirrelly:"^9.1.0",tsup:"^8.5.1",tsx:"^4.20.6",typescript:"^5.9.3","unplugin-purge-polyfills":"^0.1.0",vitest:"^4.0.9","vue-eslint-parser":"^10.2.0",which:"^6.0.0",yaml:"^2.8.1"},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 ffs(){return process.env.npm_config_user_agent?_fs(process.env.npm_config_user_agent):{name:"npm",run:"npm run"}}function _fs(t){let e=t.split(" ")[0],n=e.lastIndexOf("/"),i=e.substring(0,n);return i=i==="npminstall"?"cnpm":i,{name:i,version:e.substring(n+1),run:i==="npm"?"npm run":i}}function SBs(){switch(ffs().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 EBs(){let t=wxt.version.split("."),e=t[0],n=t[1],i=t.slice(2).join(".");return{version:wxt.version,semver:[e,n,i]}}function CBs(t,e,n,i){t??="",t.endsWith(`
1148
+ `+D$r(t,n)):a}}var xxt=$s("fs"),bxt=$s("path"),Zps=/^\uFEFF/;function Txt(t,e,n){var i=bxt.resolve(n?e:bxt.dirname(e),t),a=bxt.extname(t);return a||(i+=".sqrl"),i}function efs(t,e){var n,i,a=e.views,c=/^[A-Za-z]+:\\|^\//.exec(t);if(c&&c.length)n=Txt(t.replace(/^\/*/,""),e.root||"/",!0);else if(e.filename&&(i=Txt(t,e.filename),xxt.existsSync(i)&&(n=i)),n||Array.isArray(a)&&a.some(function(p){return i=Txt(t,p,!0),xxt.existsSync(i)})&&(n=i),!n)throw iS('Could not find the include file "'+t+'"');return n}function O$r(t){return xxt.readFileSync(t).toString().replace(Zps,"")}function tfs(t,e){var n=u7e(e),i=O$r(t);try{var a=Axt(i,n);return n.storage.templates.define(n.filename,a),a}catch{throw iS("Loading file: "+t+" failed")}}function rfs(t){var e=t.filename;if(t.cache){var n=t.storage.templates.get(e);return n||tfs(e,t)}return Axt(O$r(e),t)}function L$r(t,e){var n=u7e({filename:efs(t,e)},e);return rfs(n)}function nfs(t,e,n){if(e&&e.length>0)throw iS("Helper 'includeFile' doesn't accept blocks");return L$r(t.params[0],n)(t.params[1],n)}function ifs(t,e,n){var i=t.params[1]||{};i.content=t.exec();for(var a=0;a<e.length;a++){var c=e[a];i[c.name]=c.exec()}return L$r(t.params[0],n)(i,n)}function vxt(t,e){var n;return e.cache&&e.name&&e.storage.templates.get(e.name)?e.storage.templates.get(e.name):(typeof t=="function"?n=t:n=Axt(t,e),e.cache&&e.name&&e.storage.templates.define(e.name,n),n)}function F$r(t,e,n,i){var a=u7e(n||{});if(a.async){var c;if(i)try{vxt(t,a)(e,a,i)}catch(p){return i(p)}else{if(typeof C$r=="function")return new C$r(function(p,f){try{c=vxt(t,a)(e,a),p(c)}catch(_){f(_)}});throw iS("Please provide a callback function, this env doesn't support Promises")}}else return vxt(t,a)(e,a)}Cxt.define("includeFile",nfs);Cxt.define("extendsFile",ifs);var Dxt=["/*{","}*/"];function M$r(t,e){return F$r(t,e,{tags:Dxt})}function sfs(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(Dxt[0])}}var afs=/\/\/\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n]*/gim,ofs=/\/\/\s*biome-ignore[^\n]*/gim,lfs=/\/\*+\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n*]*\*+\//gim,cfs=/\/\*+\s*biome-ignore[^\n*]*\*+\//gim,R$r=new RegExp(`${afs.source}|${lfs.source}`,"gim"),j$r=new RegExp(`${ofs.source}|${cfs.source}`,"gim");async function ufs(t,e,n){let{eslint:i,squirelly:a}=sfs(t,n.filepath),c=t,p,f=!1;if(a&&(c=M$r(c,e),f=!0),i){let _=x$r(c,n.filepath,e);c=_.code,p=_.context,f=!0}return!e.BATI.has("eslint")&&R$r.test(c)&&(c=c.replace(R$r,""),f=!0),!e.BATI.has("biome")&&j$r.test(c)&&(c=c.replace(j$r,""),f=!0),{code:f?await Pit(c,n):c,context:p}}import{randomBytes as yBs}from"crypto";var wxt={name:"@batijs/core",version:"0.0.516",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.24","@types/which":"^3.0.4","@typescript-eslint/parser":"^8.46.4","@typescript-eslint/utils":"^8.46.4","attributes-parser":"^2.2.3",colorette:"^2.0.20",esbuild:"^0.27.0",eslint:"^9.39.1","eslint-plugin-solid":"^0.14.5","eslint-rule-composer":"^0.3.0",espree:"^10.4.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.6.2",squirrelly:"^9.1.0",tsup:"^8.5.1",tsx:"^4.20.6",typescript:"^5.9.3","unplugin-purge-polyfills":"^0.1.0",vitest:"^4.0.9","vue-eslint-parser":"^10.2.0",which:"^6.0.0",yaml:"^2.8.1"},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 ffs(){return process.env.npm_config_user_agent?_fs(process.env.npm_config_user_agent):{name:"npm",run:"npm run"}}function _fs(t){let e=t.split(" ")[0],n=e.lastIndexOf("/"),i=e.substring(0,n);return i=i==="npminstall"?"cnpm":i,{name:i,version:e.substring(n+1),run:i==="npm"?"npm run":i}}function SBs(){switch(ffs().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 EBs(){let t=wxt.version.split("."),e=t[0],n=t[1],i=t.slice(2).join(".");return{version:wxt.version,semver:[e,n,i]}}function CBs(t,e,n,i){t??="",t.endsWith(`
1149
1149
 
1150
1150
  `)||(t.endsWith(`
1151
1151
  `)?t=`${t}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/core",
3
- "version": "0.0.515",
3
+ "version": "0.0.516",
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.1",
41
- "@batijs/features": "0.0.515"
41
+ "@batijs/features": "0.0.516"
42
42
  },
43
43
  "exports": {
44
44
  ".": "./dist/index.js",