@absolutejs/absolute 0.1.2 → 0.1.3

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.
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{c as f}from"./networkingPlugin.js";import"./pageRouterPlugin.js";import"../core/build.js";import"../../build-s7a2qjm1.js";import"../utils/updateScriptTags.js";import"../utils/networking.js";import"../../build-sewy0hdv.js";export{f as networkingPlugin};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{h as r}from"../../build-s7a2qjm1.js";import{j as e}from"../utils/networking.js";import"../../build-sewy0hdv.js";import{argv as a}from"node:process";var{env:s}=globalThis.Bun;var t=s.HOST??"localhost",o=s.PORT??r,l,c=a,n=c.includes("--host");if(n)l=e(),t="0.0.0.0";var d=(i)=>i.listen({hostname:t,port:o},()=>{if(n)console.log(`Server started on http://localhost:${o}`),console.log(`Server started on network: http://${l}:${o}`);else console.log(`Server started on http://${t}:${o}`)});export{d as networkingPlugin};
3
- export{d as c};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{d as i}from"../core/build.js";import"../../build-s7a2qjm1.js";import"../utils/updateScriptTags.js";import"../../build-sewy0hdv.js";var a=await i();
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{i as f}from"./updateScriptTags.js";import{j as m}from"./networking.js";import"../../build-sewy0hdv.js";export{f as updateScriptTags,m as getLocalIPAddress};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import"../../build-sewy0hdv.js";import q from"node:os";var x=()=>{let m=q.networkInterfaces(),j=Object.values(m).flat().filter((g)=>g!==void 0).find((g)=>g.family==="IPv4"&&!g.internal);if(j)return j.address;return console.warn("No IP address found, falling back to localhost"),"localhost"};export{x as getLocalIPAddress};
3
- export{x as j};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import"../../build-sewy0hdv.js";import{readFile as K,writeFile as L}from"node:fs/promises";var{Glob:M}=globalThis.Bun;var W=async(y,z)=>{let A=new M("*.html"),q=[];for await(let j of A.scan({cwd:z,absolute:!0}))q.push(j);for(let j of q){let k=await K(j,"utf8");for(let[B,C]of Object.entries(y)){let E=B.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),H=new RegExp(`(<script[^>]+src=["'])(/?(?:.*\\/)?${E})(?:\\.[^."'/]+)?(\\.js)(["'][^>]*>)`,"g");k=k.replace(H,(O,I,Q,T,J)=>{return`${I}${C}${J}`})}await L(j,k,"utf8")}};export{W as updateScriptTags};
3
- export{W as i};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import"../build-azzc5a4m.js";import q from"node:os";var x=()=>{let m=q.networkInterfaces(),j=Object.values(m).flat().filter((g)=>g!==void 0).find((g)=>g.family==="IPv4"&&!g.internal);if(j)return j.address;return console.warn("No IP address found, falling back to localhost"),"localhost"};export{x as getLocalIPAddress};
3
- export{x as f};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import"../build-azzc5a4m.js";import{readFile as K,writeFile as L}from"node:fs/promises";var{Glob:M}=globalThis.Bun;var W=async(y,z)=>{let A=new M("*.html"),q=[];for await(let j of A.scan({cwd:z,absolute:!0}))q.push(j);for(let j of q){let k=await K(j,"utf8");for(let[B,C]of Object.entries(y)){let E=B.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),H=new RegExp(`(<script[^>]+src=["'])(/?(?:.*\\/)?${E})(?:\\.[^."'/]+)?(\\.js)(["'][^>]*>)`,"g");k=k.replace(H,(O,I,Q,T,J)=>{return`${I}${C}${J}`})}await L(j,k,"utf8")}};export{W as updateScriptTags};
3
- export{W as g};
package/rollup.config.ts DELETED
@@ -1,22 +0,0 @@
1
- import svelte from "rollup-plugin-svelte";
2
- import css from "rollup-plugin-css-only";
3
- import { terser } from "rollup-plugin-terser";
4
- import { nodeResolve } from "@rollup/plugin-node-resolve";
5
-
6
- export default {
7
- input: "src/svelte/pages/SvelteHome.svelte",
8
- output: {
9
- dir: "build/svelte/indexes",
10
- format: "es" as const
11
- },
12
- plugins: [
13
- nodeResolve(),
14
- svelte({
15
- compilerOptions: {
16
- generate: "ssr"
17
- }
18
- }),
19
- css({ output: "SvelteHome.css" }),
20
- terser()
21
- ]
22
- };