diff --git a/lib/document.js b/lib/document.js index 830a270..a77d782 100644 --- a/lib/document.js +++ b/lib/document.js @@ -467,7 +467,7 @@ }; Document.prototype.save = function(refresh) { - var dbFieldName, deferred, document, error, property, propertyName, ref, ref1, ref2; + var dbFieldName, deferred, document, error, error1, property, propertyName, ref, ref1, ref2; if (refresh == null) { refresh = false; } @@ -491,8 +491,8 @@ dbFieldName = (ref2 = property.dbField) != null ? ref2 : propertyName; try { document[dbFieldName] = property.toDb(this); - } catch (_error) { - error = _error; + } catch (error1) { + error = error1; deferred.reject(error); return deferred.promise; } diff --git a/package.json b/package.json index 520e863..438d7ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "enju", - "version": "0.1.2", + "version": "0.1.3", "description": "An elasticsearch on node.js written in CoffeeScript.", "main": "index.js", "scripts": { @@ -30,9 +30,9 @@ "time-grunt": "1.2.1" }, "dependencies": { - "coffee-script": "1.9.3", - "config": "1.15.0", - "elasticsearch": "8.0.1", + "coffee-script": "1.10.0", + "config": "1.16.0", + "elasticsearch": "8.2.0", "q": "1.4.1" } }