@dcloudio/uni-shared
Advanced tools
Comparing version 3.0.0-alpha-4030120241024002 to 3.0.0-alpha-4030220241029001
@@ -360,2 +360,143 @@ 'use strict'; | ||
function cache(fn) { | ||
const cache = Object.create(null); | ||
return (str) => { | ||
const hit = cache[str]; | ||
return hit || (cache[str] = fn(str)); | ||
}; | ||
} | ||
function cacheStringFunction(fn) { | ||
return cache(fn); | ||
} | ||
function getLen(str = '') { | ||
return ('' + str).replace(/[^\x00-\xff]/g, '**').length; | ||
} | ||
function hasLeadingSlash(str) { | ||
return str.indexOf('/') === 0; | ||
} | ||
function addLeadingSlash(str) { | ||
return hasLeadingSlash(str) ? str : '/' + str; | ||
} | ||
function removeLeadingSlash(str) { | ||
return hasLeadingSlash(str) ? str.slice(1) : str; | ||
} | ||
const invokeArrayFns = (fns, arg) => { | ||
let ret; | ||
for (let i = 0; i < fns.length; i++) { | ||
ret = fns[i](arg); | ||
} | ||
return ret; | ||
}; | ||
function updateElementStyle(element, styles) { | ||
for (const attrName in styles) { | ||
element.style[attrName] = styles[attrName]; | ||
} | ||
} | ||
function once(fn, ctx = null) { | ||
let res; | ||
return ((...args) => { | ||
if (fn) { | ||
res = fn.apply(ctx, args); | ||
fn = null; | ||
} | ||
return res; | ||
}); | ||
} | ||
const sanitise = (val) => (val && JSON.parse(JSON.stringify(val))) || val; | ||
const _completeValue = (value) => (value > 9 ? value : '0' + value); | ||
function formatDateTime({ date = new Date(), mode = 'date' }) { | ||
if (mode === 'time') { | ||
return (_completeValue(date.getHours()) + ':' + _completeValue(date.getMinutes())); | ||
} | ||
else { | ||
return (date.getFullYear() + | ||
'-' + | ||
_completeValue(date.getMonth() + 1) + | ||
'-' + | ||
_completeValue(date.getDate())); | ||
} | ||
} | ||
function callOptions(options, data) { | ||
options = options || {}; | ||
if (shared.isString(data)) { | ||
data = { | ||
errMsg: data, | ||
}; | ||
} | ||
if (/:ok$/.test(data.errMsg)) { | ||
if (shared.isFunction(options.success)) { | ||
options.success(data); | ||
} | ||
} | ||
else { | ||
if (shared.isFunction(options.fail)) { | ||
options.fail(data); | ||
} | ||
} | ||
if (shared.isFunction(options.complete)) { | ||
options.complete(data); | ||
} | ||
} | ||
function getValueByDataPath(obj, path) { | ||
if (!shared.isString(path)) { | ||
return; | ||
} | ||
path = path.replace(/\[(\d+)\]/g, '.$1'); | ||
const parts = path.split('.'); | ||
let key = parts[0]; | ||
if (!obj) { | ||
obj = {}; | ||
} | ||
if (parts.length === 1) { | ||
return obj[key]; | ||
} | ||
return getValueByDataPath(obj[key], parts.slice(1).join('.')); | ||
} | ||
function sortObject(obj) { | ||
let sortObj = {}; | ||
if (shared.isPlainObject(obj)) { | ||
Object.keys(obj) | ||
.sort() | ||
.forEach((key) => { | ||
const _key = key; | ||
sortObj[_key] = obj[_key]; | ||
}); | ||
} | ||
return !Object.keys(sortObj) ? obj : sortObj; | ||
} | ||
function getGlobalOnce() { | ||
if (typeof globalThis !== 'undefined') { | ||
return globalThis; | ||
} | ||
// worker | ||
if (typeof self !== 'undefined') { | ||
return self; | ||
} | ||
// browser | ||
if (typeof window !== 'undefined') { | ||
return window; | ||
} | ||
// nodejs | ||
// if (typeof global !== 'undefined') { | ||
// return global | ||
// } | ||
function g() { | ||
return this; | ||
} | ||
if (typeof g() !== 'undefined') { | ||
return g(); | ||
} | ||
return (function () { | ||
return new Function('return this')(); | ||
})(); | ||
} | ||
let g = undefined; | ||
function getGlobal() { | ||
if (g) { | ||
return g; | ||
} | ||
g = getGlobalOnce(); | ||
return g; | ||
} | ||
function isComponentInternalInstance(vm) { | ||
@@ -410,4 +551,12 @@ return !!vm.appContext; | ||
function normalizeStyle(value) { | ||
if (value instanceof Map) { | ||
const g = getGlobal(); | ||
if (g && g.UTSJSONObject && value instanceof g.UTSJSONObject) { | ||
const styleObject = {}; | ||
g.UTSJSONObject.keys(value).forEach((key) => { | ||
styleObject[key] = value[key]; | ||
}); | ||
return shared.normalizeStyle(styleObject); | ||
} | ||
else if (value instanceof Map) { | ||
const styleObject = {}; | ||
value.forEach((value, key) => { | ||
@@ -442,3 +591,11 @@ styleObject[key] = value; | ||
let res = ''; | ||
if (value instanceof Map) { | ||
const g = getGlobal(); | ||
if (g && g.UTSJSONObject && value instanceof g.UTSJSONObject) { | ||
g.UTSJSONObject.keys(value).forEach((key) => { | ||
if (value[key]) { | ||
res += key + ' '; | ||
} | ||
}); | ||
} | ||
else if (value instanceof Map) { | ||
value.forEach((value, key) => { | ||
@@ -486,109 +643,2 @@ if (value) { | ||
function cache(fn) { | ||
const cache = Object.create(null); | ||
return (str) => { | ||
const hit = cache[str]; | ||
return hit || (cache[str] = fn(str)); | ||
}; | ||
} | ||
function cacheStringFunction(fn) { | ||
return cache(fn); | ||
} | ||
function getLen(str = '') { | ||
return ('' + str).replace(/[^\x00-\xff]/g, '**').length; | ||
} | ||
function hasLeadingSlash(str) { | ||
return str.indexOf('/') === 0; | ||
} | ||
function addLeadingSlash(str) { | ||
return hasLeadingSlash(str) ? str : '/' + str; | ||
} | ||
function removeLeadingSlash(str) { | ||
return hasLeadingSlash(str) ? str.slice(1) : str; | ||
} | ||
const invokeArrayFns = (fns, arg) => { | ||
let ret; | ||
for (let i = 0; i < fns.length; i++) { | ||
ret = fns[i](arg); | ||
} | ||
return ret; | ||
}; | ||
function updateElementStyle(element, styles) { | ||
for (const attrName in styles) { | ||
element.style[attrName] = styles[attrName]; | ||
} | ||
} | ||
function once(fn, ctx = null) { | ||
let res; | ||
return ((...args) => { | ||
if (fn) { | ||
res = fn.apply(ctx, args); | ||
fn = null; | ||
} | ||
return res; | ||
}); | ||
} | ||
const sanitise = (val) => (val && JSON.parse(JSON.stringify(val))) || val; | ||
const _completeValue = (value) => (value > 9 ? value : '0' + value); | ||
function formatDateTime({ date = new Date(), mode = 'date' }) { | ||
if (mode === 'time') { | ||
return (_completeValue(date.getHours()) + ':' + _completeValue(date.getMinutes())); | ||
} | ||
else { | ||
return (date.getFullYear() + | ||
'-' + | ||
_completeValue(date.getMonth() + 1) + | ||
'-' + | ||
_completeValue(date.getDate())); | ||
} | ||
} | ||
function callOptions(options, data) { | ||
options = options || {}; | ||
if (shared.isString(data)) { | ||
data = { | ||
errMsg: data, | ||
}; | ||
} | ||
if (/:ok$/.test(data.errMsg)) { | ||
if (shared.isFunction(options.success)) { | ||
options.success(data); | ||
} | ||
} | ||
else { | ||
if (shared.isFunction(options.fail)) { | ||
options.fail(data); | ||
} | ||
} | ||
if (shared.isFunction(options.complete)) { | ||
options.complete(data); | ||
} | ||
} | ||
function getValueByDataPath(obj, path) { | ||
if (!shared.isString(path)) { | ||
return; | ||
} | ||
path = path.replace(/\[(\d+)\]/g, '.$1'); | ||
const parts = path.split('.'); | ||
let key = parts[0]; | ||
if (!obj) { | ||
obj = {}; | ||
} | ||
if (parts.length === 1) { | ||
return obj[key]; | ||
} | ||
return getValueByDataPath(obj[key], parts.slice(1).join('.')); | ||
} | ||
function sortObject(obj) { | ||
let sortObj = {}; | ||
if (shared.isPlainObject(obj)) { | ||
Object.keys(obj) | ||
.sort() | ||
.forEach((key) => { | ||
const _key = key; | ||
sortObj[_key] = obj[_key]; | ||
}); | ||
} | ||
return !Object.keys(sortObj) ? obj : sortObj; | ||
} | ||
function formatKey(key) { | ||
@@ -1768,2 +1818,3 @@ return shared.camelize(key.substring(5)); | ||
exports.getEnvLocale = getEnvLocale; | ||
exports.getGlobal = getGlobal; | ||
exports.getLen = getLen; | ||
@@ -1770,0 +1821,0 @@ exports.getValueByDataPath = getValueByDataPath; |
@@ -232,2 +232,4 @@ import type { App } from 'vue'; | ||
export declare function getGlobal(): any; | ||
export declare function getLen(str?: string): number; | ||
@@ -234,0 +236,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { isHTMLTag, isSVGTag, hyphenate, camelize, normalizeStyle as normalizeStyle$1, isString, parseStringStyle, isArray, normalizeClass as normalizeClass$1, isFunction, isPlainObject, extend, capitalize } from '@vue/shared'; | ||
import { isHTMLTag, isSVGTag, isString, isFunction, isPlainObject, hyphenate, camelize, normalizeStyle as normalizeStyle$1, parseStringStyle, isArray, normalizeClass as normalizeClass$1, extend, capitalize } from '@vue/shared'; | ||
@@ -358,2 +358,143 @@ const BUILT_IN_TAG_NAMES = [ | ||
function cache(fn) { | ||
const cache = Object.create(null); | ||
return (str) => { | ||
const hit = cache[str]; | ||
return hit || (cache[str] = fn(str)); | ||
}; | ||
} | ||
function cacheStringFunction(fn) { | ||
return cache(fn); | ||
} | ||
function getLen(str = '') { | ||
return ('' + str).replace(/[^\x00-\xff]/g, '**').length; | ||
} | ||
function hasLeadingSlash(str) { | ||
return str.indexOf('/') === 0; | ||
} | ||
function addLeadingSlash(str) { | ||
return hasLeadingSlash(str) ? str : '/' + str; | ||
} | ||
function removeLeadingSlash(str) { | ||
return hasLeadingSlash(str) ? str.slice(1) : str; | ||
} | ||
const invokeArrayFns = (fns, arg) => { | ||
let ret; | ||
for (let i = 0; i < fns.length; i++) { | ||
ret = fns[i](arg); | ||
} | ||
return ret; | ||
}; | ||
function updateElementStyle(element, styles) { | ||
for (const attrName in styles) { | ||
element.style[attrName] = styles[attrName]; | ||
} | ||
} | ||
function once(fn, ctx = null) { | ||
let res; | ||
return ((...args) => { | ||
if (fn) { | ||
res = fn.apply(ctx, args); | ||
fn = null; | ||
} | ||
return res; | ||
}); | ||
} | ||
const sanitise = (val) => (val && JSON.parse(JSON.stringify(val))) || val; | ||
const _completeValue = (value) => (value > 9 ? value : '0' + value); | ||
function formatDateTime({ date = new Date(), mode = 'date' }) { | ||
if (mode === 'time') { | ||
return (_completeValue(date.getHours()) + ':' + _completeValue(date.getMinutes())); | ||
} | ||
else { | ||
return (date.getFullYear() + | ||
'-' + | ||
_completeValue(date.getMonth() + 1) + | ||
'-' + | ||
_completeValue(date.getDate())); | ||
} | ||
} | ||
function callOptions(options, data) { | ||
options = options || {}; | ||
if (isString(data)) { | ||
data = { | ||
errMsg: data, | ||
}; | ||
} | ||
if (/:ok$/.test(data.errMsg)) { | ||
if (isFunction(options.success)) { | ||
options.success(data); | ||
} | ||
} | ||
else { | ||
if (isFunction(options.fail)) { | ||
options.fail(data); | ||
} | ||
} | ||
if (isFunction(options.complete)) { | ||
options.complete(data); | ||
} | ||
} | ||
function getValueByDataPath(obj, path) { | ||
if (!isString(path)) { | ||
return; | ||
} | ||
path = path.replace(/\[(\d+)\]/g, '.$1'); | ||
const parts = path.split('.'); | ||
let key = parts[0]; | ||
if (!obj) { | ||
obj = {}; | ||
} | ||
if (parts.length === 1) { | ||
return obj[key]; | ||
} | ||
return getValueByDataPath(obj[key], parts.slice(1).join('.')); | ||
} | ||
function sortObject(obj) { | ||
let sortObj = {}; | ||
if (isPlainObject(obj)) { | ||
Object.keys(obj) | ||
.sort() | ||
.forEach((key) => { | ||
const _key = key; | ||
sortObj[_key] = obj[_key]; | ||
}); | ||
} | ||
return !Object.keys(sortObj) ? obj : sortObj; | ||
} | ||
function getGlobalOnce() { | ||
if (typeof globalThis !== 'undefined') { | ||
return globalThis; | ||
} | ||
// worker | ||
if (typeof self !== 'undefined') { | ||
return self; | ||
} | ||
// browser | ||
if (typeof window !== 'undefined') { | ||
return window; | ||
} | ||
// nodejs | ||
// if (typeof global !== 'undefined') { | ||
// return global | ||
// } | ||
function g() { | ||
return this; | ||
} | ||
if (typeof g() !== 'undefined') { | ||
return g(); | ||
} | ||
return (function () { | ||
return new Function('return this')(); | ||
})(); | ||
} | ||
let g = undefined; | ||
function getGlobal() { | ||
if (g) { | ||
return g; | ||
} | ||
g = getGlobalOnce(); | ||
return g; | ||
} | ||
function isComponentInternalInstance(vm) { | ||
@@ -408,4 +549,12 @@ return !!vm.appContext; | ||
function normalizeStyle(value) { | ||
if (value instanceof Map) { | ||
const g = getGlobal(); | ||
if (g && g.UTSJSONObject && value instanceof g.UTSJSONObject) { | ||
const styleObject = {}; | ||
g.UTSJSONObject.keys(value).forEach((key) => { | ||
styleObject[key] = value[key]; | ||
}); | ||
return normalizeStyle$1(styleObject); | ||
} | ||
else if (value instanceof Map) { | ||
const styleObject = {}; | ||
value.forEach((value, key) => { | ||
@@ -440,3 +589,11 @@ styleObject[key] = value; | ||
let res = ''; | ||
if (value instanceof Map) { | ||
const g = getGlobal(); | ||
if (g && g.UTSJSONObject && value instanceof g.UTSJSONObject) { | ||
g.UTSJSONObject.keys(value).forEach((key) => { | ||
if (value[key]) { | ||
res += key + ' '; | ||
} | ||
}); | ||
} | ||
else if (value instanceof Map) { | ||
value.forEach((value, key) => { | ||
@@ -484,109 +641,2 @@ if (value) { | ||
function cache(fn) { | ||
const cache = Object.create(null); | ||
return (str) => { | ||
const hit = cache[str]; | ||
return hit || (cache[str] = fn(str)); | ||
}; | ||
} | ||
function cacheStringFunction(fn) { | ||
return cache(fn); | ||
} | ||
function getLen(str = '') { | ||
return ('' + str).replace(/[^\x00-\xff]/g, '**').length; | ||
} | ||
function hasLeadingSlash(str) { | ||
return str.indexOf('/') === 0; | ||
} | ||
function addLeadingSlash(str) { | ||
return hasLeadingSlash(str) ? str : '/' + str; | ||
} | ||
function removeLeadingSlash(str) { | ||
return hasLeadingSlash(str) ? str.slice(1) : str; | ||
} | ||
const invokeArrayFns = (fns, arg) => { | ||
let ret; | ||
for (let i = 0; i < fns.length; i++) { | ||
ret = fns[i](arg); | ||
} | ||
return ret; | ||
}; | ||
function updateElementStyle(element, styles) { | ||
for (const attrName in styles) { | ||
element.style[attrName] = styles[attrName]; | ||
} | ||
} | ||
function once(fn, ctx = null) { | ||
let res; | ||
return ((...args) => { | ||
if (fn) { | ||
res = fn.apply(ctx, args); | ||
fn = null; | ||
} | ||
return res; | ||
}); | ||
} | ||
const sanitise = (val) => (val && JSON.parse(JSON.stringify(val))) || val; | ||
const _completeValue = (value) => (value > 9 ? value : '0' + value); | ||
function formatDateTime({ date = new Date(), mode = 'date' }) { | ||
if (mode === 'time') { | ||
return (_completeValue(date.getHours()) + ':' + _completeValue(date.getMinutes())); | ||
} | ||
else { | ||
return (date.getFullYear() + | ||
'-' + | ||
_completeValue(date.getMonth() + 1) + | ||
'-' + | ||
_completeValue(date.getDate())); | ||
} | ||
} | ||
function callOptions(options, data) { | ||
options = options || {}; | ||
if (isString(data)) { | ||
data = { | ||
errMsg: data, | ||
}; | ||
} | ||
if (/:ok$/.test(data.errMsg)) { | ||
if (isFunction(options.success)) { | ||
options.success(data); | ||
} | ||
} | ||
else { | ||
if (isFunction(options.fail)) { | ||
options.fail(data); | ||
} | ||
} | ||
if (isFunction(options.complete)) { | ||
options.complete(data); | ||
} | ||
} | ||
function getValueByDataPath(obj, path) { | ||
if (!isString(path)) { | ||
return; | ||
} | ||
path = path.replace(/\[(\d+)\]/g, '.$1'); | ||
const parts = path.split('.'); | ||
let key = parts[0]; | ||
if (!obj) { | ||
obj = {}; | ||
} | ||
if (parts.length === 1) { | ||
return obj[key]; | ||
} | ||
return getValueByDataPath(obj[key], parts.slice(1).join('.')); | ||
} | ||
function sortObject(obj) { | ||
let sortObj = {}; | ||
if (isPlainObject(obj)) { | ||
Object.keys(obj) | ||
.sort() | ||
.forEach((key) => { | ||
const _key = key; | ||
sortObj[_key] = obj[_key]; | ||
}); | ||
} | ||
return !Object.keys(sortObj) ? obj : sortObj; | ||
} | ||
function formatKey(key) { | ||
@@ -1635,2 +1685,2 @@ return camelize(key.substring(5)); | ||
export { ACTION_TYPE_ADD_EVENT, ACTION_TYPE_ADD_WXS_EVENT, ACTION_TYPE_CREATE, ACTION_TYPE_EVENT, ACTION_TYPE_INSERT, ACTION_TYPE_PAGE_CREATE, ACTION_TYPE_PAGE_CREATED, ACTION_TYPE_PAGE_SCROLL, ACTION_TYPE_REMOVE, ACTION_TYPE_REMOVE_ATTRIBUTE, ACTION_TYPE_REMOVE_EVENT, ACTION_TYPE_SET_ATTRIBUTE, ACTION_TYPE_SET_TEXT, ATTR_CHANGE_PREFIX, ATTR_CLASS, ATTR_INNER_HTML, ATTR_STYLE, ATTR_TEXT_CONTENT, ATTR_V_OWNER_ID, ATTR_V_RENDERJS, ATTR_V_SHOW, BACKGROUND_COLOR, BUILT_IN_TAGS, BUILT_IN_TAG_NAMES, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, DATA_RE, E$1 as Emitter, EventChannel, EventModifierFlags, I18N_JSON_DELIMITERS, JSON_PROTOCOL, LINEFEED, MINI_PROGRAM_PAGE_RUNTIME_HOOKS, NAVBAR_HEIGHT, NODE_TYPE_COMMENT, NODE_TYPE_ELEMENT, NODE_TYPE_PAGE, NODE_TYPE_TEXT, NVUE_BUILT_IN_TAGS, NVUE_U_BUILT_IN_TAGS, OFF_THEME_CHANGE, ON_ADD_TO_FAVORITES, ON_APP_ENTER_BACKGROUND, ON_APP_ENTER_FOREGROUND, ON_BACK_PRESS, ON_ERROR, ON_EXIT, ON_HIDE, ON_INIT, ON_KEYBOARD_HEIGHT_CHANGE, ON_LAUNCH, ON_LOAD, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_CHANGE, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_PAGE_NOT_FOUND, ON_PAGE_SCROLL, ON_PULL_DOWN_REFRESH, ON_REACH_BOTTOM, ON_REACH_BOTTOM_DISTANCE, ON_READY, ON_RESIZE, ON_SAVE_EXIT_STATE, ON_SHARE_APP_MESSAGE, ON_SHARE_CHAT, ON_SHARE_TIMELINE, ON_SHOW, ON_TAB_ITEM_TAP, ON_THEME_CHANGE, ON_UNHANDLE_REJECTION, ON_UNLOAD, ON_WEB_INVOKE_APP_SERVICE, ON_WXS_INVOKE_CALL_METHOD, PLUS_RE, PRIMARY_COLOR, RENDERJS_MODULES, RESPONSIVE_MIN_WIDTH, SCHEME_RE, SELECTED_COLOR, SLOT_DEFAULT_NAME, TABBAR_HEIGHT, TAGS, UNI_SSR, UNI_SSR_DATA, UNI_SSR_GLOBAL_DATA, UNI_SSR_STORE, UNI_SSR_TITLE, UNI_STORAGE_LOCALE, UNI_UI_CONFLICT_TAGS, UVUE_BUILT_IN_TAGS, UVUE_IOS_BUILT_IN_TAGS, UVUE_WEB_BUILT_IN_TAGS, UniBaseNode, UniCommentNode, UniElement, UniEvent, UniInputElement, UniLifecycleHooks, UniNode, UniTextAreaElement, UniTextNode, WEB_INVOKE_APPSERVICE, WXS_MODULES, WXS_PROTOCOL, addFont, addLeadingSlash, borderStyles, cache, cacheStringFunction, callOptions, createIsCustomElement, createRpx2Unit, createUniEvent, customizeEvent, debounce, decode, decodedQuery, defaultMiniProgramRpx2Unit, defaultNVueRpx2Unit, defaultRpx2Unit, dynamicSlotName, forcePatchProp, formatDateTime, formatLog, getCustomDataset, getEnvLocale, getLen, getValueByDataPath, initCustomDatasetOnce, invokeArrayFns, invokeCreateErrorHandler, invokeCreateVueAppHook, isAppIOSUVueNativeTag, isAppNVueNativeTag, isAppNativeTag, isAppUVueBuiltInEasyComponent, isAppUVueNativeTag, isBuiltInComponent, isComponentInternalInstance, isComponentTag, isH5CustomElement, isH5NativeTag, isMiniProgramNativeTag, isRootHook, isRootImmediateHook, isUniLifecycleHook, isUniXElement, normalizeClass, normalizeDataset, normalizeEventType, normalizeProps, normalizeStyle, normalizeStyles, normalizeTabBarStyles, normalizeTarget, normalizeTitleColor, onCreateVueApp, once, parseEventName, parseNVueDataset, parseQuery, parseUrl, passive, plusReady, removeLeadingSlash, resolveComponentInstance, resolveOwnerEl, resolveOwnerVm, sanitise, scrollTo, sortObject, stringifyQuery, updateElementStyle }; | ||
export { ACTION_TYPE_ADD_EVENT, ACTION_TYPE_ADD_WXS_EVENT, ACTION_TYPE_CREATE, ACTION_TYPE_EVENT, ACTION_TYPE_INSERT, ACTION_TYPE_PAGE_CREATE, ACTION_TYPE_PAGE_CREATED, ACTION_TYPE_PAGE_SCROLL, ACTION_TYPE_REMOVE, ACTION_TYPE_REMOVE_ATTRIBUTE, ACTION_TYPE_REMOVE_EVENT, ACTION_TYPE_SET_ATTRIBUTE, ACTION_TYPE_SET_TEXT, ATTR_CHANGE_PREFIX, ATTR_CLASS, ATTR_INNER_HTML, ATTR_STYLE, ATTR_TEXT_CONTENT, ATTR_V_OWNER_ID, ATTR_V_RENDERJS, ATTR_V_SHOW, BACKGROUND_COLOR, BUILT_IN_TAGS, BUILT_IN_TAG_NAMES, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, DATA_RE, E$1 as Emitter, EventChannel, EventModifierFlags, I18N_JSON_DELIMITERS, JSON_PROTOCOL, LINEFEED, MINI_PROGRAM_PAGE_RUNTIME_HOOKS, NAVBAR_HEIGHT, NODE_TYPE_COMMENT, NODE_TYPE_ELEMENT, NODE_TYPE_PAGE, NODE_TYPE_TEXT, NVUE_BUILT_IN_TAGS, NVUE_U_BUILT_IN_TAGS, OFF_THEME_CHANGE, ON_ADD_TO_FAVORITES, ON_APP_ENTER_BACKGROUND, ON_APP_ENTER_FOREGROUND, ON_BACK_PRESS, ON_ERROR, ON_EXIT, ON_HIDE, ON_INIT, ON_KEYBOARD_HEIGHT_CHANGE, ON_LAUNCH, ON_LOAD, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_CHANGE, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_PAGE_NOT_FOUND, ON_PAGE_SCROLL, ON_PULL_DOWN_REFRESH, ON_REACH_BOTTOM, ON_REACH_BOTTOM_DISTANCE, ON_READY, ON_RESIZE, ON_SAVE_EXIT_STATE, ON_SHARE_APP_MESSAGE, ON_SHARE_CHAT, ON_SHARE_TIMELINE, ON_SHOW, ON_TAB_ITEM_TAP, ON_THEME_CHANGE, ON_UNHANDLE_REJECTION, ON_UNLOAD, ON_WEB_INVOKE_APP_SERVICE, ON_WXS_INVOKE_CALL_METHOD, PLUS_RE, PRIMARY_COLOR, RENDERJS_MODULES, RESPONSIVE_MIN_WIDTH, SCHEME_RE, SELECTED_COLOR, SLOT_DEFAULT_NAME, TABBAR_HEIGHT, TAGS, UNI_SSR, UNI_SSR_DATA, UNI_SSR_GLOBAL_DATA, UNI_SSR_STORE, UNI_SSR_TITLE, UNI_STORAGE_LOCALE, UNI_UI_CONFLICT_TAGS, UVUE_BUILT_IN_TAGS, UVUE_IOS_BUILT_IN_TAGS, UVUE_WEB_BUILT_IN_TAGS, UniBaseNode, UniCommentNode, UniElement, UniEvent, UniInputElement, UniLifecycleHooks, UniNode, UniTextAreaElement, UniTextNode, WEB_INVOKE_APPSERVICE, WXS_MODULES, WXS_PROTOCOL, addFont, addLeadingSlash, borderStyles, cache, cacheStringFunction, callOptions, createIsCustomElement, createRpx2Unit, createUniEvent, customizeEvent, debounce, decode, decodedQuery, defaultMiniProgramRpx2Unit, defaultNVueRpx2Unit, defaultRpx2Unit, dynamicSlotName, forcePatchProp, formatDateTime, formatLog, getCustomDataset, getEnvLocale, getGlobal, getLen, getValueByDataPath, initCustomDatasetOnce, invokeArrayFns, invokeCreateErrorHandler, invokeCreateVueAppHook, isAppIOSUVueNativeTag, isAppNVueNativeTag, isAppNativeTag, isAppUVueBuiltInEasyComponent, isAppUVueNativeTag, isBuiltInComponent, isComponentInternalInstance, isComponentTag, isH5CustomElement, isH5NativeTag, isMiniProgramNativeTag, isRootHook, isRootImmediateHook, isUniLifecycleHook, isUniXElement, normalizeClass, normalizeDataset, normalizeEventType, normalizeProps, normalizeStyle, normalizeStyles, normalizeTabBarStyles, normalizeTarget, normalizeTitleColor, onCreateVueApp, once, parseEventName, parseNVueDataset, parseQuery, parseUrl, passive, plusReady, removeLeadingSlash, resolveComponentInstance, resolveOwnerEl, resolveOwnerVm, sanitise, scrollTo, sortObject, stringifyQuery, updateElementStyle }; |
{ | ||
"name": "@dcloudio/uni-shared", | ||
"version": "3.0.0-alpha-4030120241024002", | ||
"version": "3.0.0-alpha-4030220241029001", | ||
"description": "@dcloudio/uni-shared", | ||
@@ -5,0 +5,0 @@ "main": "./dist/uni-shared.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146121
4176
2