dna-api 0.2.9 → 0.3.2

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.9",
3
+ "version": "0.3.2",
4
4
  "description": "dna bbs api",
5
5
  "author": {
6
6
  "name": "pa001024",
@@ -31,9 +31,9 @@
31
31
  "license": "MIT",
32
32
  "scripts": {
33
33
  "test": "bun test && npm run test:types",
34
- "test:types": "tsc --project tsconfig.test.json",
35
34
  "build": "rimraf dist && bun build.ts && tsc --project tsconfig.build.json",
36
35
  "release": "npm run build && npm publish --access public",
36
+ "lint": "tsc --noEmit",
37
37
  "trace": "tsc --generateTrace ./trace --incremental false"
38
38
  },
39
39
  "dependencies": {
@@ -44,5 +44,10 @@
44
44
  "bun-types": "^1.3.5",
45
45
  "rimraf": "6.1.2",
46
46
  "typescript": "^5.1.6"
47
- }
47
+ },
48
+ "files": [
49
+ "dist/**/*",
50
+ "README.md",
51
+ "LICENSE"
52
+ ]
48
53
  }
package/build.ts DELETED
@@ -1,10 +0,0 @@
1
- await Bun.build({
2
- entrypoints: ["./src/index.ts"],
3
- outdir: "./dist",
4
- minify: true,
5
- target: "browser",
6
- sourcemap: "external",
7
- external: ["node-forge"],
8
- })
9
-
10
- export {}
package/src/api.test.ts DELETED
@@ -1,12 +0,0 @@
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
- })