@bettergi/utils 0.0.8 → 0.0.9

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.
package/README.md CHANGED
@@ -1,11 +1,19 @@
1
- 本项目是一个为[Better Genshin Impact](https://github.com/babalae/better-genshin-impact) 设计的 JavaScript 开发工具函数,旨在帮助开发者简化代码。
1
+ 本项目是一个为[Better Genshin Impact](https://github.com/babalae/better-genshin-impact) 设计的 JavaScript 开发工具集,旨在帮助开发者简化代码、不用重复造轮子。工具函数支持按需引入,轻量依赖。
2
2
 
3
3
  ## 安装
4
4
 
5
+ ### 使用 npm
6
+
5
7
  ```shell
6
8
  npm install @bettergi/utils
7
9
  ```
8
10
 
11
+ ### 使用 pnpm
12
+
13
+ ```shell
14
+ pnpm install @bettergi/utils
15
+ ```
16
+
9
17
  ## 函数清单
10
18
 
11
19
  ### 游戏内操作
package/dist/game.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import "@bettergi/types/csharp/BetterGenshinImpact/GameTask/Model/Area/Region";
2
1
  /**
3
2
  * 打开派蒙菜单
4
3
  */
package/dist/game.js CHANGED
@@ -1,4 +1,3 @@
1
- import "@bettergi/types/csharp/BetterGenshinImpact/GameTask/Model/Area/Region";
2
1
  import { waitUntil } from "./flow";
3
2
  import { mouseSlide } from "./mouse";
4
3
  import { findTextInDirection, findTextWithinBounds, findTextWithinListView } from "./ocr";
package/dist/ocr.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- import "@bettergi/types/csharp/BetterGenshinImpact/GameTask/Model/Area/ImageRegion";
2
- import "@bettergi/types/csharp/BetterGenshinImpact/GameTask/Model/Area/Region";
3
1
  type Direction = "north" | "north-east" | "east" | "south-east" | "south" | "south-west" | "west" | "north-west";
4
2
  /**
5
3
  * 在整个画面内搜索图片
package/dist/ocr.js CHANGED
@@ -1,5 +1,3 @@
1
- import "@bettergi/types/csharp/BetterGenshinImpact/GameTask/Model/Area/ImageRegion";
2
- import "@bettergi/types/csharp/BetterGenshinImpact/GameTask/Model/Area/Region";
3
1
  import { waitUntil } from "./flow";
4
2
  import { mouseScrollDownLines } from "./mouse";
5
3
  const findFirst = (ir, ro, predicate) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bettergi/utils",
3
- "version": "0.0.8",
4
- "description": "Utils for BetterGI JavaScript Development",
3
+ "version": "0.0.9",
4
+ "description": "开发 BetterGI 脚本常用工具集",
5
5
  "type": "module",
6
6
  "author": "Bread Grocery<https://github.com/breadgrocery>",
7
7
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "build": "tsc"
34
34
  },
35
35
  "devDependencies": {
36
- "@bettergi/types": "^0.0.12",
36
+ "@bettergi/types": "^0.0.13",
37
37
  "typescript": "5.6.3"
38
38
  }
39
39
  }