From f09f4359ef09934d854896c5065587a53cce4718 Mon Sep 17 00:00:00 2001 From: Jan Kuri Date: Thu, 28 Jul 2016 20:27:37 +0200 Subject: [PATCH] v0.5.7 --- .gitignore | 1 - package.json | 14 +++++++++----- src/services/ng2-uploader.d.ts | 2 +- tsconfig.json | 7 ++++--- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 307b2ae4..e04da3c8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ **/*.js **/*.js.map -!make.js npm-debug.log diff --git a/package.json b/package.json index 9e462d5f..368f675f 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,14 @@ { "name": "ng2-uploader", "description": "Angular2 File Uploader", - "version": "0.5.6", + "version": "0.5.7", "license": "MIT", - "main": "./ng2-uploader.ts", + "main": "ng2-uploader.ts", "author": "Jan Kuri ", + "scripts": { + "dev": "tsc --watch", + "prepublish": "typings install && tsc" + }, "repository": { "type": "git", "url": "git+https://github.com/jkuri/ng2-uploader.git" @@ -18,9 +22,9 @@ "uploader" ], "dependencies": { - "@angular/common": "^2.0.0-rc.4", - "@angular/compiler": "^2.0.0-rc.4", - "@angular/core": "^2.0.0-rc.4", + "@angular/common": "github:angular/common-builds", + "@angular/compiler": "github:angular/compiler-builds", + "@angular/core": "github:angular/core-builds", "clang-format": "^1.0.42", "es6-promise": "^3.2.1", "es6-shim": "^0.35.1", diff --git a/src/services/ng2-uploader.d.ts b/src/services/ng2-uploader.d.ts index 4cfbe135..eb36339a 100644 --- a/src/services/ng2-uploader.d.ts +++ b/src/services/ng2-uploader.d.ts @@ -23,7 +23,7 @@ export declare class Ng2Uploader { setOptions(options: any): void; uploadFilesInQueue(): void; uploadFile(file: any): void; - addFilesToQueue(files: FileList[]): void; + addFilesToQueue(files: FileList): void; removeFileFromQueue(i: number): void; clearQueue(): void; getQueueSize(): number; diff --git a/tsconfig.json b/tsconfig.json index eee1a9c9..da60ded1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,19 +4,20 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "mapRoot": "", - "module": "system", + "module": "commonjs", "moduleResolution": "node", "noEmitOnError": true, "noImplicitAny": false, "rootDir": ".", "sourceMap": true, - "sourceRoot": "/", + "sourceRoot": "./", "target": "es5" }, "files": [ + "typings/index.d.ts", "ng2-uploader.ts" ], "exclude": [ "node_modules" ] -} +} \ No newline at end of file