From f41a932b490bc377b583a937d26d075346e19155 Mon Sep 17 00:00:00 2001 From: Karthick6038 Date: Mon, 6 Dec 2021 15:01:04 +0530 Subject: [PATCH 1/6] Update validation.ts --- src/validation.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/validation.ts b/src/validation.ts index 6bf30d7..80e020b 100644 --- a/src/validation.ts +++ b/src/validation.ts @@ -38,9 +38,9 @@ export const isResolutionValid = ( }; export const isImageValid = (fileType: string) => { - if (fileType.includes('image')) { - return true; - } + if (fileType.includes('image') || (fileType.includes('video'))) { + return true; + } return false; }; From 88666626145f76b8b74d514b5bcd4cdce7a0ba9b Mon Sep 17 00:00:00 2001 From: Karthick6038 Date: Mon, 6 Dec 2021 17:15:03 +0530 Subject: [PATCH 2/6] Update package.json --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5081b58..a2fa994 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "react-images-uploading", + "name": "react-images-videos-upload", "version": "3.1.3", "description": "The simple images uploader applied Render Props pattern. This approach allows you to fully control UI component and behaviours.", "author": { @@ -22,12 +22,12 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/vutoan266/react-images-uploading" + "url": "https://github.com/TeraReach/react-images-videos-upload/" }, "bugs": { - "url": "https://github.com/vutoan266/react-images-uploading/issues" + "url": "https://github.com/TeraReach/react-images-videos-upload//issues" }, - "homepage": "https://github.com/vutoan266/react-images-uploading/blob/master/README.md", + "homepage": "https://github.com/TeraReach/react-images-videos-upload//blob/master/README.md", "main": "dist/index.js", "types": "dist/index.d.ts", "typings": "dist/index.d.ts", From 8d1af42e01254e4bcff9a190b2b1ab691c9f1fe6 Mon Sep 17 00:00:00 2001 From: Karthick6038 Date: Mon, 6 Dec 2021 17:15:34 +0530 Subject: [PATCH 3/6] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a2fa994..90ba2a1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-images-videos-upload", "version": "3.1.3", - "description": "The simple images uploader applied Render Props pattern. This approach allows you to fully control UI component and behaviours.", + "description": "The simple images and videos uploader applied Render Props pattern. This approach allows you to fully control UI component and behaviours.", "author": { "name": "vutoan266", "email": "vutoan266@gmail.com", From 5d99ef824a01598148c700c46e564d0e7f15f479 Mon Sep 17 00:00:00 2001 From: Karthick6038 Date: Mon, 6 Dec 2021 17:35:17 +0530 Subject: [PATCH 4/6] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 90ba2a1..80dab63 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,9 @@ "url": "https://github.com/TeraReach/react-images-videos-upload/" }, "bugs": { - "url": "https://github.com/TeraReach/react-images-videos-upload//issues" + "url": "https://github.com/TeraReach/react-images-videos-upload/issues" }, - "homepage": "https://github.com/TeraReach/react-images-videos-upload//blob/master/README.md", + "homepage": "https://github.com/TeraReach/react-images-videos-upload/blob/master/README.md", "main": "dist/index.js", "types": "dist/index.d.ts", "typings": "dist/index.d.ts", From 4731f508841f847ba54e3755ecd86f98f3c4f5b3 Mon Sep 17 00:00:00 2001 From: Karthick6038 Date: Mon, 6 Dec 2021 17:51:14 +0530 Subject: [PATCH 5/6] Update package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 80dab63..c358bc8 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "npm": ">=5" }, "scripts": { + "prepare": "npm run build" "prebuild": "rimraf dist/", "build": "tsc", "build:web": "webpack --config ./webpack/webpack.prod.js", From 06363465feb90575dd764345aca689b865d9e4d6 Mon Sep 17 00:00:00 2001 From: Karthick6038 Date: Mon, 6 Dec 2021 17:53:38 +0530 Subject: [PATCH 6/6] Update package.json --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index c358bc8..80dab63 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,6 @@ "npm": ">=5" }, "scripts": { - "prepare": "npm run build" "prebuild": "rimraf dist/", "build": "tsc", "build:web": "webpack --config ./webpack/webpack.prod.js",