Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Dec 30, 2016
1 parent 4770760 commit 85fcbdb
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 50 deletions.
92 changes: 46 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
{
"name": "ngx-uploader",
"description": "Angular File Uploader",
"version": "2.0.4",
"license": "MIT",
"main": "index.js",
"typings": "index.d.ts",
"author": "Jan Kuri <[email protected]>",
"scripts": {
"clean": "./scripts/clean.sh",
"dev": "tsc --watch",
"build": "./node_modules/.bin/ngc -p tsconfig.json",
"prepublish": "npm run build",
"docs": "gulp docs",
"changelog": "gulp changelog"
},
"repository": {
"type": "git",
"url": "https://github.com/jkuri/ngx-uploader.git"
},
"keywords": [
"ngx",
"angular",
"file",
"upload",
"uploader"
],
"devDependencies": {
"@angular/common": "^2.4.1",
"@angular/compiler": "^2.4.1",
"@angular/compiler-cli": "^2.4.1",
"@angular/core": "^2.4.1",
"@angular/platform-browser": "^2.4.1",
"@angular/platform-browser-dynamic": "^2.4.1",
"@angular/platform-server": "^2.4.1",
"@types/core-js": "^0.9.35",
"@types/node": "^6.0.52",
"gulp": "^3.9.1",
"gulp-conventional-changelog": "^1.1.0",
"gulp-typedoc": "^2.0.1",
"reflect-metadata": "^0.1.9",
"rxjs": "5.0.1",
"typedoc": "^0.5.1",
"typescript": "2.0.10",
"zone.js": "^0.7.4"
}
}
"name": "ngx-uploader",
"description": "Angular File Uploader",
"version": "2.0.4",
"license": "MIT",
"main": "index.js",
"typings": "index.d.ts",
"author": "Jan Kuri <[email protected]>",
"scripts": {
"clean": "./scripts/clean.sh",
"dev": "tsc --watch",
"build": "./node_modules/.bin/ngc -p tsconfig.json",
"prepublish": "npm run build",
"docs": "gulp docs",
"changelog": "gulp changelog"
},
"repository": {
"type": "git",
"url": "https://github.com/jkuri/ngx-uploader.git"
},
"keywords": [
"ngx",
"angular",
"file",
"upload",
"uploader"
],
"devDependencies": {
"@angular/common": "^2.4.1",
"@angular/compiler": "^2.4.1",
"@angular/compiler-cli": "^2.4.1",
"@angular/core": "^2.4.1",
"@angular/platform-browser": "^2.4.1",
"@angular/platform-browser-dynamic": "^2.4.1",
"@angular/platform-server": "^2.4.1",
"@types/core-js": "^0.9.35",
"@types/node": "^6.0.52",
"gulp": "^3.9.1",
"gulp-conventional-changelog": "^1.1.0",
"gulp-typedoc": "^2.0.1",
"reflect-metadata": "^0.1.9",
"rxjs": "5.0.1",
"typedoc": "^0.5.1",
"typescript": "2.0.10",
"zone.js": "^0.7.4"
}
}
2 changes: 1 addition & 1 deletion scripts/clean.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

find . -name "*.js" -type f -not -path "./node_modules/*" -delete
find . -name "*.js" -type f -and -not -path "./node_modules/*" -and -not -path "./gulpfile.js" -delete
find . -name "*.js.map" -type f -not -path "./node_modules/*" -delete
find . -name "*.d.ts" -type f -not -path "./node_modules/*" -delete
find . -name "*.metadata.json" -type f -not -path "./node_modules/*" -delete
6 changes: 3 additions & 3 deletions src/services/ngx-uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export class NgUploaderService {
}

uploadFilesInQueue(): void {
let newFiles = this._queue.filter((f) => { return !f.uploading; });
newFiles.forEach((f) => {
this.uploadFile(f);
this._queue.forEach((file) => {
if (file.uploading) { return; }
this.uploadFile(file);
});
};

Expand Down

0 comments on commit 85fcbdb

Please sign in to comment.