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

nutui-uniapp

Package Overview
Dependencies
Maintainers
0
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nutui-uniapp - npm Package Compare versions

Comparing version 1.7.14 to 1.7.15

components/swipe/types.ts

4

components/_hooks/useInject.ts

@@ -5,4 +5,4 @@ import { computed, getCurrentInstance, inject, onUnmounted, ref } from 'vue'

type ParentProvide<T> = T & {
add(child: ComponentInternalInstance): void
remove(child: ComponentInternalInstance): void
add: (child: ComponentInternalInstance) => void
remove: (child: ComponentInternalInstance) => void
internalChildren: ComponentInternalInstance[]

@@ -9,0 +9,0 @@ }

@@ -12,3 +12,5 @@ let count = 0

}
catch (error) {}
catch (error) {
console.error(error)
}
}

@@ -23,3 +25,5 @@ }

}
catch (error) {}
catch (error) {
console.error(error)
}
}

@@ -26,0 +30,0 @@ }

@@ -59,2 +59,3 @@ import { isArray, isDef, isObject } from './is'

}
// eslint-disable-next-line unused-imports/no-unused-vars
catch (error) {

@@ -61,0 +62,0 @@ return ''

@@ -10,3 +10,3 @@ /**

let t = timeStr
t = (t as number > 0) ? +t : t.toString().replace(/\-/g, '/')
t = (t as number > 0) ? +t : t.toString().replace(/-/g, '/')
return new Date(t).getTime()

@@ -13,0 +13,0 @@ }

@@ -94,4 +94,4 @@ const toString = Object.prototype.toString

export function isUrl(path: string): boolean {
const reg = /^http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/
const reg = /^http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- ./?%&=]*)?/
return reg.test(path)
}

@@ -9,3 +9,3 @@ import type { CSSProperties } from 'vue'

const listDelimiterRE = /;(?![^(]*\))/g
const propertyDelimiterRE = /:([^]+)/
const propertyDelimiterRE = /:([\s\S]+)/
const styleCommentRE = /\/\*.*?\*\//g

@@ -63,4 +63,5 @@

|| (target === 'string' && typeof customStyle === 'string')
)
) {
return customStyle
}

@@ -67,0 +68,0 @@ // 字符串转对象

@@ -8,3 +8,2 @@ import type { ExtractPropTypes } from 'vue'

*/
// eslint-disable-next-line ts/ban-types
theme: makeStringProp<string | 'dark' & {}>(''),

@@ -11,0 +10,0 @@ /**

@@ -9,3 +9,2 @@ import type { ExtractPropTypes } from 'vue'

*/
// eslint-disable-next-line ts/ban-types
image: makeStringProp<'empty' | 'error' | 'network' | (string & {})>('empty'),

@@ -12,0 +11,0 @@

@@ -29,3 +29,3 @@ import type { FormItemLabelPosition, FormItemRule, FormItemStarPosition } from '../formitem/types'

*/
validate: (customProp?: any) => Promise<any>
validate: (customProp?: any) => Promise<{ valid: boolean, errors: ErrorMessage[] }>
}

@@ -32,0 +32,0 @@

@@ -25,4 +25,4 @@ import type { Interceptor } from '../_utils'

isLoop?: boolean
close?(): void
change?(index: number): void
close?: () => void
change?: (index: number) => void
}

@@ -29,0 +29,0 @@

@@ -7,6 +7,2 @@ import type { ExtractPropTypes } from 'vue'

/**
* @description 吸附时的层级
*/
zIndex: [Number, String],
/**
* @description 吸顶距离

@@ -16,2 +12,9 @@ */

/**
* @description 吸附时的层级
*/
zIndex: {
type: [Number, String],
default: 2000,
},
/**
* @description 导航栏高度,自定义导航栏时,需要传入此值

@@ -29,8 +32,4 @@ * - H5端的导航栏属于“自定义”导航栏的范畴,因为它是非原生的,与普通元素一致

bgColor: makeStringProp('transparent'),
/**
* @description 自定义标识,用于区分是哪一个组件
*/
index: [String, Number],
}
export type StickyProps = ExtractPropTypes<typeof stickyProps>

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

export * from './type'
export * from './types'
export * from './swipe'
import type { ExtractPropTypes } from 'vue'
import { commonProps, isString, makeArrayProp } from '../_utils'
import { CLICK_EVENT } from '../_constants'
import type { SwipePosition, SwipeToggleEvent } from './type'
import type { SwipePosition, SwipeToggleEvent } from './types'

@@ -6,0 +6,0 @@ export const swipeProps = {

@@ -82,2 +82,3 @@ export const toastType = ['text', 'success', 'error', 'warning', 'loading'] as const

*/
// eslint-disable-next-line ts/no-unsafe-function-type
onClose?: Function

@@ -87,2 +88,3 @@ /**

*/
// eslint-disable-next-line ts/no-unsafe-function-type
onClosed?: Function

@@ -97,7 +99,7 @@ }

showToast: {
text(msg: string, options?: ToastOptions): void
success(msg: string, options?: ToastOptions): void
fail(msg: string, options?: ToastOptions): void
warn(msg: string, options?: ToastOptions): void
loading(msg: string, options?: ToastOptions): void
text: (msg: string, options?: ToastOptions) => void
success: (msg: string, options?: ToastOptions) => void
fail: (msg: string, options?: ToastOptions) => void
warn: (msg: string, options?: ToastOptions) => void
loading: (msg: string, options?: ToastOptions) => void
}

@@ -113,23 +115,23 @@ /**

*/
text(msg: string, options?: ToastOptions): void
text: (msg: string, options?: ToastOptions) => void
/**
* @description 成功提示
*/
success(msg: string, options?: ToastOptions): void
success: (msg: string, options?: ToastOptions) => void
/**
* @description 错误提示
*/
error(msg: string, options?: ToastOptions): void
error: (msg: string, options?: ToastOptions) => void
/**
* @description 警告提示
*/
warning(msg: string, options?: ToastOptions): void
warning: (msg: string, options?: ToastOptions) => void
/**
* @description 加载提示
*/
loading(msg: string, options?: ToastOptions): void
loading: (msg: string, options?: ToastOptions) => void
/**
* @description 隐藏提示
*/
hide(): void
hide: () => void
}

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

// For this project development
import '@vue/runtime-core'
/* eslint-disable */
// @ts-nocheck
declare module '@vue/runtime-core' {
declare module 'vue' {
// GlobalComponents for Volar

@@ -116,8 +116,5 @@ export interface GlobalComponents {

NutLoadingPage: typeof import('./components/loadingpage/loadingpage.vue')['default']
}
// interface ComponentCustomProperties {}
}
export { }
export {}
{
"name": "nutui-uniapp",
"displayName": "nutui-uniapp 京东风格的轻量级移动端 Uniapp、Vue3 组件库",
"version": "1.7.14",
"version": "1.7.15",
"description": "京东风格的轻量级移动端 Uniapp、Vue3 组件库(支持小程序开发)",

@@ -6,0 +6,0 @@ "author": "yang1206 <y1149221897@outlook.com>",

@@ -679,2 +679,15 @@ {

"attributes": [
"model-value",
"range",
"max",
"min",
"step",
"disabled",
"vertical",
"hidden-range",
"hidden-tag",
"active-color",
"inactive-color",
"button-color",
"marks",
"change",

@@ -1421,6 +1434,5 @@ "drag-start",

"z-index",
"customNavHeight",
"custom-nav-height",
"disabled",
"bg-color",
"index"
"bg-color"
],

@@ -1427,0 +1439,0 @@ "description": "[Docs](https://nutui-uniapp.pages.dev/components/layout/sticky.html#sticky-粘性布局)"

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

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

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

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

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

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

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 too big to display

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

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