New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@builder.io/qwik

Package Overview
Dependencies
Maintainers
18
Versions
323
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@builder.io/qwik - npm Package Compare versions

Comparing version 1.4.4 to 1.4.5-dev20240223174725

2

build/package.json
{
"name": "@builder.io/qwik/build",
"version": "1.4.4",
"version": "1.4.5-dev20240223174725",
"main": "index.mjs",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

{
"name": "@builder.io/qwik/core",
"version": "1.4.4",
"version": "1.4.5-dev20240223174725",
"main": "../core.mjs",

@@ -5,0 +5,0 @@ "module": "../core.mjs",

{
"name": "@builder.io/qwik/jsx-dev-runtime",
"version": "1.4.4",
"version": "1.4.5-dev20240223174725",
"main": "../jsx-runtime.mjs",

@@ -5,0 +5,0 @@ "module": "../jsx-runtime.mjs",

{
"name": "@builder.io/qwik/jsx-runtime",
"version": "1.4.4",
"version": "1.4.5-dev20240223174725",
"main": "../jsx-runtime.mjs",

@@ -5,0 +5,0 @@ "module": "../jsx-runtime.mjs",

{
"name": "@builder.io/qwik/loader",
"version": "1.4.4",
"version": "1.4.5-dev20240223174725",
"main": "index.mjs",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

{
"name": "@builder.io/qwik/optimizer",
"version": "1.4.4",
"version": "1.4.5-dev20240223174725",
"main": "../optimizer.mjs",

@@ -5,0 +5,0 @@ "module": "../optimizer.mjs",

{
"name": "@builder.io/qwik",
"version": "1.4.4",
"version": "1.4.5-dev20240223174725",
"description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",

@@ -163,4 +163,2 @@ "license": "MIT",

"qwikloader.js",
"qwikloader.optimize.debug.js",
"qwikloader.optimize.js",
"server-modules.d.ts",

@@ -167,0 +165,0 @@ "server.cjs",

{
"name": "@builder.io/qwik/prefetch",
"version": "1.4.4",
"version": "1.4.5-dev20240223174725",
"main": "index.mjs",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

(() => {
((doc, hasInitialized) => {
const Q_CONTEXT = "__q_context__";
const win = window;

@@ -7,5 +8,4 @@ const events = new Set;

const broadcast = (infix, ev, type = ev.type) => {
querySelectorAll("[on" + infix + "\\:" + type + "]").forEach((target => dispatch(target, infix, ev, type)));
querySelectorAll("[on" + infix + "\\:" + type + "]").forEach((el => dispatch(el, infix, ev, type)));
};
const getAttribute = (el, name) => el.getAttribute(name);
const resolveContainer = containerEl => {

@@ -15,3 +15,3 @@ if (void 0 === containerEl._qwikjson_) {

while (script) {
if ("SCRIPT" === script.tagName && "qwik/json" === getAttribute(script, "type")) {
if ("SCRIPT" === script.tagName && "qwik/json" === script.getAttribute("type")) {
containerEl._qwikjson_ = JSON.parse(script.textContent.replace(/\\x3C(\/?script)/gi, "<$1"));

@@ -31,3 +31,3 @@ break;

const ctx = element._qc_;
const relevantListeners = null == ctx ? void 0 : ctx.li.filter((li => li[0] === attrName));
const relevantListeners = ctx && ctx.li.filter((li => li[0] === attrName));
if (relevantListeners && relevantListeners.length > 0) {

@@ -39,6 +39,6 @@ for (const listener of relevantListeners) {

}
const attrValue = getAttribute(element, attrName);
const attrValue = element.getAttribute(attrName);
if (attrValue) {
const container = element.closest("[q\\:container]");
const base = new URL(getAttribute(container, "q:base"), doc.baseURI);
const base = new URL(container.getAttribute("q:base"), doc.baseURI);
for (const qrl of attrValue.split("\n")) {

@@ -59,6 +59,6 @@ const url = new URL(qrl, base);

}
const previousCtx = doc.__q_context__;
const previousCtx = doc[Q_CONTEXT];
if (element.isConnected) {
try {
doc.__q_context__ = [ element, ev, url ];
doc[Q_CONTEXT] = [ element, ev, url ];
isSync || emitEvent("qsymbol", {

@@ -71,3 +71,3 @@ symbol: symbolName,

} finally {
doc.__q_context__ = previousCtx;
doc[Q_CONTEXT] = previousCtx;
}

@@ -128,3 +128,4 @@ }

};
if (!doc.qR) {
if (!(Q_CONTEXT in doc)) {
doc[Q_CONTEXT] = 0;
const qwikevents = win.qwikevents;

@@ -131,0 +132,0 @@ Array.isArray(qwikevents) && push(qwikevents);

@@ -1,3 +0,3 @@

((e,t)=>{const n="__q_context__",s=window,o=new Set,i=t=>e.querySelectorAll(t),a=(e,t,n=t.type)=>{i("[on"+e+"\\:"+n+"]").forEach((s=>f(s,e,t,n)))},r=(e,t)=>e.getAttribute(t),l=t=>{if(void 0===t._qwikjson_){let n=(t===e.documentElement?e.body:t).lastElementChild;for(;n;){if("SCRIPT"===n.tagName&&"qwik/json"===r(n,"type")){t._qwikjson_=JSON.parse(n.textContent.replace(/\\x3C(\/?script)/gi,"<$1"));break}n=n.previousElementSibling}}},c=(e,t)=>new CustomEvent(e,{detail:t}),f=async(t,s,o,i=o.type)=>{const a="on"+s+":"+i;t.hasAttribute("preventdefault:"+i)&&o.preventDefault();const c=t._qc_,f=null==c?void 0:c.li.filter((e=>e[0]===a));if(f&&f.length>0){for(const e of f)await e[1].getFn([t,o],(()=>t.isConnected))(o,t);return}const b=r(t,a);if(b){const s=t.closest("[q\\:container]"),i=new URL(r(s,"q:base"),e.baseURI);for(const a of b.split("\n")){const r=new URL(a,i),c=r.hash.replace(/^#?([^?[|]*).*$/,"$1")||"default",f=performance.now();let b;const d=a.startsWith("#");if(d)b=(s.qFuncs||[])[Number.parseInt(c)];else{const e=import(
((e,t)=>{const n="__q_context__",s=window,o=new Set,i="replace",a="forEach",r="target",l="getAttribute",c="isConnected",f="qvisible",u="_qwikjson_",d=t=>e.querySelectorAll(t),p=(e,t,n=t.type)=>{d("[on"+e+"\\:"+n+"]")[a]((s=>m(s,e,t,n)))},b=t=>{if(void 0===t[u]){let n=(t===e.documentElement?e.body:t).lastElementChild;for(;n;){if("SCRIPT"===n.tagName&&"qwik/json"===n[l]("type")){t[u]=JSON.parse(n.textContent[i](/\\x3C(\/?script)/gi,"<$1"));break}n=n.previousElementSibling}}},w=(e,t)=>new CustomEvent(e,{detail:t}),m=async(t,s,o,a=o.type)=>{const r="on"+s+":"+a;t.hasAttribute("preventdefault:"+a)&&o.preventDefault();const f=t._qc_,u=f&&f.li.filter((e=>e[0]===r));if(u&&u.length>0){for(const e of u)await e[1].getFn([t,o],(()=>t[c]))(o,t);return}const d=t[l](r);if(d){const s=t.closest("[q\\:container]"),a=new URL(s[l]("q:base"),e.baseURI);for(const r of d.split("\n")){const l=new URL(r,a),f=l.hash[i](/^#?([^?[|]*).*$/,"$1")||"default",u=performance.now();let d;const p=r.startsWith("#");if(p)d=(s.qFuncs||[])[Number.parseInt(f)];else{const e=import(
/* @vite-ignore */
r.href.split("#")[0]);l(s),b=(await e)[c]}const p=e[n];if(t.isConnected)try{e[n]=[t,o,r],d||u("qsymbol",{symbol:c,element:t,reqTime:f}),await b(o,t)}finally{e[n]=p}}}},u=(t,n)=>{e.dispatchEvent(c(t,n))},b=e=>e.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())),d=async e=>{let t=b(e.type),n=e.target;for(a("-document",e,t);n&&n.getAttribute;)await f(n,"",e,t),n=e.bubbles&&!0!==e.cancelBubble?n.parentElement:null},p=e=>{a("-window",e,b(e.type))},q=()=>{var n;const a=e.readyState;if(!t&&("interactive"==a||"complete"==a)&&(t=1,u("qinit"),(null!=(n=s.requestIdleCallback)?n:s.setTimeout).bind(s)((()=>u("qidle"))),o.has("qvisible"))){const e=i("[on\\:qvisible]"),t=new IntersectionObserver((e=>{for(const n of e)n.isIntersecting&&(t.unobserve(n.target),f(n.target,"",c("qvisible",n)))}));e.forEach((e=>t.observe(e)))}},w=(e,t,n,s=!1)=>e.addEventListener(t,n,{capture:s,passive:!1}),v=t=>{for(const n of t)o.has(n)||(w(e,n,d,!0),w(s,n,p),o.add(n))};if(!e.qR){const t=s.qwikevents;Array.isArray(t)&&v(t),s.qwikevents={push:(...e)=>v(e)},w(e,"readystatechange",q),q()}})(document);
l.href.split("#")[0]);b(s),d=(await e)[f]}const w=e[n];if(t[c])try{e[n]=[t,o,l],p||y("qsymbol",{symbol:f,element:t,reqTime:u}),await d(o,t)}finally{e[n]=w}}}},y=(t,n)=>{e.dispatchEvent(w(t,n))},q=e=>e[i](/([A-Z])/g,(e=>"-"+e.toLowerCase())),v=async e=>{let t=q(e.type),n=e[r];for(p("-document",e,t);n&&n[l];)await m(n,"",e,t),n=e.bubbles&&!0!==e.cancelBubble?n.parentElement:null},h=e=>{p("-window",e,q(e.type))},g=()=>{var n;const i=e.readyState;if(!t&&("interactive"==i||"complete"==i)&&(t=1,y("qinit"),(null!=(n=s.requestIdleCallback)?n:s.setTimeout).bind(s)((()=>y("qidle"))),o.has(f))){const e=d("[on\\:"+f+"]"),t=new IntersectionObserver((e=>{for(const n of e)n.isIntersecting&&(t.unobserve(n[r]),m(n[r],"",w(f,n)))}));e[a]((e=>t.observe(e)))}},_=(e,t,n,s=!1)=>e.addEventListener(t,n,{capture:s,passive:!1}),C=t=>{for(const n of t)o.has(n)||(_(e,n,v,!0),_(s,n,h),o.add(n))};if(!(n in e)){e[n]=0;const t=s.qwikevents;Array.isArray(t)&&C(t),s.qwikevents={push:(...e)=>C(e)},_(e,"readystatechange",g),g()}})(document);

@@ -120,3 +120,2 @@ /// <reference path="./server-modules.d.ts" />

export declare interface QwikLoaderOptions {
events?: string[];
include?: 'always' | 'never' | 'auto';

@@ -123,0 +122,0 @@ position?: 'top' | 'bottom';

{
"name": "@builder.io/qwik/server",
"version": "1.4.4",
"version": "1.4.5-dev20240223174725",
"main": "../server.mjs",

@@ -5,0 +5,0 @@ "module": "../server.mjs",

@@ -26,3 +26,3 @@ {

"@builder.io/vite-plugin-macro": "~0.0.7",
"@pandacss/dev": "^0.30.0"
"@pandacss/dev": "^0.31.0"
},

@@ -29,0 +29,0 @@ "scripts": {

{
"name": "@builder.io/qwik/testing",
"version": "1.4.4",
"version": "1.4.5-dev20240223174725",
"main": "index.mjs",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc