Giter VIP home page Giter VIP logo

azurapi-js's People

Contributors

0t4u avatar auguwu avatar deivu avatar dependabot[bot] avatar jan0660 avatar jasperchua99 avatar minhducsun2002 avatar octo-kumo avatar sgrezza avatar sp3cker avatar tommywalkie avatar wait-what avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azurapi-js's Issues

[BUG] `ships.get("Enterprise")` returns two ships – no way to specify which ship you meant.

To Reproduce
This code:

import { AzurAPI } from "@azurapi/azurapi";

(() => {
  const client = new AzurAPI();

  console.log(client.ships.get("Enterprise"));
})();

logs:

[
  {
    wikiUrl: 'https://azurlane.koumakan.jp/wiki/Enterprise_(Royal_Navy)',
    id: '557',
    _gid: 20232,
    _sid: [ 202321, 202322, 202323, 202324 ],
    _code: 557,
    names: {
      en: 'Enterprise',
      code: 'HMS Enterprise',
      cn: '进取',
      jp: 'エンタープライズ',
      kr: '엔터프라이즈'
    },
...
},
{
    wikiUrl: 'https://azurlane.koumakan.jp/wiki/Enterprise',
    id: '077',
    _gid: 10706,
    _sid: [
      107061, 107062,
      107063, 107064,
      900184, 900252,
      900335
    ],
    _code: 77,
    names: {
      en: 'Enterprise',
      code: 'USS Enterprise',
      cn: '企业',
      jp: 'エンタープライズ',
      kr: '엔터프라이즈',
      tw: '企業'
    },
...
}
]

Expected behavior
This is actually 100% correct behavior.
However, there's no way to further narrow down between ships. I think it'd be best if we allow for .get to take check the names.code property as a search term to distinctify the ships.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.