ngx-uploadx
Advanced tools
Comparing version 5.4.0 to 6.0.0
@@ -21,4 +21,4 @@ import { InjectionToken } from '@angular/core'; | ||
getResponseHeaders(xhr: XMLHttpRequest): Record<string, string>; | ||
getResponseBody<T>(xhr: XMLHttpRequest): T; | ||
getResponseBody<T>(xhr: XMLHttpRequest, responseType?: string): T; | ||
} | ||
export declare const UPLOADX_AJAX: InjectionToken<Ajax>; |
import { Uploader } from './uploader'; | ||
/** | ||
* Implements tus resumable upload protocol | ||
* | ||
* {@link https://github.com/tus/tus-resumable-upload-protocol/blob/master/protocol.md|Github} | ||
* {@link https://github.com/tus/tus-resumable-upload-protocol/blob/master/protocol.md Github} | ||
*/ | ||
@@ -7,0 +6,0 @@ export declare class Tus extends Uploader { |
import { Uploader } from './uploader'; | ||
/** | ||
* Implements XHR/CORS Resumable Upload | ||
* | ||
* {@link https://github.com/kukhariev/node-uploadx/blob/master/proto.md|Github} | ||
* @see {@link https://developers.google.com/drive/api/v3/manage-uploads#resumable|Google Drive API documentation} | ||
* {@link https://github.com/kukhariev/node-uploadx/blob/master/proto.md Github} | ||
* @see {@link https://developers.google.com/drive/api/v3/manage-uploads#resumable Google Drive API documentation} | ||
*/ | ||
@@ -8,0 +7,0 @@ export declare class UploaderX extends Uploader { |
@@ -12,5 +12,9 @@ import { UploadxDirective } from './uploadx.directive'; | ||
onDragLeave(event: DragEvent): void; | ||
/** | ||
* Extracts the files from a `DragEvent` object | ||
*/ | ||
getFiles(event: DragEvent): FileList | File[]; | ||
protected _stopEvents(event: DragEvent): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<UploadxDropDirective, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<UploadxDropDirective, "[uploadxDrop]", never, {}, {}, ["fileInput"]>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<UploadxDropDirective, "[uploadxDrop]", never, {}, {}, ["fileInput"], never, false>; | ||
} |
@@ -17,5 +17,5 @@ import { ElementRef, EventEmitter, Renderer2 } from '@angular/core'; | ||
ngOnInit(): void; | ||
fileListener(files: FileList): void; | ||
fileListener(files?: FileList | File[]): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<UploadxDirective, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<UploadxDirective, "[uploadx]", never, { "uploadx": "uploadx"; "options": "options"; "control": "control"; }, { "state": "state"; }, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<UploadxDirective, "[uploadx]", never, { "uploadx": "uploadx"; "options": "options"; "control": "control"; }, { "state": "state"; }, never, never, false>; | ||
} |
{ | ||
"name": "ngx-uploadx", | ||
"version": "5.4.0", | ||
"version": "6.0.0", | ||
"description": "Angular Resumable Upload Module", | ||
@@ -24,15 +24,28 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@angular/core": ">=12.0.0 <16.0.0", | ||
"@angular/core": ">=14.0.0 <16.0.0", | ||
"rxjs": "^6.4.0 || ^7.0.0" | ||
}, | ||
"main": "bundles/ngx-uploadx.umd.js", | ||
"module": "fesm2015/ngx-uploadx.js", | ||
"es2015": "fesm2015/ngx-uploadx.js", | ||
"esm2015": "esm2015/ngx-uploadx.js", | ||
"fesm2015": "fesm2015/ngx-uploadx.js", | ||
"typings": "ngx-uploadx.d.ts", | ||
"module": "fesm2015/ngx-uploadx.mjs", | ||
"es2020": "fesm2020/ngx-uploadx.mjs", | ||
"esm2020": "esm2020/ngx-uploadx.mjs", | ||
"fesm2020": "fesm2020/ngx-uploadx.mjs", | ||
"fesm2015": "fesm2015/ngx-uploadx.mjs", | ||
"typings": "index.d.ts", | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./index.d.ts", | ||
"esm2020": "./esm2020/ngx-uploadx.mjs", | ||
"es2020": "./fesm2020/ngx-uploadx.mjs", | ||
"es2015": "./fesm2015/ngx-uploadx.mjs", | ||
"node": "./fesm2015/ngx-uploadx.mjs", | ||
"default": "./fesm2020/ngx-uploadx.mjs" | ||
} | ||
}, | ||
"sideEffects": false, | ||
"dependencies": { | ||
"tslib": "^2.2.0" | ||
"tslib": "^2.3.0" | ||
} | ||
} |
@@ -244,2 +244,4 @@ # ngx-uploadx | ||
```ts | ||
// @example: | ||
uploads: UploadState[]; | ||
constructor(private uploadService: UploadxService) { | ||
@@ -281,4 +283,6 @@ // restore background uploads | ||
## Run demo | ||
## Demo | ||
Checkout the [Demo App](https://ngx-uploadx.vercel.app/) or run it on your local machine: | ||
- Run script `npm start` | ||
@@ -285,0 +289,0 @@ - Navigate to `http://localhost:4200/` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
316
405228
3572
1
Updatedtslib@^2.3.0