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

xe-utils

Package Overview
Dependencies
Maintainers
1
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xe-utils - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

5

index.js

@@ -11,3 +11,3 @@ import * as core from './src/core'

*/
export function mixin (methods) {
function mixin (methods) {
if (methods) {

@@ -27,5 +27,6 @@ Object.keys(methods).forEach(function (name) {

mixin(browse)
XEUtils.mixin = mixin
export var constructor = XEUtils
export * from './src/core'
export * from './src/browse'
export default XEUtils

2

package.json
{
"name": "xe-utils",
"version": "1.0.4",
"version": "1.0.5",
"description": "xe-utils 提供一整套实用函数式编程功能",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -19,3 +19,3 @@ # xe-utils 提供一整套实用函数式编程功能

``` shell
import * as XEUtils from 'xe-utils'
import XEUtils from 'xe-utils'

@@ -29,5 +29,6 @@ let dateStr = XEUtils.dateToString(new Date())

import Vue from 'vue'
import XEUtils from 'xe-utils'
import VXEUtils from 'vxe-utils'
Vue.use(VXEUtils)
Vue.use(VXEUtils, XEUtils)

@@ -37,2 +38,17 @@ // 在Vue实例中使用

```
### 支持自定义扩展
``` shell
import Vue from 'vue'
import XEUtils from 'xe-utils'
import VXEUtils from 'vxe-utils'
import customs from './customs' // ./customs.js export function custom1 () {}
XEUtils.mixin(customs)
Vue.use(VXEUtils, XEUtils)
// 调用自定义扩展函数
this.$utils.custom1()
```
## API :

@@ -39,0 +55,0 @@ ### *./core/base*

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