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.13 to 1.0.10-beta.14

2

dist/index.js

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

"use strict";var T=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var _=Object.prototype.hasOwnProperty;var D=(e,t)=>{for(var o in t)T(e,o,{get:t[o],enumerable:!0})},W=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of P(t))!_.call(e,r)&&r!==o&&T(e,r,{get:()=>t[r],enumerable:!(n=k(t,r))||n.enumerable});return e};var K=e=>W(T({},"__esModule",{value:!0}),e);var de={};D(de,{buildLocaleContext:()=>j,buildTranslator:()=>H,configProviderContextKey:()=>l,deepGet:()=>E,en:()=>m,generateId:()=>U,getChildrenArray:()=>O,getElement:()=>ae,getFirstElementFromChildren:()=>S,getFirstElementFromVNode:()=>M,hash:()=>$,isArray:()=>C,isArrayChildren:()=>v,isBoolean:()=>q,isComponent:()=>u,isComponentInstance:()=>re,isDate:()=>Z,isDef:()=>z,isElement:()=>f,isEmptyChildren:()=>le,isFunction:()=>a,isMap:()=>J,isNumber:()=>X,isObject:()=>N,isPlainObject:()=>Y,isPromise:()=>ne,isRegExp:()=>ee,isServerRendering:()=>d,isSet:()=>Q,isSlotsChildren:()=>ie,isString:()=>h,isSymbol:()=>te,isText:()=>se,isValue:()=>oe,mergeFirstChild:()=>F,mergeObjects:()=>b,off:()=>ce,on:()=>pe,provideGlobalConfig:()=>ue,querySelector:()=>w,toTypeString:()=>c,translate:()=>A,useGlobalConfig:()=>g,useLocale:()=>fe,withInstall:()=>G,withInstallFunction:()=>B,zhCn:()=>V});module.exports=K(de);var G=(e,t)=>{if(e.install=o=>{for(let n of[e,...Object.values(t??{})])o.component(n.name,n)},t)for(let[o,n]of Object.entries(t))e[o]=n;return e},B=(e,t)=>(e.install=o=>{e._context=o._context,o.config.globalProperties[t]=e},e);function $(e){let t,o,n=2166136261;for(t=0,o=e.length;t<o;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}var U=()=>Math.floor(Math.random()*1e4);function b(e,t){let o=[...new Set([...Object.keys(e),...Object.keys(t)])],n={};return o.forEach(r=>{n[r]=t[r]??e[r]}),n}function E(e,t,o){if(!Array.isArray(t)&&typeof t!="string")throw new TypeError("path must be string or array");if(e===null)return o;let n=t;typeof t=="string"&&(t=t.replace(/\[(\w*)\]/g,".$1"),t=t.startsWith(".")?t.slice(1):t,n=t.split("."));let r=0,i;for(;e!==null&&r<n.length;)i=n[r++],e=e[i];return r===n.length?e:o}var c=e=>Object.prototype.toString.call(e),z=e=>typeof e<"u",q=e=>typeof e=="boolean",a=e=>typeof e=="function",X=e=>typeof e=="number",h=e=>typeof e=="string",N=e=>e!==null&&typeof e=="object",Y=e=>c(e)==="[object Object]",C=Array.isArray,J=e=>c(e)==="[object Map]",Q=e=>c(e)==="[object Set]",Z=e=>e instanceof Date,ee=e=>e instanceof RegExp,te=e=>typeof e=="symbol",ne=e=>N(e)&&a(e.then)&&a(e.catch),oe=e=>e!=null,re=e=>e?.$!==void 0,u=(e,t)=>Boolean(e&&e.shapeFlag&6),f=e=>Boolean(e&&e.shapeFlag&1),se=(e,t)=>Boolean(e&&e.shapeFlag&8),ie=(e,t)=>Boolean(e&&e.shapeFlag&32),v=(e,t)=>Boolean(e&&e.shapeFlag&16);var I=require("vue");var O=e=>{if(v(e,e.children))return e.children;if(C(e))return e},S=e=>{if(e&&e.length>0)for(let t of e){let o=M(t);if(o)return o}},M=e=>{if(f(e))return e.el;if(u(e)){if(e.el.nodeType===1)return e.el;if(e.component?.subTree){let t=M(e.component.subTree);if(t)return t}}else{let t=O(e);return S(t)}},F=(e,t)=>{if(e&&e.length>0)for(let o=0;o<e.length;o++){let n=e[o];if(f(n)||u(n)){let i=a(t)?t(n):t;return e[o]=(0,I.cloneVNode)(n,i,!0),!0}let r=O(n);if(r&&r.length>0&&F(r,t))return!0}return!1},le=e=>{if(!e)return!0;for(let t of e)if(t.children)return!1;return!0};var d=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),R=()=>{},w=(e,t)=>d?R():(t??document).querySelector(e)??void 0,ae=(e,t)=>{if(h(e)){let o=e[0]==="#"?`[id='${e.slice(1)}']`:e;return w(o,t)}return e},pe=(()=>d?R:(e,t,o,n=!1)=>{e.addEventListener(t,o,n)})(),ce=(()=>d?R:(e,t,o,n=!1)=>{e.removeEventListener(t,o,n)})();var m={name:"en",locales:{empty:{emptyText:"No data"}}};var V={name:"zh-cn",locales:{empty:{emptyText:"\u6682\u65E0\u6570\u636E"}}};var l="__onu_config_provider";var s=require("vue");var y=(0,s.ref)();function g(e,t=void 0){let o=(0,s.getCurrentInstance)(),n=(0,s.inject)(l,y);return n||(n=o?o?.appContext.provides[l]:y,(0,s.provide)(l,n)),e?(0,s.computed)(()=>n.value?.[e]??t):n}function ue(e,t,o=!1){let n=!!(0,s.getCurrentInstance)(),r=n?g():void 0,i=t?.provide??(n?s.provide:void 0);if(!i)return;let x=(0,s.computed)(()=>{let L=(0,s.unref)(e);return r?.value?b(r.value,L):L});return i(l,x),(o||!y.value)&&(y.value=x.value),x}var p=require("vue");var A=(e,t,o)=>E(o,e,e).replace(/\{(\w+)\}/g,(n,r)=>`${t?.[r]??`{${r}}`}`),H=e=>(t,o)=>A(t,o,(0,p.unref)(e)),j=e=>{let t=computed(()=>(0,p.unref)(e).name);return{locale:isRef(e)?e:(0,p.ref)(e),lang:t,t:H(e)}};function fe(){let e=g("locale");return j(computed(()=>e.value||m))}0&&(module.exports={buildLocaleContext,buildTranslator,configProviderContextKey,deepGet,en,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,mergeObjects,off,on,provideGlobalConfig,querySelector,toTypeString,translate,useGlobalConfig,useLocale,withInstall,withInstallFunction,zhCn});
"use strict";var T=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var _=Object.prototype.hasOwnProperty;var D=(e,t)=>{for(var o in t)T(e,o,{get:t[o],enumerable:!0})},W=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of P(t))!_.call(e,r)&&r!==o&&T(e,r,{get:()=>t[r],enumerable:!(n=k(t,r))||n.enumerable});return e};var K=e=>W(T({},"__esModule",{value:!0}),e);var de={};D(de,{buildLocaleContext:()=>j,buildTranslator:()=>H,configProviderContextKey:()=>a,deepGet:()=>E,en:()=>m,generateId:()=>U,getChildrenArray:()=>O,getElement:()=>ae,getFirstElementFromChildren:()=>S,getFirstElementFromVNode:()=>M,hash:()=>$,isArray:()=>C,isArrayChildren:()=>v,isBoolean:()=>q,isComponent:()=>u,isComponentInstance:()=>re,isDate:()=>Z,isDef:()=>z,isElement:()=>f,isEmptyChildren:()=>le,isFunction:()=>p,isMap:()=>J,isNumber:()=>X,isObject:()=>N,isPlainObject:()=>Y,isPromise:()=>ne,isRegExp:()=>ee,isServerRendering:()=>d,isSet:()=>Q,isSlotsChildren:()=>ie,isString:()=>h,isSymbol:()=>te,isText:()=>se,isValue:()=>oe,mergeFirstChild:()=>F,mergeObjects:()=>b,off:()=>ce,on:()=>pe,provideGlobalConfig:()=>ue,querySelector:()=>w,toTypeString:()=>c,translate:()=>A,useGlobalConfig:()=>g,useLocale:()=>fe,withInstall:()=>G,withInstallFunction:()=>B,zhCn:()=>V});module.exports=K(de);var G=(e,t)=>{if(e.install=o=>{for(let n of[e,...Object.values(t??{})])o.component(n.name,n)},t)for(let[o,n]of Object.entries(t))e[o]=n;return e},B=(e,t)=>(e.install=o=>{e._context=o._context,o.config.globalProperties[t]=e},e);function $(e){let t,o,n=2166136261;for(t=0,o=e.length;t<o;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}var U=()=>Math.floor(Math.random()*1e4);function b(e,t){let o=[...new Set([...Object.keys(e),...Object.keys(t)])],n={};return o.forEach(r=>{n[r]=t[r]??e[r]}),n}function E(e,t,o){if(!Array.isArray(t)&&typeof t!="string")throw new TypeError("path must be string or array");if(e===null)return o;let n=t;typeof t=="string"&&(t=t.replace(/\[(\w*)\]/g,".$1"),t=t.startsWith(".")?t.slice(1):t,n=t.split("."));let r=0,l;for(;e!==null&&r<n.length;)l=n[r++],e=e[l];return r===n.length?e:o}var c=e=>Object.prototype.toString.call(e),z=e=>typeof e<"u",q=e=>typeof e=="boolean",p=e=>typeof e=="function",X=e=>typeof e=="number",h=e=>typeof e=="string",N=e=>e!==null&&typeof e=="object",Y=e=>c(e)==="[object Object]",C=Array.isArray,J=e=>c(e)==="[object Map]",Q=e=>c(e)==="[object Set]",Z=e=>e instanceof Date,ee=e=>e instanceof RegExp,te=e=>typeof e=="symbol",ne=e=>N(e)&&p(e.then)&&p(e.catch),oe=e=>e!=null,re=e=>e?.$!==void 0,u=(e,t)=>Boolean(e&&e.shapeFlag&6),f=e=>Boolean(e&&e.shapeFlag&1),se=(e,t)=>Boolean(e&&e.shapeFlag&8),ie=(e,t)=>Boolean(e&&e.shapeFlag&32),v=(e,t)=>Boolean(e&&e.shapeFlag&16);var I=require("vue");var O=e=>{if(v(e,e.children))return e.children;if(C(e))return e},S=e=>{if(e&&e.length>0)for(let t of e){let o=M(t);if(o)return o}},M=e=>{if(f(e))return e.el;if(u(e)){if(e.el.nodeType===1)return e.el;if(e.component?.subTree){let t=M(e.component.subTree);if(t)return t}}else{let t=O(e);return S(t)}},F=(e,t)=>{if(e&&e.length>0)for(let o=0;o<e.length;o++){let n=e[o];if(f(n)||u(n)){let l=p(t)?t(n):t;return e[o]=(0,I.cloneVNode)(n,l,!0),!0}let r=O(n);if(r&&r.length>0&&F(r,t))return!0}return!1},le=e=>{if(!e)return!0;for(let t of e)if(t.children)return!1;return!0};var d=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),R=()=>{},w=(e,t)=>d?R():(t??document).querySelector(e)??void 0,ae=(e,t)=>{if(h(e)){let o=e[0]==="#"?`[id='${e.slice(1)}']`:e;return w(o,t)}return e},pe=(()=>d?R:(e,t,o,n=!1)=>{e.addEventListener(t,o,n)})(),ce=(()=>d?R:(e,t,o,n=!1)=>{e.removeEventListener(t,o,n)})();var m={name:"en",locales:{empty:{emptyText:"No data"}}};var V={name:"zh-cn",locales:{empty:{emptyText:"\u6682\u65E0\u6570\u636E"}}};var a="__onu_config_provider";var s=require("vue");var y=(0,s.ref)();function g(e,t=void 0){let o=(0,s.getCurrentInstance)(),n=(0,s.inject)(a,y);return n||(n=o?o?.appContext.provides[a]:y,(0,s.provide)(a,n)),e?(0,s.computed)(()=>n.value?.[e]??t):n}function ue(e,t,o=!1){let n=!!(0,s.getCurrentInstance)(),r=n?g():void 0,l=t?.provide??(n?s.provide:void 0);if(!l)return;let x=(0,s.computed)(()=>{let L=(0,s.unref)(e);return r?.value?b(r.value,L):L});return l(a,x),(o||!y.value)&&(y.value=x.value),x}var i=require("vue");var A=(e,t,o)=>E(o,e,e).replace(/\{(\w+)\}/g,(n,r)=>`${t?.[r]??`{${r}}`}`),H=e=>(t,o)=>A(t,o,(0,i.unref)(e)),j=e=>{let t=(0,i.computed)(()=>(0,i.unref)(e).name);return{locale:(0,i.isRef)(e)?e:(0,i.ref)(e),lang:t,t:H(e)}};function fe(){let e=g("locale");return j((0,i.computed)(()=>e.value||m))}0&&(module.exports={buildLocaleContext,buildTranslator,configProviderContextKey,deepGet,en,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,mergeObjects,off,on,provideGlobalConfig,querySelector,toTypeString,translate,useGlobalConfig,useLocale,withInstall,withInstallFunction,zhCn});
{
"name": "@onu-ui/utils",
"description": "Onu-UI utils library",
"version": "1.0.10-beta.13",
"version": "1.0.10-beta.14",
"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