@batijs/core 0.0.541 → 0.0.542
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(z,`);
|
|
|
1161
1161
|
|
|
1162
1162
|
`+a.message+`
|
|
1163
1163
|
`+Array(a.message.length+1).join("=")+`
|
|
1164
|
-
`+nWr(t,r)):a}}var kEt=pa("fs"),CEt=pa("path"),yus=/^\uFEFF/;function AEt(t,e,r){var i=CEt.resolve(r?e:CEt.dirname(e),t),a=CEt.extname(t);return a||(i+=".sqrl"),i}function bus(t,e){var r,i,a=e.views,l=/^[A-Za-z]+:\\|^\//.exec(t);if(l&&l.length)r=AEt(t.replace(/^\/*/,""),e.root||"/",!0);else if(e.filename&&(i=AEt(t,e.filename),kEt.existsSync(i)&&(r=i)),r||Array.isArray(a)&&a.some(function(u){return i=AEt(t,u,!0),kEt.existsSync(i)})&&(r=i),!r)throw Kv('Could not find the include file "'+t+'"');return r}function lWr(t){return kEt.readFileSync(t).toString().replace(yus,"")}function Tus(t,e){var r=s7e(e),i=lWr(t);try{var a=IEt(i,r);return r.storage.templates.define(r.filename,a),a}catch{throw Kv("Loading file: "+t+" failed")}}function vus(t){var e=t.filename;if(t.cache){var r=t.storage.templates.get(e);return r||Tus(e,t)}return IEt(lWr(e),t)}function uWr(t,e){var r=s7e({filename:bus(t,e)},e);return vus(r)}function Sus(t,e,r){if(e&&e.length>0)throw Kv("Helper 'includeFile' doesn't accept blocks");return uWr(t.params[0],r)(t.params[1],r)}function Eus(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 uWr(t.params[0],r)(i,r)}function DEt(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=IEt(t,e),e.cache&&e.name&&e.storage.templates.define(e.name,r),r)}function pWr(t,e,r,i){var a=s7e(r||{});if(a.async){var l;if(i)try{DEt(t,a)(e,a,i)}catch(u){return i(u)}else{if(typeof tWr=="function")return new tWr(function(u,f){try{l=DEt(t,a)(e,a),u(l)}catch(_){f(_)}});throw Kv("Please provide a callback function, this env doesn't support Promises")}}else return DEt(t,a)(e,a)}NEt.define("includeFile",Sus);NEt.define("extendsFile",Eus);var OEt=["/*{","}*/"];function fWr(t,e){return pWr(t,e,{tags:OEt})}function xus(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(OEt[0])}}var Cus=/\/\/\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n]*/gim,Aus=/\/\/\s*biome-ignore[^\n]*/gim,Dus=/\/\*+\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n*]*\*+\//gim,wus=/\/\*+\s*biome-ignore[^\n*]*\*+\//gim,_Wr=new RegExp(`${Cus.source}|${Dus.source}`,"gim"),dWr=new RegExp(`${Aus.source}|${wus.source}`,"gim");async function Pus(t,e,r){let{eslint:i,squirelly:a}=xus(t,r.filepath),l=t,u,f=!1;if(a&&(l=fWr(l,e),f=!0),i){let _=eWr(l,r.filepath,e);l=_.code,u=_.context,f=!0}return!e.BATI.has("eslint")&&_Wr.test(l)&&(l=l.replace(_Wr,""),f=!0),!e.BATI.has("biome")&&dWr.test(l)&&(l=l.replace(dWr,""),f=!0),{code:f?await Qit(l,r):l,context:u}}import{randomBytes as G7s}from"crypto";var FEt={name:"@batijs/core",version:"0.0.
|
|
1164
|
+
`+nWr(t,r)):a}}var kEt=pa("fs"),CEt=pa("path"),yus=/^\uFEFF/;function AEt(t,e,r){var i=CEt.resolve(r?e:CEt.dirname(e),t),a=CEt.extname(t);return a||(i+=".sqrl"),i}function bus(t,e){var r,i,a=e.views,l=/^[A-Za-z]+:\\|^\//.exec(t);if(l&&l.length)r=AEt(t.replace(/^\/*/,""),e.root||"/",!0);else if(e.filename&&(i=AEt(t,e.filename),kEt.existsSync(i)&&(r=i)),r||Array.isArray(a)&&a.some(function(u){return i=AEt(t,u,!0),kEt.existsSync(i)})&&(r=i),!r)throw Kv('Could not find the include file "'+t+'"');return r}function lWr(t){return kEt.readFileSync(t).toString().replace(yus,"")}function Tus(t,e){var r=s7e(e),i=lWr(t);try{var a=IEt(i,r);return r.storage.templates.define(r.filename,a),a}catch{throw Kv("Loading file: "+t+" failed")}}function vus(t){var e=t.filename;if(t.cache){var r=t.storage.templates.get(e);return r||Tus(e,t)}return IEt(lWr(e),t)}function uWr(t,e){var r=s7e({filename:bus(t,e)},e);return vus(r)}function Sus(t,e,r){if(e&&e.length>0)throw Kv("Helper 'includeFile' doesn't accept blocks");return uWr(t.params[0],r)(t.params[1],r)}function Eus(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 uWr(t.params[0],r)(i,r)}function DEt(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=IEt(t,e),e.cache&&e.name&&e.storage.templates.define(e.name,r),r)}function pWr(t,e,r,i){var a=s7e(r||{});if(a.async){var l;if(i)try{DEt(t,a)(e,a,i)}catch(u){return i(u)}else{if(typeof tWr=="function")return new tWr(function(u,f){try{l=DEt(t,a)(e,a),u(l)}catch(_){f(_)}});throw Kv("Please provide a callback function, this env doesn't support Promises")}}else return DEt(t,a)(e,a)}NEt.define("includeFile",Sus);NEt.define("extendsFile",Eus);var OEt=["/*{","}*/"];function fWr(t,e){return pWr(t,e,{tags:OEt})}function xus(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(OEt[0])}}var Cus=/\/\/\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n]*/gim,Aus=/\/\/\s*biome-ignore[^\n]*/gim,Dus=/\/\*+\s*eslint(?:-disable|-enable|-disable-next-line|-disable-line)?[^\n*]*\*+\//gim,wus=/\/\*+\s*biome-ignore[^\n*]*\*+\//gim,_Wr=new RegExp(`${Cus.source}|${Dus.source}`,"gim"),dWr=new RegExp(`${Aus.source}|${wus.source}`,"gim");async function Pus(t,e,r){let{eslint:i,squirelly:a}=xus(t,r.filepath),l=t,u,f=!1;if(a&&(l=fWr(l,e),f=!0),i){let _=eWr(l,r.filepath,e);l=_.code,u=_.context,f=!0}return!e.BATI.has("eslint")&&_Wr.test(l)&&(l=l.replace(_Wr,""),f=!0),!e.BATI.has("biome")&&dWr.test(l)&&(l=l.replace(dWr,""),f=!0),{code:f?await Qit(l,r):l,context:u}}import{randomBytes as G7s}from"crypto";var FEt={name:"@batijs/core",version:"0.0.542",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.0","@typescript-eslint/utils":"^8.48.0","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:"^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.3",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.14","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 Nus(){return process.env.npm_config_user_agent?Ius(process.env.npm_config_user_agent):{name:"npm",run:"npm run",exec:"npx"}}function Ius(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 Z7s(){switch(Nus().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 e9s(){let t=FEt.version.split("."),e=t[0],r=t[1],i=t.slice(2).join(".");return{version:FEt.version,semver:[e,r,i]}}function r9s(t,e,r,i){t??="",t.endsWith(`
|
|
1165
1165
|
|
|
1166
1166
|
`)||(t.endsWith(`
|
|
1167
1167
|
`)?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.542",
|
|
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.542"
|
|
42
42
|
},
|
|
43
43
|
"exports": {
|
|
44
44
|
".": "./dist/index.js",
|