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

yjtec-sign

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yjtec-sign

ant design umi check sign

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

修改

src/app.js增加

头部增加

import request from '@/utils/request';
import ApiSign from 'yjtec-sign';

底部增加

//接口验签
request.interceptors.request.use((url, options) => {
  var sign = new ApiSign('OCdQVv4UMqOkYheY','MeF3Rt3VLYWeJWOkDorygTY3NlEhLYjh');
  return (
    {
      options:{
        ...sign.sign(url,options)
      }
    }
  );
});

Keywords

sign

FAQs

Package last updated on 07 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