flickr-sdk
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -44,8 +44,10 @@ // Copyright 2016 Yahoo Inc. | ||
if (paramConfigObject[paramKey].type) { | ||
var paramValue = cleanParams[paramKey]; | ||
// Identify the type | ||
var actualType = (typeof cleanParams[paramKey] === "number") ? "integer" : typeof cleanParams[paramKey]; | ||
var actualType = (typeof paramValue === "number") ? (Math.floor(paramValue) === paramValue ? "integer" : "number") : typeof paramValue; | ||
// Handle the File type | ||
/* istanbul ignore next */ | ||
actualType = (typeof File !== "undefined" && cleanParams[paramKey] instanceof File) ? "file" : actualType; | ||
actualType = (typeof File !== "undefined" && paramValue instanceof File) ? "file" : actualType; | ||
@@ -59,2 +61,5 @@ var expectedType = paramConfigObject[paramKey].type; | ||
// Handle the case where integers are considered numbers too | ||
actualType = (expectedType === "number" && actualType === "integer" ? "number" : actualType); | ||
if (actualType !== expectedType) { | ||
@@ -61,0 +66,0 @@ errors.push("Param " + paramKey + " with type " + actualType + " not of the expected type: " + expectedType); |
{ | ||
"name": "flickr-sdk", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "The easiest way to talk to the Flickr API with node.js or a web browser", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
0
145531
44
2562
2