@batijs/core 0.0.581 → 0.0.583
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
|
@@ -1161,7 +1161,7 @@ ${R} return (`),yield _.insertTextAfter(B,`);
|
|
|
1161
1161
|
|
|
1162
1162
|
`+a.message+`
|
|
1163
1163
|
`+Array(a.message.length+1).join("=")+`
|
|
1164
|
-
`+sJr(e,r)):a}}var nxt=da("fs"),XEt=da("path"),Gfs=/^\uFEFF/;function ZEt(e,t,r){var i=XEt.resolve(r?t:XEt.dirname(t),e),a=XEt.extname(e);return a||(i+=".sqrl"),i}function Hfs(e,t){var r,i,a=t.views,l=/^[A-Za-z]+:\\|^\//.exec(e);if(l&&l.length)r=ZEt(e.replace(/^\/*/,""),t.root||"/",!0);else if(t.filename&&(i=ZEt(e,t.filename),nxt.existsSync(i)&&(r=i)),r||Array.isArray(a)&&a.some(function(u){return i=ZEt(e,u,!0),nxt.existsSync(i)})&&(r=i),!r)throw eS('Could not find the include file "'+e+'"');return r}function pJr(e){return nxt.readFileSync(e).toString().replace(Gfs,"")}function Kfs(e,t){var r=N9e(t),i=pJr(e);try{var a=sxt(i,r);return r.storage.templates.define(r.filename,a),a}catch{throw eS("Loading file: "+e+" failed")}}function Qfs(e){var t=e.filename;if(e.cache){var r=e.storage.templates.get(t);return r||Kfs(t,e)}return sxt(pJr(t),e)}function fJr(e,t){var r=N9e({filename:Hfs(e,t)},t);return Qfs(r)}function Xfs(e,t,r){if(t&&t.length>0)throw eS("Helper 'includeFile' doesn't accept blocks");return fJr(e.params[0],r)(e.params[1],r)}function Zfs(e,t,r){var i=e.params[1]||{};i.content=e.exec();for(var a=0;a<t.length;a++){var l=t[a];i[l.name]=l.exec()}return fJr(e.params[0],r)(i,r)}function ext(e,t){var r;return t.cache&&t.name&&t.storage.templates.get(t.name)?t.storage.templates.get(t.name):(typeof e=="function"?r=e:r=sxt(e,t),t.cache&&t.name&&t.storage.templates.define(t.name,r),r)}function _Jr(e,t,r,i){var a=N9e(r||{});if(a.async){var l;if(i)try{ext(e,a)(t,a,i)}catch(u){return i(u)}else{if(typeof nJr=="function")return new nJr(function(u,f){try{l=ext(e,a)(t,a),u(l)}catch(_){f(_)}});throw eS("Please provide a callback function, this env doesn't support Promises")}}else return ext(e,a)(t,a)}ixt.define("includeFile",Xfs);ixt.define("extendsFile",Zfs);var axt=["/*{","}*/"];function dJr(e,t){return _Jr(e,t,{tags:axt})}function e_s(e,t){return{eslint:(e.includes("BATI.has")||e.includes("BATI_TEST")||e.includes("/*# BATI ")||e.includes("@batijs/")||t.endsWith(".ts")||t.endsWith(".tsx"))&&!t.endsWith(".css"),squirelly:e.includes(axt[0])}}var t_s=/\/\/\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n]*/gim,r_s=/\/\/\s*biome-ignore[^\n]*/gim,n_s=/\/\*+\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n*]*\*+\//gim,i_s=/\/\*+\s*biome-ignore[^\n*]*\*+\//gim,mJr=new RegExp(`${t_s.source}|${n_s.source}`,"gim"),hJr=new RegExp(`${r_s.source}|${i_s.source}`,"gim");async function s_s(e,t,r){let{eslint:i,squirelly:a}=e_s(e,r.filepath),l=e,u,f=!1;if(a&&(l=dJr(l,t),f=!0),i){let _=rJr(l,r.filepath,t);l=_.code,u=_.context,f=!0}return!t.BATI.has("eslint")&&mJr.test(l)&&(l=l.replace(mJr,""),f=!0),!t.BATI.has("biome")&&hJr.test(l)&&(l=l.replace(hJr,""),f=!0),{code:f?await Cst(l,r):l,context:u}}import{randomBytes as qBs}from"crypto";var oxt={name:"@batijs/core",version:"0.0.
|
|
1164
|
+
`+sJr(e,r)):a}}var nxt=da("fs"),XEt=da("path"),Gfs=/^\uFEFF/;function ZEt(e,t,r){var i=XEt.resolve(r?t:XEt.dirname(t),e),a=XEt.extname(e);return a||(i+=".sqrl"),i}function Hfs(e,t){var r,i,a=t.views,l=/^[A-Za-z]+:\\|^\//.exec(e);if(l&&l.length)r=ZEt(e.replace(/^\/*/,""),t.root||"/",!0);else if(t.filename&&(i=ZEt(e,t.filename),nxt.existsSync(i)&&(r=i)),r||Array.isArray(a)&&a.some(function(u){return i=ZEt(e,u,!0),nxt.existsSync(i)})&&(r=i),!r)throw eS('Could not find the include file "'+e+'"');return r}function pJr(e){return nxt.readFileSync(e).toString().replace(Gfs,"")}function Kfs(e,t){var r=N9e(t),i=pJr(e);try{var a=sxt(i,r);return r.storage.templates.define(r.filename,a),a}catch{throw eS("Loading file: "+e+" failed")}}function Qfs(e){var t=e.filename;if(e.cache){var r=e.storage.templates.get(t);return r||Kfs(t,e)}return sxt(pJr(t),e)}function fJr(e,t){var r=N9e({filename:Hfs(e,t)},t);return Qfs(r)}function Xfs(e,t,r){if(t&&t.length>0)throw eS("Helper 'includeFile' doesn't accept blocks");return fJr(e.params[0],r)(e.params[1],r)}function Zfs(e,t,r){var i=e.params[1]||{};i.content=e.exec();for(var a=0;a<t.length;a++){var l=t[a];i[l.name]=l.exec()}return fJr(e.params[0],r)(i,r)}function ext(e,t){var r;return t.cache&&t.name&&t.storage.templates.get(t.name)?t.storage.templates.get(t.name):(typeof e=="function"?r=e:r=sxt(e,t),t.cache&&t.name&&t.storage.templates.define(t.name,r),r)}function _Jr(e,t,r,i){var a=N9e(r||{});if(a.async){var l;if(i)try{ext(e,a)(t,a,i)}catch(u){return i(u)}else{if(typeof nJr=="function")return new nJr(function(u,f){try{l=ext(e,a)(t,a),u(l)}catch(_){f(_)}});throw eS("Please provide a callback function, this env doesn't support Promises")}}else return ext(e,a)(t,a)}ixt.define("includeFile",Xfs);ixt.define("extendsFile",Zfs);var axt=["/*{","}*/"];function dJr(e,t){return _Jr(e,t,{tags:axt})}function e_s(e,t){return{eslint:(e.includes("BATI.has")||e.includes("BATI_TEST")||e.includes("/*# BATI ")||e.includes("@batijs/")||t.endsWith(".ts")||t.endsWith(".tsx"))&&!t.endsWith(".css"),squirelly:e.includes(axt[0])}}var t_s=/\/\/\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n]*/gim,r_s=/\/\/\s*biome-ignore[^\n]*/gim,n_s=/\/\*+\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n*]*\*+\//gim,i_s=/\/\*+\s*biome-ignore[^\n*]*\*+\//gim,mJr=new RegExp(`${t_s.source}|${n_s.source}`,"gim"),hJr=new RegExp(`${r_s.source}|${i_s.source}`,"gim");async function s_s(e,t,r){let{eslint:i,squirelly:a}=e_s(e,r.filepath),l=e,u,f=!1;if(a&&(l=dJr(l,t),f=!0),i){let _=rJr(l,r.filepath,t);l=_.code,u=_.context,f=!0}return!t.BATI.has("eslint")&&mJr.test(l)&&(l=l.replace(mJr,""),f=!0),!t.BATI.has("biome")&&hJr.test(l)&&(l=l.replace(hJr,""),f=!0),{code:f?await Cst(l,r):l,context:u}}import{randomBytes as qBs}from"crypto";var oxt={name:"@batijs/core",version:"0.0.583",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.30","@types/which":"^3.0.4","@typescript-eslint/parser":"^8.55.0","@typescript-eslint/utils":"^8.55.0","attributes-parser":"^2.2.3",colorette:"^2.0.20",esbuild:"^0.27.3",eslint:"^9.39.2","eslint-plugin-solid":"^0.14.5","eslint-rule-composer":"^0.3.0",espree:"^11.1.0",magicast:"^0.5.2","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.8.1",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.18","vue-eslint-parser":"^10.4.0",which:"^6.0.1",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 o_s(){return process.env.npm_config_user_agent?c_s(process.env.npm_config_user_agent):{name:"npm",run:"npm run",exec:"npx"}}function c_s(e){let t=e.split(" ")[0],r=t.lastIndexOf("/"),i=t.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:t.substring(r+1),run:i==="npm"?"npm run":i,exec:a}}function WBs(){switch(o_s().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 JBs(){let e=oxt.version.split("."),t=e[0],r=e[1],i=e.slice(2).join(".");return{version:oxt.version,semver:[t,r,i]}}function GBs(e,t,r,i){e??="",e.endsWith(`
|
|
1165
1165
|
|
|
1166
1166
|
`)||(e.endsWith(`
|
|
1167
1167
|
`)?e=`${e}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.583",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"vue-eslint-parser": "^10.4.0",
|
|
39
39
|
"which": "^6.0.1",
|
|
40
40
|
"yaml": "^2.8.2",
|
|
41
|
-
"@batijs/features": "0.0.
|
|
41
|
+
"@batijs/features": "0.0.583"
|
|
42
42
|
},
|
|
43
43
|
"exports": {
|
|
44
44
|
".": "./dist/index.js",
|