@seayoo-web/app-info 0.2.2 → 0.3.0

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": "@seayoo-web/app-info",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "description": "app info parser",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -21,25 +21,25 @@
21
21
  "devDependencies": {
22
22
  "@types/bytebuffer": "^5.0.49",
23
23
  "@types/pako": "^2.0.4",
24
- "@types/plist": "^3.0.5",
25
24
  "jszip": "^3.10.1",
26
25
  "tsx": "^4.21.0",
26
+ "vitest": "^4.0.16",
27
27
  "@seayoo-web/scripts": "^3.1.6",
28
- "@seayoo-web/utils": "^4.1.3",
29
- "@seayoo-web/tsconfig": "^1.0.5"
28
+ "@seayoo-web/tsconfig": "^1.0.5",
29
+ "@seayoo-web/utils": "^4.1.3"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "jszip": "^3.10.1"
33
33
  },
34
34
  "dependencies": {
35
35
  "bytebuffer": "^5.0.1",
36
- "cgbi-to-png": "^1.0.7",
37
36
  "pako": "^2.0.4"
38
37
  },
39
38
  "scripts": {
40
39
  "prebuild": "pnpm -F utils build",
41
40
  "build": "vite build && tsc --emitDeclarationOnly",
42
- "test": "npx tsx ./test/index.ts",
41
+ "test": "vitest",
42
+ "play": "tsx ./playground/index.ts",
43
43
  "type-check": "tsc --noEmit",
44
44
  "prepublish": "pnpm build"
45
45
  }
@@ -1,6 +1,6 @@
1
1
  import type { PromiseValue } from "@seayoo-web/utils";
2
2
  import type { loadAsync } from "jszip";
3
- export type FileInput = Uint8Array | ArrayBuffer | Blob;
3
+ export type FileInput = Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream;
4
4
  export type ParserOptions = {
5
5
  /** 是否忽略图标,设置为 true 可以节约解析时间 */
6
6
  ignoreIcon?: boolean;
@@ -22,7 +22,7 @@ interface XmlCData {
22
22
  data: string | null;
23
23
  typedValue: TypedValueResult;
24
24
  }
25
- type XmlNode = XmlElement | XmlCData;
25
+ export type XmlNode = XmlElement | XmlCData;
26
26
  export type CollapsedValue = undefined | string | number | boolean | null | Record<string, any>;
27
27
  export type CollapsedAttributes = Record<string, CollapsedValue>;
28
28
  export interface IntentFilter extends CollapsedAttributes {