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

angular2-image-upload

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-image-upload - npm Package Compare versions

Comparing version 1.0.0-rc.1 to 1.0.0-rc.2

angular2-image-upload.d.ts

8

lib/file-drop.directive.d.ts

@@ -6,9 +6,9 @@ import { EventEmitter } from '@angular/core';

fileDrop: EventEmitter<FileList>;
private static getDataTransfer;
private static hasFiles;
private static matchRule;
onDrop(event: any): void;
onDragLeave(event: any): void;
onDragOver(event: any): void;
private filterFiles(files);
private static getDataTransfer(event);
private static hasFiles(types);
private static matchRule(rule, candidate);
private filterFiles;
}

@@ -0,16 +1,7 @@

import { HttpHeaders } from '@angular/common/http';
import { EventEmitter, OnChanges, OnInit } from '@angular/core';
import { Headers } from '@angular/http';
import { UploadMetadata } from './before-upload.interface';
import { ImageService } from './image.service';
import { Style } from './style';
export declare class FileHolder {
src: string;
file: File;
pending: boolean;
serverResponse: {
status: number;
response: any;
};
constructor(src: string, file: File);
}
import { FileHolder } from '../file-holder';
import { ImageUploadService } from '../image-upload.service';
import { Style } from '../style';
import { UploadMetadata } from '../upload-metadata';
export declare class ImageUploadComponent implements OnInit, OnChanges {

@@ -22,3 +13,3 @@ private imageService;

showFileTooLargeMessage: boolean;
beforeUpload: (param: UploadMetadata) => UploadMetadata | Promise<UploadMetadata>;
beforeUpload: (metadata: UploadMetadata) => UploadMetadata | Promise<UploadMetadata>;
buttonCaption: string;

@@ -29,5 +20,5 @@ disabled: boolean;

dropBoxMessage: string;
fileTooLargeMessage: any;
headers: Headers | {
[name: string]: any;
fileTooLargeMessage: string;
headers: HttpHeaders | {
[name: string]: string | string[];
};

@@ -53,3 +44,3 @@ max: number;

private pendingFilesCounter;
constructor(imageService: ImageService);
constructor(imageService: ImageUploadService);
ngOnInit(): void;

@@ -62,7 +53,6 @@ deleteAll(): void;

onFileOver: (isOver: any) => any;
private countRemainingSlots;
private onResponse(response, fileHolder);
private processUploadedFiles();
private uploadFiles(files, filesToUploadNum);
private uploadSingleFile(fileHolder, url?, customForm?);
private onResponse;
private processUploadedFiles;
private uploadFiles;
private uploadSingleFile;
}
{
"name": "angular2-image-upload",
"version": "1.0.0-rc.1",
"version": "1.0.0-rc.2",
"description": "An angular component that uploads images using native browser upload or drag-n-drop.",
"main": "index.js",
"scripts": {
"build": "rm -rf lib .tmp demo/src/lib && gulp build",
"release": "npm run build && npm run build:demo && git add docs && standard-version --commit-all",
"publish": "git push --follow-tags origin master && npm publish",
"install:demo": "cd demo && yarn",
"demo": "cd demo && npm start",
"build:demo": "cd demo && npm run build"
},
"repository": {

@@ -38,22 +29,19 @@ "type": "git",

"peerDependencies": {
"@angular/common": "^2.4.9 || ^4.0.0",
"@angular/core": "^2.4.9 || ^4.0.0",
"@angular/http": "^2.4.9 || ^4.0.0",
"rxjs": "^5.0.0-rc.2"
"@angular/common": "^6.0.0 || ^7.0.0",
"@angular/core": "^6.0.0 || ^7.0.0",
"rxjs": "^6.0.0"
},
"devDependencies": {
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/language-service": "^4.0.0",
"@types/core-js": "^0.9.34",
"gulp": "github:gulpjs/gulp#4.0",
"gulp-inline-ng2-template": "^4.0.0",
"gulp-ngc": "^0.3.2",
"rxjs": "^5.0.0-rc.2",
"standard-version": "^4.2.0",
"typescript": "2.1.5"
"main": "bundles/angular2-image-upload.umd.js",
"module": "fesm5/angular2-image-upload.js",
"es2015": "fesm2015/angular2-image-upload.js",
"esm5": "esm5/angular2-image-upload.js",
"esm2015": "esm2015/angular2-image-upload.js",
"fesm5": "fesm5/angular2-image-upload.js",
"fesm2015": "fesm2015/angular2-image-upload.js",
"typings": "angular2-image-upload.d.ts",
"metadata": "angular2-image-upload.metadata.json",
"sideEffects": false,
"dependencies": {
"tslib": "^1.9.0"
}
}
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