alexxnb / aovi-svelte Goto Github PK
View Code? Open in Web Editor NEWEasy using Aovi in your Svelte apps
License: MIT License
Easy using Aovi in your Svelte apps
License: MIT License
i saw that you moved aovi from dependencies to devDependencies, now i get
plugin:vite:import-analysis] Failed to resolve import "aovi" from "node_modules\aovi-svelte\dist\aovi.js". Does the file exist?
xxxxxx/node_modules/aovi-svelte/dist/aovi.js:1:23
1 | import{aovi as y}from"aovi";import{writable as h,derived as w}from"svelte/store";var f=[],s=["err","valid"],g=0;function m(r){for(let n of s)if(r[n])throw new Error(`Name of property in object "${n}" is reserved for internal use`);c(r);let{subscribe:e,set:t,update:o}=h(r);return{subscribe:e,set:t,clear:n=>o(i=>c(i)),get aovi(){let n=l(r);return Object.defineProperty(n,"end",{get:()=>t(p(r,n.array()))}),n},error:(n,i)=>t(d(r,n,i)),load:n=>{!Array.isArray(n)||t(p(r,n))},checker(n,i){if(!r.hasOwnProperty(n))throw new Error(`Unknown property ${n}`);return w(this,u=>i(l(u).check(n).required(),a(u)).valid)},get(){let n=Array.from(arguments);return n.length===0?a(r):Object.entries(a(r)).reduce((i,[u,v])=>(n.includes(u)&&(i[u]=v),i),{})}}}function O(r){f.push(r)}function l(r){let e=y(r);for(let t of f)e.use(t);return e}function d(r,e,t){return t&&!r.hasOwnProperty(t)?console.warn(`Got unknown property '${t}'`):(r.err[t||`noname_${g++}`]=e,r.valid=!1,r)}function c(r){return r.err=Object.keys(r).filter(e=>!s.includes(e)).reduce((e,t)=>(e[t]=!1,e),{}),r.err.toArray=()=>k(r.err),r.valid=!0,r}function p(r,e){return c(r),e.forEach(t=>{d(r,t.error,t.name)}),r}function k(r){return Object.values(r).filter(e=>typeof e=="string")}function a(r){return Object.entries(r).reduce((e,[t,o])=>(s.includes(t)||(e[t]=o),e),{})}export{m as aoviSvelte,O as use};
| ^
when using it in svelte kit. for now i will just install aovi myself as dependency, but i guess there needs to be a bettter way?
or is this intended? then maybe adapt the readme so that people know that this package expects aovi to be installed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.