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

dudup-browser

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dudup-browser

## 安装

  • 1.0.1-alpha.5
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

浏览器端上传基类

安装

# NPM
$ npm i dudup-browser
# YARN
$ yarn add dudup-browser

使用

import { Types } from 'dudup'
import { BrowserRequestor, BrowserUploadFile } from 'dudup-browser'
import MySender from './MySender'

/**
 * (!) 注意: 这里的 MySender 指的是继承 dudup/libs/Sender
 */

export default class CustomUploader extends MySender {
  constructor(options?: Types.SenderOptions) {
    super(BrowserRequestor, BrowserUploadFile, options)
  }
}

注意

因为继承需要重写的函数比较多, 建议使用 Typescript 进行拓展, 否则容易错漏.

FAQs

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

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