Socket
Socket
Sign inDemoInstall

animality

Package Overview
Dependencies
6
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.7 to 1.5.8

2

.upm/store.json

@@ -1,1 +0,1 @@

{"version":2,"languages":{"nodejs-npm":{"specfileHash":"b394298c89b68edf01f385eb7938bff8","lockfileHash":"f9682ec1d5190a5ecab630be0cb2661a","guessedImports":["node-fetch"],"guessedImportsHash":"51266e8e25b3d5e637d3474eb13a80d8"}}}
{"version":2,"languages":{"nodejs-npm":{"specfileHash":"704217a8fdca46f37366ef0e95aa52de","lockfileHash":"bb53960f26dbba5b0c4f39dbd7adef40","guessedImports":["node-fetch"],"guessedImportsHash":"51266e8e25b3d5e637d3474eb13a80d8"}}}

@@ -1,2 +0,1 @@

const fetch = require('node-fetch');
const animals = [

@@ -21,2 +20,4 @@ 'cat',

let fetch;
/**

@@ -36,2 +37,5 @@ * @typedef {Object} AnimalObject

async getAsync(type = 'random') {
if (fetch === undefined)
({ default: fetch } = await import('node-fetch'));
const isArray = Array.isArray(type);

@@ -38,0 +42,0 @@ if ((typeof type !== 'string' && !isArray) || isArray && (type = type.flat()) && !type.every(t => typeof t === 'string')) throw new TypeError("'type' must be a string or an array of strings");

{
"name": "animality",
"version": "1.5.7",
"version": "1.5.8",
"description": "A simple API wrapper that generates images & facts of any animal",
"main": "index.js",
"dependencies": {
"node-fetch": "^2.6.1"
"node-fetch": "^3.2.0"
},

@@ -29,2 +29,2 @@ "devDependencies": {},

"homepage": "https://animality.xyz"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc