From 5434713e4d827f3a3dd796afaa62b4c7d3545ad5 Mon Sep 17 00:00:00 2001 From: byzg Date: Tue, 11 Jul 2017 12:46:11 +0300 Subject: [PATCH] skipping File from processing --- .gitignore | 5 ++++- es5/index.js | 2 +- es5/main.js | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5ceda4d..df86c2b 100644 --- a/.gitignore +++ b/.gitignore @@ -36,4 +36,7 @@ jspm_packages # Optional REPL history .node_repl_history -build \ No newline at end of file +build + +# IDE +.idea/ diff --git a/es5/index.js b/es5/index.js index 682de02..d4b5f3a 100644 --- a/es5/index.js +++ b/es5/index.js @@ -136,7 +136,7 @@ function depascalize$1(str, separator) { } function shouldProcessValue(value) { - return value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) == 'object' && !(value instanceof Date) && !(value instanceof Function); + return value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) == 'object' && !(value instanceof Date) && !(value instanceof Function) && !(value instanceof File); } function processKeys(obj, fun, opts) { diff --git a/es5/main.js b/es5/main.js index 499a91f..2304570 100644 --- a/es5/main.js +++ b/es5/main.js @@ -4,7 +4,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol module.exports = function (algorithms) { function shouldProcessValue(value) { - return value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) == 'object' && !(value instanceof Date) && !(value instanceof Function); + return value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) == 'object' && !(value instanceof Date) && !(value instanceof Function) && !(value instanceof File); } function processKeys(obj, fun, opts) {