@whaletech/pet 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +3 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  // src/main.tsx
3
3
  import { useState as useState10, useCallback as useCallback2 } from "react";
4
+ import { createRequire } from "node:module";
4
5
  import { render } from "ink";
5
6
 
6
7
  // src/storage.ts
@@ -4805,7 +4806,8 @@ function Hatch({ userId, onComplete }) {
4805
4806
 
4806
4807
  // src/main.tsx
4807
4808
  import { jsxDEV as jsxDEV10 } from "react/jsx-dev-runtime";
4808
- var VERSION = "0.2.0";
4809
+ var require2 = createRequire(import.meta.url);
4810
+ var { version: VERSION } = require2("../package.json");
4809
4811
  async function checkUpdate() {
4810
4812
  try {
4811
4813
  const res = await fetch("https://registry.npmjs.org/@whaletech%2fpet/latest", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whaletech/pet",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Terminal pet companion — hatch, feed, and chat with your ASCII whale",
5
5
  "type": "module",
6
6
  "license": "MIT",