Comparing version 0.3.5 to 0.3.6
@@ -23,5 +23,11 @@ /** | ||
// TODO: get a timer for narwhal | ||
if (typeof exports.getSessionModel().validate === 'function' && typeof setTimeout !== "undefined") setTimeout(function(){ | ||
exports.getSessionModel().validate(); | ||
}, options.expires*1000); | ||
function validate() { | ||
// allow for this to occur asynchronously | ||
when(exports.getSessionModel().validate(), function () { | ||
setTimeout(validate, options.expires * -1000); | ||
}); | ||
} | ||
if (typeof exports.getSessionModel().validate === 'function' && typeof setTimeout !== "undefined") { | ||
validate(); | ||
} | ||
// | ||
@@ -28,0 +34,0 @@ return function(request){ |
@@ -44,3 +44,3 @@ /** | ||
Media({ | ||
module.exports = Media({ | ||
mediaType:"multipart/form-data", | ||
@@ -65,3 +65,5 @@ getQuality: function(object){ | ||
}, | ||
autoType: true, | ||
deserialize: function(inputStream, parameters, request){ | ||
var autoType = this.autoType; | ||
return when(parseMultipart(request), function(form){ | ||
@@ -77,3 +79,3 @@ var files = []; | ||
else{ | ||
form[i] = stringToValue(value); | ||
form[i] = autoType ? stringToValue(value) : value; | ||
} | ||
@@ -80,0 +82,0 @@ } |
{ | ||
"name": "pintura", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"author": "Kris Zyp", | ||
@@ -5,0 +5,0 @@ "email": "kriszyp@gmail.com", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
236879
92
5560
51