@batijs/core 0.0.568 → 0.0.575
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 +4 -4
package/dist/index.js
CHANGED
|
@@ -1160,7 +1160,7 @@ ${j} return (`),yield _.insertTextAfter(B,`);
|
|
|
1160
1160
|
|
|
1161
1161
|
`+a.message+`
|
|
1162
1162
|
`+Array(a.message.length+1).join("=")+`
|
|
1163
|
-
`+YWr(e,r)):a}}var QEt=da("fs"),JEt=da("path"),nfs=/^\uFEFF/;function $Et(e,t,r){var i=JEt.resolve(r?t:JEt.dirname(t),e),a=JEt.extname(e);return a||(i+=".sqrl"),i}function ifs(e,t){var r,i,a=t.views,l=/^[A-Za-z]+:\\|^\//.exec(e);if(l&&l.length)r=$Et(e.replace(/^\/*/,""),t.root||"/",!0);else if(t.filename&&(i=$Et(e,t.filename),QEt.existsSync(i)&&(r=i)),r||Array.isArray(a)&&a.some(function(u){return i=$Et(e,u,!0),QEt.existsSync(i)})&&(r=i),!r)throw ZT('Could not find the include file "'+e+'"');return r}function KWr(e){return QEt.readFileSync(e).toString().replace(nfs,"")}function sfs(e,t){var r=D9e(t),i=KWr(e);try{var a=ZEt(i,r);return r.storage.templates.define(r.filename,a),a}catch{throw ZT("Loading file: "+e+" failed")}}function afs(e){var t=e.filename;if(e.cache){var r=e.storage.templates.get(t);return r||sfs(t,e)}return ZEt(KWr(t),e)}function QWr(e,t){var r=D9e({filename:ifs(e,t)},t);return afs(r)}function ofs(e,t,r){if(t&&t.length>0)throw ZT("Helper 'includeFile' doesn't accept blocks");return QWr(e.params[0],r)(e.params[1],r)}function cfs(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 QWr(e.params[0],r)(i,r)}function GEt(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=ZEt(e,t),t.cache&&t.name&&t.storage.templates.define(t.name,r),r)}function XWr(e,t,r,i){var a=D9e(r||{});if(a.async){var l;if(i)try{GEt(e,a)(t,a,i)}catch(u){return i(u)}else{if(typeof zWr=="function")return new zWr(function(u,f){try{l=GEt(e,a)(t,a),u(l)}catch(_){f(_)}});throw ZT("Please provide a callback function, this env doesn't support Promises")}}else return GEt(e,a)(t,a)}XEt.define("includeFile",ofs);XEt.define("extendsFile",cfs);var ext=["/*{","}*/"];function ZWr(e,t){return XWr(e,t,{tags:ext})}function lfs(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(ext[0])}}var ufs=/\/\/\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n]*/gim,pfs=/\/\/\s*biome-ignore[^\n]*/gim,ffs=/\/\*+\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n*]*\*+\//gim,_fs=/\/\*+\s*biome-ignore[^\n*]*\*+\//gim,eJr=new RegExp(`${ufs.source}|${ffs.source}`,"gim"),tJr=new RegExp(`${pfs.source}|${_fs.source}`,"gim");async function dfs(e,t,r){let{eslint:i,squirelly:a}=lfs(e,r.filepath),l=e,u,f=!1;if(a&&(l=ZWr(l,t),f=!0),i){let _=qWr(l,r.filepath,t);l=_.code,u=_.context,f=!0}return!t.BATI.has("eslint")&&eJr.test(l)&&(l=l.replace(eJr,""),f=!0),!t.BATI.has("biome")&&tJr.test(l)&&(l=l.replace(tJr,""),f=!0),{code:f?await vst(l,r):l,context:u}}import{randomBytes as FRs}from"crypto";var txt={name:"@batijs/core",version:"0.0.
|
|
1163
|
+
`+YWr(e,r)):a}}var QEt=da("fs"),JEt=da("path"),nfs=/^\uFEFF/;function $Et(e,t,r){var i=JEt.resolve(r?t:JEt.dirname(t),e),a=JEt.extname(e);return a||(i+=".sqrl"),i}function ifs(e,t){var r,i,a=t.views,l=/^[A-Za-z]+:\\|^\//.exec(e);if(l&&l.length)r=$Et(e.replace(/^\/*/,""),t.root||"/",!0);else if(t.filename&&(i=$Et(e,t.filename),QEt.existsSync(i)&&(r=i)),r||Array.isArray(a)&&a.some(function(u){return i=$Et(e,u,!0),QEt.existsSync(i)})&&(r=i),!r)throw ZT('Could not find the include file "'+e+'"');return r}function KWr(e){return QEt.readFileSync(e).toString().replace(nfs,"")}function sfs(e,t){var r=D9e(t),i=KWr(e);try{var a=ZEt(i,r);return r.storage.templates.define(r.filename,a),a}catch{throw ZT("Loading file: "+e+" failed")}}function afs(e){var t=e.filename;if(e.cache){var r=e.storage.templates.get(t);return r||sfs(t,e)}return ZEt(KWr(t),e)}function QWr(e,t){var r=D9e({filename:ifs(e,t)},t);return afs(r)}function ofs(e,t,r){if(t&&t.length>0)throw ZT("Helper 'includeFile' doesn't accept blocks");return QWr(e.params[0],r)(e.params[1],r)}function cfs(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 QWr(e.params[0],r)(i,r)}function GEt(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=ZEt(e,t),t.cache&&t.name&&t.storage.templates.define(t.name,r),r)}function XWr(e,t,r,i){var a=D9e(r||{});if(a.async){var l;if(i)try{GEt(e,a)(t,a,i)}catch(u){return i(u)}else{if(typeof zWr=="function")return new zWr(function(u,f){try{l=GEt(e,a)(t,a),u(l)}catch(_){f(_)}});throw ZT("Please provide a callback function, this env doesn't support Promises")}}else return GEt(e,a)(t,a)}XEt.define("includeFile",ofs);XEt.define("extendsFile",cfs);var ext=["/*{","}*/"];function ZWr(e,t){return XWr(e,t,{tags:ext})}function lfs(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(ext[0])}}var ufs=/\/\/\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n]*/gim,pfs=/\/\/\s*biome-ignore[^\n]*/gim,ffs=/\/\*+\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n*]*\*+\//gim,_fs=/\/\*+\s*biome-ignore[^\n*]*\*+\//gim,eJr=new RegExp(`${ufs.source}|${ffs.source}`,"gim"),tJr=new RegExp(`${pfs.source}|${_fs.source}`,"gim");async function dfs(e,t,r){let{eslint:i,squirelly:a}=lfs(e,r.filepath),l=e,u,f=!1;if(a&&(l=ZWr(l,t),f=!0),i){let _=qWr(l,r.filepath,t);l=_.code,u=_.context,f=!0}return!t.BATI.has("eslint")&&eJr.test(l)&&(l=l.replace(eJr,""),f=!0),!t.BATI.has("biome")&&tJr.test(l)&&(l=l.replace(tJr,""),f=!0),{code:f?await vst(l,r):l,context:u}}import{randomBytes as FRs}from"crypto";var txt={name:"@batijs/core",version:"0.0.575",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.54.0","@typescript-eslint/utils":"^8.54.0","attributes-parser":"^2.2.3",colorette:"^2.0.20",esbuild:"^0.27.2",eslint:"^9.39.2","eslint-plugin-solid":"^0.14.5","eslint-rule-composer":"^0.3.0",espree:"^11.1.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.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.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 hfs(){return process.env.npm_config_user_agent?gfs(process.env.npm_config_user_agent):{name:"npm",run:"npm run",exec:"npx"}}function gfs(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 RRs(){switch(hfs().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 BRs(){let e=txt.version.split("."),t=e[0],r=e[1],i=e.slice(2).join(".");return{version:txt.version,semver:[t,r,i]}}function qRs(e,t,r,i){e??="",e.endsWith(`
|
|
1164
1164
|
|
|
1165
1165
|
`)||(e.endsWith(`
|
|
1166
1166
|
`)?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.575",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"@types/estree": "^1.0.8",
|
|
14
14
|
"@types/node": "^20.19.30",
|
|
15
15
|
"@types/which": "^3.0.4",
|
|
16
|
-
"@typescript-eslint/parser": "^8.
|
|
17
|
-
"@typescript-eslint/utils": "^8.
|
|
16
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
17
|
+
"@typescript-eslint/utils": "^8.54.0",
|
|
18
18
|
"attributes-parser": "^2.2.3",
|
|
19
19
|
"colorette": "^2.0.20",
|
|
20
20
|
"esbuild": "^0.27.2",
|
|
@@ -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.575"
|
|
42
42
|
},
|
|
43
43
|
"exports": {
|
|
44
44
|
".": "./dist/index.js",
|