dna-api 0.2.6 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dna-api",
3
- "version": "0.2.6",
3
+ "version": "0.2.9",
4
4
  "description": "dna bbs api",
5
5
  "author": {
6
6
  "name": "pa001024",
@@ -41,8 +41,8 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^25.0.3",
44
+ "bun-types": "^1.3.5",
44
45
  "rimraf": "6.1.2",
45
- "bun-types": "^1.1.18",
46
46
  "typescript": "^5.1.6"
47
47
  }
48
48
  }
@@ -0,0 +1,12 @@
1
+ import { describe, expect, it } from "bun:test"
2
+ import { DNAAPI } from "."
3
+
4
+ describe("隐写技术测试", () => {
5
+ const api = new DNAAPI("", "", { fetchFn: fetch })
6
+
7
+ it("应该能够编码和解码基本验证码", async () => {
8
+ const categorizeList = await api.getMapCategorizeList()
9
+ console.log(categorizeList)
10
+ expect(categorizeList.success).toBe(true)
11
+ })
12
+ })