@soga/utils 0.0.19 → 0.1.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.
@@ -1,6 +1,6 @@
1
1
  import { AnalyseResult } from 'chardet';
2
2
  export declare const getFileAllCharcode: (filepath: string) => Promise<AnalyseResult>;
3
- export declare const getFileCharcodeName: (filepath: string) => Promise<string>;
4
- export declare const getBufferCharcodeName: (buffer: Buffer<ArrayBufferLike>) => string;
3
+ export declare const getFileCharcodeName: (filepath: string) => Promise<import("chardet").EncodingName>;
4
+ export declare const getBufferCharcodeName: (buffer: Buffer<ArrayBufferLike>) => import("chardet").EncodingName;
5
5
  export declare const isUtf8File: (filepath: string) => Promise<boolean>;
6
6
  export declare const saveFileAsUtf8: (inputFilePath: string, outputFilePath: string) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soga/utils",
3
- "version": "0.0.19",
3
+ "version": "0.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,6 +36,7 @@
36
36
  "glob": "^10.3.3",
37
37
  "jest": "^29.6.3",
38
38
  "prettier": "^3.0.2",
39
+ "rimraf": "^6.0.1",
39
40
  "terser": "^5.19.2",
40
41
  "ts-jest": "^29.1.1",
41
42
  "ts-node": "^10.9.1",
@@ -50,5 +51,6 @@
50
51
  "iconv-lite": "^0.6.3",
51
52
  "langdetect": "^0.2.1",
52
53
  "level": "^9.0.0"
53
- }
54
+ },
55
+ "gitHead": "9c477d59857bc4b74ae6479898b38b1444744144"
54
56
  }