Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek committed Dec 11, 2024
1 parent d58b9cc commit f1bcab9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default [
globals: {
...globals.node,
...globals.es2024,
...globals.jest,
},
},
rules: {
Expand Down
2 changes: 1 addition & 1 deletion examples/basicUsage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { NekosiaAPI } = require('../index.js');
session: 'ip',
count: 1,
additionalTags: ['cute', 'sakura', 'cherry-blossom'],
blacklistedTags: ['beret']
blacklistedTags: ['beret'],
});

console.log(response);
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class NekosiaAPI {
count: 1,
additionalTags: [],
blacklistedTags: [],
...options
...options,
});

return this.makeHttpRequest(`${API_URL}/images/${category}?${queryString}`);
Expand All @@ -69,10 +69,10 @@ const NekosiaVersion = {
module: https.version,
api: async () => {
return await https.get(BASE_URL);
}
},
};

module.exports = {
NekosiaAPI: new NekosiaAPI(),
NekosiaVersion
NekosiaVersion,
};
2 changes: 1 addition & 1 deletion services/https.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
'DNT': '1'
'DNT': '1',
};

const makeRequest = url => new Promise((resolve, reject) => {
Expand Down

0 comments on commit f1bcab9

Please sign in to comment.