diff --git a/README.md b/README.md index c6aebb4..d23be39 100644 --- a/README.md +++ b/README.md @@ -286,6 +286,8 @@ ___ Returns all emoji belonging to a group, ordered by `order`. +Non-numbers throw an error. + **Parameters:** Name | Type | Description | @@ -302,6 +304,8 @@ ___ Returns all emoji matching the given search query, ordered by `order`. +Empty/null strings throw an error. + **Parameters:** Name | Type | Description | @@ -318,6 +322,10 @@ ___ Return a single emoji matching the shortcode, or null if not found. +The colons around the shortcode should not be included when querying, e.g. +use "slight_smile", not ":slight_smile:". Uppercase versus lowercase +does not matter. Empty/null strings throw an error. + **Parameters:** Name | Type | Description | @@ -334,6 +342,8 @@ ___ Return a single emoji matching the unicode string, or null if not found. +Empty/null strings throw an error. + **Parameters:** Name | Type | Description | diff --git a/rollup.config.js b/rollup.config.js index 95220a6..48b810c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -44,7 +44,7 @@ const entryPoints = [ output: './picker.js' }, { - input: './src/database/Database.test.js', + input: './src/database/Database.js', output: './database.js' } ]