@jayfong/x-utils 1.0.0-202407020937 → 1.0.0-202407020954

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/_cjs/pinyin.js CHANGED
@@ -23,6 +23,11 @@ __export(pinyin_exports, {
23
23
  module.exports = __toCommonJS(pinyin_exports);
24
24
  var import_pinyin_pro = require("pinyin-pro");
25
25
  class XPinyin {
26
+ /**
27
+ * - `我们` => `['wo', 'men']`
28
+ *
29
+ * - `2` => `['2']`
30
+ */
26
31
  static getTonelessPinyin(text) {
27
32
  return (0, import_pinyin_pro.pinyin)(text, {
28
33
  type: "array",
package/ocr.d.ts CHANGED
@@ -1,4 +1,11 @@
1
1
  /// <reference types="node" />
2
+ /**
3
+ * 环境变量:
4
+ *
5
+ * - `X_OCR_RECOGNIZE_SERVER_URL`: 文字识别服务地址
6
+ * - `X_OCR_RECOGNIZE_CAPTCHA_SERVER_URL`: 验证码识别服务地址
7
+ * - `X_OCR_RECOGNIZE_CAPTCHA_SERVER_TOKEN`: 验证码识别服务令牌
8
+ */
2
9
  export declare class XOcr {
3
10
  static recognize(url: string, { serverUrl, }?: {
4
11
  serverUrl?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jayfong/x-utils",
3
3
  "description": "123456",
4
- "version": "1.0.0-202407020937",
4
+ "version": "1.0.0-202407020954",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "vtils": "^4.115.0",
package/pinyin.d.ts CHANGED
@@ -1,3 +1,8 @@
1
1
  export declare class XPinyin {
2
+ /**
3
+ * - `我们` => `['wo', 'men']`
4
+ *
5
+ * - `2` => `['2']`
6
+ */
2
7
  static getTonelessPinyin(text: string): string[];
3
8
  }
package/pinyin.js CHANGED
@@ -1,5 +1,10 @@
1
1
  import { pinyin } from "pinyin-pro";
2
2
  class XPinyin {
3
+ /**
4
+ * - `我们` => `['wo', 'men']`
5
+ *
6
+ * - `2` => `['2']`
7
+ */
3
8
  static getTonelessPinyin(text) {
4
9
  return pinyin(text, {
5
10
  type: "array",
package/upload.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  /// <reference types="node" />
2
2
  import { LiteralUnion } from 'vtils/types';
3
+ /**
4
+ * 环境变量:
5
+ *
6
+ * - `X_UPLOAD_SERVER_URL`: 上传服务地址
7
+ * - `X_UPLOAD_SERVER_TOKEN`: 上传服务令牌
8
+ */
3
9
  export declare class XUpload {
4
10
  /**
5
11
  * 上传文件