From b8d5894a7c1540092624bd2cb704e00954894886 Mon Sep 17 00:00:00 2001 From: aetrnyx Date: Sat, 2 Oct 2021 18:48:54 +0530 Subject: [PATCH 1/3] Fixed readme and updated the version --- README.md | 28 ++++++++++++++++------------ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index fd88a13..b7691e8 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@

Generate random anime facts with a huge database.

-
Powered by Animu
+
Powered by Airi

Need support? _[Click here](https://discord.gg/yyW389c)_ -### First make sure you have a [Animu](https://animu.ml) API Token. Join _[this](https://discord.gg/yyW389c)_ discord server to get one. +### First make sure you have a [Airi](https://airi.kyoyo.me/) API Token. Join _[this](https://discord.gg/yyW389c)_ discord server to get one. ## Installation: @@ -22,24 +22,25 @@ $ yarn add anime-facts ### Query parameters _[ OPTIONAL ]_ -| Parameters | Type | Description | -| :-------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| tags | `String` | Filter random fact by tag(s). Takes a list of one or more tag names, separated by a comma (meaning `AND`) or a pipe (meaning `OR`). A comma separated list will match facts that have **_all_** of the given tags. While a pipe (`\|`) separated list will match facts that have **_either_** of the provided tags.| | -| minLength | `Int` | The minimum Length in characters ( can be combined with `maxLength` ) | | -| maxLength | `Int` | The maximum Length in characters ( can be combined with `minLength` ) | +| Parameters | Type | Description | +| :--------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --- | +| tags | `String` | Filter random fact by tag(s). Takes a list of one or more tag names, separated by a comma (meaning `AND`) or a pipe (meaning `OR`). A comma separated list will match facts that have **_all_** of the given tags. While a pipe (`\|`) separated list will match facts that have **_either_** of the provided tags. | | +| minLength | `Int` | The minimum Length in characters ( can be combined with `maxLength` ) | | +| maxLength | `Int` | The maximum Length in characters ( can be combined with `minLength` ) | ## Usage: - ```javascript -const AnimeFact =require("anime-facts"); +const AnimeFact = require("anime-facts"); const api = new AnimeFact("YOUR TOKEN"); api.getFact().then((res) => console.log(res)); ``` + ### Using Query: + ```javascript -const AnimeFact =require("anime-facts"); +const AnimeFact = require("anime-facts"); const api = new AnimeFact("YOUR TOKEN"); // Note currently there are only fews tags, length available in the database. So, it might return the same data multiple times. api.getFact(null, 1, 100).then((res) => console.log(res)); @@ -54,11 +55,14 @@ api.getFact(null, 1, 100).then((res) => console.log(res)); ``` ## Functions + | **Functions** | **Description** | | :-----------: | ---------------------------- | -| getFact | Generate random anime facts. | +| getFact | Generate random anime facts. | ## Credits + [@LamkasDev](https://github.com/LamkasDev) for adding facts to prior database. _PR [#1](https://github.com/notkyoyo/anime-facts/pull/1)_\ [@xMercyTheDeveloper](https://github.com/xMercyTheDeveloper) for adding a fact to prior database. _PR [#2](https://github.com/notkyoyo/anime-facts/pull/2)_\ -[@Lioness100](https://github.com/Lioness100) for adding types and improving codes in version [2.2.6](https://www.npmjs.com/package/anime-facts/v/2.2.6). _PR [#3](https://github.com/notkyoyo/anime-facts/pull/3) and [#4](https://github.com/notkyoyo/anime-facts/pull/4)_ +[@Lioness100](https://github.com/Lioness100) for adding types and improving codes in version [2.2.6](https://www.npmjs.com/package/anime-facts/v/2.2.6). _PR [#3](https://github.com/notkyoyo/anime-facts/pull/3) and [#4](https://github.com/notkyoyo/anime-facts/pull/4)_\ +[@Aetrnyx](https://github.com/aetrnyx) for fixing the readme in [4.3.9](https://www.npmjs.com/package/anime-facts/v/4.3.9). _PR [#15](https://github.com/notkyoyo/anime-facts/pull/15)_ diff --git a/package-lock.json b/package-lock.json index d677a08..4e5e0a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "anime-facts", - "version": "4.3.8", + "version": "4.3.9", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 97259bf..afdc66c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "anime-facts", - "version": "4.3.8", + "version": "4.3.9", "description": "Generate random anime facts.", "main": "index.js", "types": "index.d.ts", From 631213c1380f16995253458dded9671fad9e60dd Mon Sep 17 00:00:00 2001 From: Kyoyo <62479310+NotKyoyo@users.noreply.github.com> Date: Sat, 2 Oct 2021 18:56:58 +0530 Subject: [PATCH 2/3] Revert "Fixed readme and updated the version" --- README.md | 28 ++++++++++++---------------- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index b7691e8..fd88a13 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@

Generate random anime facts with a huge database.

-
Powered by Airi
+
Powered by Animu

Need support? _[Click here](https://discord.gg/yyW389c)_ -### First make sure you have a [Airi](https://airi.kyoyo.me/) API Token. Join _[this](https://discord.gg/yyW389c)_ discord server to get one. +### First make sure you have a [Animu](https://animu.ml) API Token. Join _[this](https://discord.gg/yyW389c)_ discord server to get one. ## Installation: @@ -22,25 +22,24 @@ $ yarn add anime-facts ### Query parameters _[ OPTIONAL ]_ -| Parameters | Type | Description | -| :--------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --- | -| tags | `String` | Filter random fact by tag(s). Takes a list of one or more tag names, separated by a comma (meaning `AND`) or a pipe (meaning `OR`). A comma separated list will match facts that have **_all_** of the given tags. While a pipe (`\|`) separated list will match facts that have **_either_** of the provided tags. | | -| minLength | `Int` | The minimum Length in characters ( can be combined with `maxLength` ) | | -| maxLength | `Int` | The maximum Length in characters ( can be combined with `minLength` ) | +| Parameters | Type | Description | +| :-------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| tags | `String` | Filter random fact by tag(s). Takes a list of one or more tag names, separated by a comma (meaning `AND`) or a pipe (meaning `OR`). A comma separated list will match facts that have **_all_** of the given tags. While a pipe (`\|`) separated list will match facts that have **_either_** of the provided tags.| | +| minLength | `Int` | The minimum Length in characters ( can be combined with `maxLength` ) | | +| maxLength | `Int` | The maximum Length in characters ( can be combined with `minLength` ) | ## Usage: + ```javascript -const AnimeFact = require("anime-facts"); +const AnimeFact =require("anime-facts"); const api = new AnimeFact("YOUR TOKEN"); api.getFact().then((res) => console.log(res)); ``` - ### Using Query: - ```javascript -const AnimeFact = require("anime-facts"); +const AnimeFact =require("anime-facts"); const api = new AnimeFact("YOUR TOKEN"); // Note currently there are only fews tags, length available in the database. So, it might return the same data multiple times. api.getFact(null, 1, 100).then((res) => console.log(res)); @@ -55,14 +54,11 @@ api.getFact(null, 1, 100).then((res) => console.log(res)); ``` ## Functions - | **Functions** | **Description** | | :-----------: | ---------------------------- | -| getFact | Generate random anime facts. | +| getFact | Generate random anime facts. | ## Credits - [@LamkasDev](https://github.com/LamkasDev) for adding facts to prior database. _PR [#1](https://github.com/notkyoyo/anime-facts/pull/1)_\ [@xMercyTheDeveloper](https://github.com/xMercyTheDeveloper) for adding a fact to prior database. _PR [#2](https://github.com/notkyoyo/anime-facts/pull/2)_\ -[@Lioness100](https://github.com/Lioness100) for adding types and improving codes in version [2.2.6](https://www.npmjs.com/package/anime-facts/v/2.2.6). _PR [#3](https://github.com/notkyoyo/anime-facts/pull/3) and [#4](https://github.com/notkyoyo/anime-facts/pull/4)_\ -[@Aetrnyx](https://github.com/aetrnyx) for fixing the readme in [4.3.9](https://www.npmjs.com/package/anime-facts/v/4.3.9). _PR [#15](https://github.com/notkyoyo/anime-facts/pull/15)_ +[@Lioness100](https://github.com/Lioness100) for adding types and improving codes in version [2.2.6](https://www.npmjs.com/package/anime-facts/v/2.2.6). _PR [#3](https://github.com/notkyoyo/anime-facts/pull/3) and [#4](https://github.com/notkyoyo/anime-facts/pull/4)_ diff --git a/package-lock.json b/package-lock.json index 4e5e0a5..d677a08 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "anime-facts", - "version": "4.3.9", + "version": "4.3.8", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index afdc66c..97259bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "anime-facts", - "version": "4.3.9", + "version": "4.3.8", "description": "Generate random anime facts.", "main": "index.js", "types": "index.d.ts", From 5ff4803f06e188b5da2dd7f9ecce84d4012d2774 Mon Sep 17 00:00:00 2001 From: aetrnyx Date: Sat, 2 Oct 2021 19:04:05 +0530 Subject: [PATCH 3/3] Fixed readme and bumped the version --- README.md | 22 +++++++++++++--------- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index fd88a13..76a1fbb 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@

Generate random anime facts with a huge database.

-
Powered by Animu
+
Powered by Airi

Need support? _[Click here](https://discord.gg/yyW389c)_ -### First make sure you have a [Animu](https://animu.ml) API Token. Join _[this](https://discord.gg/yyW389c)_ discord server to get one. +### First make sure you have a [Airi](https://airi.kyoyo.me/) API Token. Join _[this](https://discord.gg/yyW389c)_ discord server to get one. ## Installation: @@ -30,16 +30,17 @@ $ yarn add anime-facts ## Usage: - ```javascript -const AnimeFact =require("anime-facts"); +const AnimeFact = require("anime-facts"); const api = new AnimeFact("YOUR TOKEN"); api.getFact().then((res) => console.log(res)); ``` + ### Using Query: + ```javascript -const AnimeFact =require("anime-facts"); +const AnimeFact = require("anime-facts"); const api = new AnimeFact("YOUR TOKEN"); // Note currently there are only fews tags, length available in the database. So, it might return the same data multiple times. api.getFact(null, 1, 100).then((res) => console.log(res)); @@ -54,11 +55,14 @@ api.getFact(null, 1, 100).then((res) => console.log(res)); ``` ## Functions + | **Functions** | **Description** | | :-----------: | ---------------------------- | -| getFact | Generate random anime facts. | +| getFact | Generate random anime facts. | ## Credits -[@LamkasDev](https://github.com/LamkasDev) for adding facts to prior database. _PR [#1](https://github.com/notkyoyo/anime-facts/pull/1)_\ -[@xMercyTheDeveloper](https://github.com/xMercyTheDeveloper) for adding a fact to prior database. _PR [#2](https://github.com/notkyoyo/anime-facts/pull/2)_\ -[@Lioness100](https://github.com/Lioness100) for adding types and improving codes in version [2.2.6](https://www.npmjs.com/package/anime-facts/v/2.2.6). _PR [#3](https://github.com/notkyoyo/anime-facts/pull/3) and [#4](https://github.com/notkyoyo/anime-facts/pull/4)_ + +[@LamkasDev](https://github.com/LamkasDev) for adding facts to prior database\ +[@xMercyTheDeveloper](https://github.com/xMercyTheDeveloper) for adding a fact to prior database\ +[@Lioness100](https://github.com/Lioness100) for adding types and improving codes in version [2.2.6](https://www.npmjs.com/package/anime-facts/v/2.2.6)\ +[@Aetrnyx](https://github.com/aetrnyx) for fixing the readme in [4.3.9](https://www.npmjs.com/package/anime-facts/v/4.3.9) diff --git a/package-lock.json b/package-lock.json index d677a08..4e5e0a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "anime-facts", - "version": "4.3.8", + "version": "4.3.9", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 97259bf..afdc66c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "anime-facts", - "version": "4.3.8", + "version": "4.3.9", "description": "Generate random anime facts.", "main": "index.js", "types": "index.d.ts",