UNPKG

@haelp/teto

Version:

A typescript-based controllable TETR.IO client.

16 lines (15 loc) 912 B
import { version } from "./utils/index.mjs"; import chalk from "chalk"; export { CH, ch, ChannelAPI } from "./channel/index.mjs"; export * as Utils from "./utils/index.mjs"; export * as Types from "./types/index.mjs"; export { Client } from "./classes/index.mjs"; export * as Classes from "./classes/index.mjs"; export * as Engine from "./engine/index.mjs"; const suppressKey = "TRIANGLE_VERSION_SUPPRESS"; if (typeof process !== "undefined" && !(suppressKey in process.env)) { fetch("https://registry.npmjs.org/@haelp/teto").then((r)=>r.json()).then((d)=>{ if (version < d["dist-tags"].latest) console.log(`${chalk.redBright("[Triangle.js]")} Your triangle.js is out of date (v${version} vs v${d["dist-tags"].latest}). We recommend updating with 'npm install @haelp/teto@latest'.\nTo suppress this warning, set the ${suppressKey} environment variable.`); }); } //# sourceMappingURL=index.js.map