Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onu-ui/utils

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onu-ui/utils - npm Package Compare versions

Comparing version 1.0.10-beta.7 to 1.0.10-beta.8

2

dist/index.d.ts

@@ -35,3 +35,3 @@ import * as vue from 'vue';

declare const isValue: (val: any) => val is boolean;
declare const isComponentInstance: (val: any) => val is ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
declare const isComponentInstance: (val: any) => val is ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
declare const isComponent: (vn: VNode, type?: VNodeTypes) => type is Component<any, any, any, vue.ComputedOptions, vue.MethodOptions>;

@@ -38,0 +38,0 @@ declare const isElement: (vn: VNode) => boolean;

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

"use strict";var a=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var S=(e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},F=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of L(t))!M.call(e,r)&&r!==n&&a(e,r,{get:()=>t[r],enumerable:!(o=N(t,r))||o.enumerable});return e};var V=e=>F(a({},"__esModule",{value:!0}),e);var Q={};S(Q,{generateId:()=>I,getChildrenArray:()=>m,getElement:()=>z,getFirstElementFromChildren:()=>g,getFirstElementFromVNode:()=>y,hash:()=>v,isArray:()=>d,isArrayChildren:()=>f,isBoolean:()=>j,isComponent:()=>l,isComponentInstance:()=>$,isDate:()=>W,isDef:()=>w,isElement:()=>c,isEmptyChildren:()=>Y,isFunction:()=>s,isMap:()=>k,isNumber:()=>A,isObject:()=>h,isPlainObject:()=>R,isPromise:()=>_,isRegExp:()=>B,isServerRendering:()=>p,isSet:()=>D,isSlotsChildren:()=>X,isString:()=>u,isSymbol:()=>K,isText:()=>q,isValue:()=>P,mergeFirstChild:()=>b,off:()=>J,on:()=>G,querySelector:()=>C,toTypeString:()=>i,withInstall:()=>H,withInstallFunction:()=>O});module.exports=V(Q);var H=(e,t)=>{if(e.install=n=>{for(let o of[e,...Object.values(t??{})])n.component(o.name,o)},t)for(let[n,o]of Object.entries(t))e[n]=o;return e},O=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e);function v(e){let t,n,o=2166136261;for(t=0,n=e.length;t<n;t++)o^=e.charCodeAt(t),o+=(o<<1)+(o<<4)+(o<<7)+(o<<8)+(o<<24);return`00000${(o>>>0).toString(36)}`.slice(-6)}var I=()=>Math.floor(Math.random()*1e4);var i=e=>Object.prototype.toString.call(e),w=e=>typeof e<"u",j=e=>typeof e=="boolean",s=e=>typeof e=="function",A=e=>typeof e=="number",u=e=>typeof e=="string",h=e=>e!==null&&typeof e=="object",R=e=>i(e)==="[object Object]",d=Array.isArray,k=e=>i(e)==="[object Map]",D=e=>i(e)==="[object Set]",W=e=>e instanceof Date,B=e=>e instanceof RegExp,K=e=>typeof e=="symbol",_=e=>h(e)&&s(e.then)&&s(e.catch),P=e=>e!=null,$=e=>(e==null?void 0:e.$)!==void 0,l=(e,t)=>Boolean(e&&e.shapeFlag&6),c=e=>Boolean(e&&e.shapeFlag&1),q=(e,t)=>Boolean(e&&e.shapeFlag&8),X=(e,t)=>Boolean(e&&e.shapeFlag&32),f=(e,t)=>Boolean(e&&e.shapeFlag&16);var T=require("vue");var m=e=>{if(f(e,e.children))return e.children;if(d(e))return e},g=e=>{if(e&&e.length>0)for(let t of e){let n=y(t);if(n)return n}},y=e=>{var t;if(c(e))return e.el;if(l(e)){if(e.el.nodeType===1)return e.el;if((t=e.component)!=null&&t.subTree){let n=y(e.component.subTree);if(n)return n}}else{let n=m(e);return g(n)}},b=(e,t)=>{if(e&&e.length>0)for(let n=0;n<e.length;n++){let o=e[n];if(c(o)||l(o)){let E=s(t)?t(o):t;return e[n]=(0,T.cloneVNode)(o,E,!0),!0}let r=m(o);if(r&&r.length>0&&b(r,t))return!0}return!1},Y=e=>{if(!e)return!0;for(let t of e)if(t.children)return!1;return!0};var p=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),x=()=>{},C=(e,t)=>p?x():(t??document).querySelector(e)??void 0,z=(e,t)=>{if(u(e)){let n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return C(n,t)}return e},G=(()=>p?x:(e,t,n,o=!1)=>{e.addEventListener(t,n,o)})(),J=(()=>p?x:(e,t,n,o=!1)=>{e.removeEventListener(t,n,o)})();0&&(module.exports={generateId,getChildrenArray,getElement,getFirstElementFromChildren,getFirstElementFromVNode,hash,isArray,isArrayChildren,isBoolean,isComponent,isComponentInstance,isDate,isDef,isElement,isEmptyChildren,isFunction,isMap,isNumber,isObject,isPlainObject,isPromise,isRegExp,isServerRendering,isSet,isSlotsChildren,isString,isSymbol,isText,isValue,mergeFirstChild,off,on,querySelector,toTypeString,withInstall,withInstallFunction});
"use strict";var p=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var S=(e,t)=>{for(var n in t)p(e,n,{get:t[n],enumerable:!0})},F=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of L(t))!M.call(e,r)&&r!==n&&p(e,r,{get:()=>t[r],enumerable:!(o=N(t,r))||o.enumerable});return e};var V=e=>F(p({},"__esModule",{value:!0}),e);var Q={};S(Q,{generateId:()=>I,getChildrenArray:()=>m,getElement:()=>z,getFirstElementFromChildren:()=>g,getFirstElementFromVNode:()=>y,hash:()=>O,isArray:()=>d,isArrayChildren:()=>f,isBoolean:()=>j,isComponent:()=>l,isComponentInstance:()=>$,isDate:()=>W,isDef:()=>w,isElement:()=>c,isEmptyChildren:()=>Y,isFunction:()=>s,isMap:()=>k,isNumber:()=>A,isObject:()=>h,isPlainObject:()=>R,isPromise:()=>_,isRegExp:()=>B,isServerRendering:()=>a,isSet:()=>D,isSlotsChildren:()=>X,isString:()=>u,isSymbol:()=>K,isText:()=>q,isValue:()=>P,mergeFirstChild:()=>b,off:()=>J,on:()=>G,querySelector:()=>C,toTypeString:()=>i,withInstall:()=>v,withInstallFunction:()=>H});module.exports=V(Q);var v=(e,t)=>{if(e.install=n=>{for(let o of[e,...Object.values(t??{})])n.component(o.name,o)},t)for(let[n,o]of Object.entries(t))e[n]=o;return e},H=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e);function O(e){let t,n,o=2166136261;for(t=0,n=e.length;t<n;t++)o^=e.charCodeAt(t),o+=(o<<1)+(o<<4)+(o<<7)+(o<<8)+(o<<24);return`00000${(o>>>0).toString(36)}`.slice(-6)}var I=()=>Math.floor(Math.random()*1e4);var i=e=>Object.prototype.toString.call(e),w=e=>typeof e<"u",j=e=>typeof e=="boolean",s=e=>typeof e=="function",A=e=>typeof e=="number",u=e=>typeof e=="string",h=e=>e!==null&&typeof e=="object",R=e=>i(e)==="[object Object]",d=Array.isArray,k=e=>i(e)==="[object Map]",D=e=>i(e)==="[object Set]",W=e=>e instanceof Date,B=e=>e instanceof RegExp,K=e=>typeof e=="symbol",_=e=>h(e)&&s(e.then)&&s(e.catch),P=e=>e!=null,$=e=>e?.$!==void 0,l=(e,t)=>Boolean(e&&e.shapeFlag&6),c=e=>Boolean(e&&e.shapeFlag&1),q=(e,t)=>Boolean(e&&e.shapeFlag&8),X=(e,t)=>Boolean(e&&e.shapeFlag&32),f=(e,t)=>Boolean(e&&e.shapeFlag&16);var T=require("vue");var m=e=>{if(f(e,e.children))return e.children;if(d(e))return e},g=e=>{if(e&&e.length>0)for(let t of e){let n=y(t);if(n)return n}},y=e=>{if(c(e))return e.el;if(l(e)){if(e.el.nodeType===1)return e.el;if(e.component?.subTree){let t=y(e.component.subTree);if(t)return t}}else{let t=m(e);return g(t)}},b=(e,t)=>{if(e&&e.length>0)for(let n=0;n<e.length;n++){let o=e[n];if(c(o)||l(o)){let E=s(t)?t(o):t;return e[n]=(0,T.cloneVNode)(o,E,!0),!0}let r=m(o);if(r&&r.length>0&&b(r,t))return!0}return!1},Y=e=>{if(!e)return!0;for(let t of e)if(t.children)return!1;return!0};var a=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),x=()=>{},C=(e,t)=>a?x():(t??document).querySelector(e)??void 0,z=(e,t)=>{if(u(e)){let n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return C(n,t)}return e},G=(()=>a?x:(e,t,n,o=!1)=>{e.addEventListener(t,n,o)})(),J=(()=>a?x:(e,t,n,o=!1)=>{e.removeEventListener(t,n,o)})();0&&(module.exports={generateId,getChildrenArray,getElement,getFirstElementFromChildren,getFirstElementFromVNode,hash,isArray,isArrayChildren,isBoolean,isComponent,isComponentInstance,isDate,isDef,isElement,isEmptyChildren,isFunction,isMap,isNumber,isObject,isPlainObject,isPromise,isRegExp,isServerRendering,isSet,isSlotsChildren,isString,isSymbol,isText,isValue,mergeFirstChild,off,on,querySelector,toTypeString,withInstall,withInstallFunction});
{
"name": "@onu-ui/utils",
"version": "1.0.10-beta.7",
"description": "Onu-UI utils library",
"version": "1.0.10-beta.8",
"keywords": [

@@ -6,0 +6,0 @@ "onu-ui",

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