npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sanjo-addons/compatibility

v2.0.2

Published

A library which serves as a compatibility layer for different versions of the game (retail, WotLK and vanilla). This allows developers to call the same APIs in the different versions of the game.

Downloads

4

Readme

Compatibility

A library which serves as a compatibility layer for different versions of the game (retail, WotLK and vanilla). This allows developers to call the same APIs in the different versions of the game.

Included functions

  • Compatibility.isRetail a function which returns true when the game is the retail version of the game.
  • Compatibility.isWotLK a function which returns true when the game is the WotLK version of the game.
  • Compatibility.isVanilla a function which returns true when the game is the vanilla version of the game.
  • Compatibility.isMajorVersion a function which returns true when the major version of the game equals the give major version.
  • Compatibility.isMajorVersionAtOrAbove a function which returns true when the major version is at or above the given major version.
  • Compatibility.determineMajorVersion a function which returns the major version.

Container

  • Compatibility.Container.retrieveItemInfo: a function which returns information about an item in a container.
  • Compatibility.Container.receiveNumberOfSlotsOfContainer: a function which returns the number of slots of a container.
  • Compatibility.Container.UseContainerItem: a function for using a container item.
  • Compatibility.Container.receiveNumberOfFreeSlotsInContainer: a function that returns the number of free slots in a container.

GossipInfo

There seem to be different dialogs. Either based on "GossipInfo" or "Quests".

  • Compatibility.GossipInfo.retrieveAvailableQuests: a function that returns the available quests.
  • Compatibility.GossipInfo.retrieveActiveQuests: a function that returns the active quests.
  • Compatibility.GossipInfo.selectAvailableQuest: a function to select an available quest.
  • Compatibility.GossipInfo.hasGossipOptions: a function that checks if there are gossip options.
  • Compatibility.GossipInfo.retrieveOptions: a function for retrieving the options. Only implemented for retail.
  • Compatibility.GossipInfo.hasAvailableQuests: a function that checks if there are available quests.
  • Compatibility.GossipInfo.selectActiveQuest: a function for selecting an active quest.
  • Compatibility.GossipInfo.selectOption: a function for selection an option. Only implemented for retail.

QuestLog

  • Compatibility.QuestLog.retrieveInfo: a function for retrieving quest info by index.
  • Compatibility.QuestLog.isFailed: a function which checks if a quest is failed.
  • Compatibility.QuestLog.isComplete: a function which checks if a quest is complete.
  • Compatibility.QuestLog.isOnQuest: a function which checks if a character is on a quest.
  • Compatibility.QuestLog.retrieveNumberOfQuestLogEntries: a function which returns the number of quest log entries.
  • Compatibility.QuestLog.retrieveIndexForQuestID: a function which returns the index of a quest.
  • Compatibility.QuestLog.isQuestFlaggedCompleted: a function which checks if a quest is flagged completed.
  • Compatibility.QuestLog.SetAbandonQuest: a function for setting the quest to abandon.
  • Compatibility.QuestLog.AbandonQuest: a function for abandoning the quest that has been set with Compatibility.QuestLog.SetAbandonQuest.

Quests

There seem to be different dialogs. Either based on "GossipInfo" or "Quests".

  • Compatibility.Quests.retrieveAvailableQuests: a function for retrieving available quests.
  • Compatibility.Quests.selectAvailableQuest: a function for selecting an available quest.
  • Compatibility.Quests.retrieveActiveQuests: a function for retrieving the active quests.
  • Compatibility.Quests.selectActiveQuest: a function for selecting an active quest.

TaskQuest

  • Compatibility.TaskQuest.retrieveQuestsOnMap: a function for retrieving the quests on a map.

You can support me on Patreon.

How to use

Please see "How to use Library" for how to use this library.