New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

yz-module-tools

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yz-module-tools

yz-module-tool,yz

latest
npmnpm
Version
0.0.3
Version published
Maintainers
3
Created
Source
  • 接口签名
  • 获取文件(接口签名衍生)

安装

import { install as YzToolsInstall } from 'yz-module-tools'
import axios from 'axios'

Vue.use(YzToolsInstall, {
    secret: 'yizheng2020',
    axios
})

接口签名 案例

    import { yzTools } from 'yz-module-tools'
    import axios from 'axios'

    // 请求拦截
    axios.interceptors.request.use(function (request) {

        <!-- 添加签名 -->
        yzTools.addSignature(request) 

        return request
    }
    // 获取文件
    this.$yzTools.getImgAndBase64(self.$config.filePath + self.noticeList[0].notice_picture)

Keywords

yz-module-tool

FAQs

Package last updated on 08 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts