Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pure-upload

Package Overview
Dependencies
Maintainers
2
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pure-upload - npm Package Compare versions

Comparing version 8.0.0 to 8.1.0

4

CHANGELOG.md
# CHANGELOG
## 8.1.0
Change dependencies
## 8.0.0

@@ -4,0 +8,0 @@

7

package.json
{
"name": "pure-upload",
"version": "8.0.0",
"version": "8.1.0",
"description": "The pure upload library without dependencies",

@@ -69,4 +69,7 @@ "author": {

"scripts": {
"preinstall": "npx npm-force-resolutions"
"force-resolutions": "npx npm-force-resolutions",
"build": "npm run force-resolutions & npx gulp",
"example-watch": "force-resolutions & npx gulp dwe",
"debug-watch": "force-resolutions & npx gulp dwe"
}
}
# Pure-upload
[![npm version](https://badge.fury.io/js/pure-upload.svg)](http://badge.fury.io/js/pure-upload) [![Bower version](https://badge.fury.io/bo/pure-upload.svg)](http://badge.fury.io/bo/pure-upload)
[![npm version](https://badge.fury.io/js/pure-upload.svg)](http://badge.fury.io/js/pure-upload) [![Bower version](https://badge.fury.io/bo/pure-upload.svg)](http://badge.fury.io/bo/pure-upload)
The pure JS (TS) upload library with no dependencies compatible with Google Chrome, Firefox, IE10+, Edge and modern mobile browsers.
## Installation
1. Dowload as a ZIP file directly from [GitHub](https://github.com/keeema/pure-upload/archive/master.zip) pages and include to your project.
1. Download as a ZIP file directly from [GitHub](https://github.com/keeema/pure-upload/archive/master.zip) pages and include to your project.
2. Install with npm by `npm install pure-upload --save` or `yarn add pure-upload`.

@@ -12,2 +14,3 @@ 3. Install with bower by `bower install pure-upload`.

## Example
See a simple [example](http://keeema.github.io/pure-upload).

@@ -18,16 +21,21 @@

### Using NPM package:
Import pure-upload with standard import syntax:
```typescript
import * as pu from 'pure-upload';
import * as pu from "pure-upload";
```
### Uploader
Uploader manages upload queue and registers upload areas.
Initialization:
```typescript
let uploader = pu.getUploader(uploadQueueOptions, uploadQueueCallbacks)
let uploader = pu.getUploader(uploadQueueOptions, uploadQueueCallbacks);
```
### Upload queue options
```typescript

@@ -39,3 +47,5 @@ maxParallelUploads?: number;

```
### Upload queue callbacks
```typescript

@@ -56,5 +66,7 @@ onProgressCallback?: (file: IUploadFile) => void;

### Upload area
Upload area defines element registred in Uploader.
Registration:
```typescript

@@ -65,6 +77,9 @@ let uploadArea = uploader.registerArea(element, uploadAreaOptions);

Unregistration:
```typescript
uploader.unregisterArea(uploadArea);
```
### Upload area options
```typescript

@@ -95,3 +110,5 @@ url: string;

```
### Upload area - manual starting
```typescript

@@ -101,3 +118,5 @@ start(autoClear?: boolean, files?: IUploadFile[]): void;

```
### Localizer
```typescript

@@ -108,4 +127,7 @@ fileSizeInvalid: (maxFileSize: number) => string;

```
### Upload file
Standard *File* object extended with additional informations and methods to manage a file in queue.
Standard _File_ object extended with additional informations and methods to manage a file in queue.
```typescript

@@ -125,7 +147,33 @@ guid: string;

### Upload status
File statuses accesible by `pu.uploadStatus`.
## How to develop
### Debug and watch
```bash
npm debug-watch
```
### Build and watch example
```bash
npm run example-watch
```
### Run example solution
```bash
node example
```
### Build package
```bash
npm run build
```
Library used by [Quadient](https://quadient.cz/.
MIT, Copyright © 2015 Tomáš Růt
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