Socket
Socket
Sign inDemoInstall

animality

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animality - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

2

.upm/store.json

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

{"version":2,"languages":{"nodejs-npm":{"specfileHash":"eaa3cc89c2a4d6b83f6666d8668e1314","lockfileHash":"bd9c15842682473ff19f16f357dec405","guessedImports":["node-fetch"],"guessedImportsHash":"51266e8e25b3d5e637d3474eb13a80d8"}}}
{"version":2,"languages":{"nodejs-npm":{"specfileHash":"8b23b51c0bdc6b25a8fd81b48fb2209b","lockfileHash":"72762e05e3a31668efcf8eb7c5c4a1be","guessedImports":["node-fetch"],"guessedImportsHash":"51266e8e25b3d5e637d3474eb13a80d8"}}}
declare module 'animality' {
interface AnimalObject {
name: string;
image: string;
fact: string;
}
namespace fns {
export function getAsync(type?: string | string[]): Promise<AnimalObject | AnimalObject[]>;
}
export = fns;
}}
interface AnimalObject {
name: string;
image: string;
fact: string;
}
namespace fns {
export function getAsync(type?: string | string[]): Promise<AnimalObject | AnimalObject[]>;
}
export = fns;
}

@@ -16,3 +16,4 @@ const animals = [

'duck',
'penguin'
'penguin',
'axolotl'
];

@@ -19,0 +20,0 @@ const base = 'https://api.animality.xyz';

{
"name": "animality",
"version": "1.6.1",
"version": "1.6.2",
"description": "A simple API wrapper that generates images & facts of any animal",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,3 +12,3 @@ # animality

# Usage
These are the 15 animal strings that can be used to send a request to the API:
These are the 16 animal strings that can be used to send a request to the API:
* `cat`

@@ -29,2 +29,3 @@ * `dog`

* `penguin`
* `axolotl`

@@ -35,3 +36,3 @@ # Example

const animal = 'cat';
animality.getAsync(animal, 'API_KEY').then(console.log);
animality.getAsync(animal).then(console.log);
```

@@ -54,3 +55,3 @@

const animals = ['cat', 'dog', 'panda'];
animality.getAsync(animals, 'API_KEY').then(console.log);
animality.getAsync(animals).then(console.log);
```

@@ -57,0 +58,0 @@

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