Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flickr-sdk

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flickr-sdk - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

9

lib/validate.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc