@ikenxuan/amagi 5.8.1 → 5.9.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.
@@ -6,12 +6,16 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
8
  var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
- key = keys[i];
11
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
- get: ((k) => from[k]).bind(null, key),
13
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
- });
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) {
13
+ __defProp(to, key, {
14
+ get: ((k) => from[k]).bind(null, key),
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ }
15
19
  }
16
20
  return to;
17
21
  };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_chunk = require('../chunk-CUT6urMc.cjs');
2
+ const require_chunk = require('../chunk-CbDLau6x.cjs');
3
3
  let node_fs = require("node:fs");
4
4
  node_fs = require_chunk.__toESM(node_fs);
5
5
  let node_path = require("node:path");
@@ -4771,6 +4771,7 @@ let DynamicType = /* @__PURE__ */ function(DynamicType$1) {
4771
4771
 
4772
4772
  //#endregion
4773
4773
  //#region src/index.ts
4774
+ const VERSION = "5.9.0";
4774
4775
  /**
4775
4776
  * @deprecated 请使用 createAmagiClient 替代
4776
4777
  */
@@ -4785,6 +4786,12 @@ function CreateAmagiApp(options = {}) {
4785
4786
  if (!(this instanceof CreateAmagiApp)) return createAmagiClient(options);
4786
4787
  return createAmagiClient(options);
4787
4788
  }
4789
+ Object.defineProperty(CreateAmagiApp, "version", {
4790
+ value: VERSION,
4791
+ writable: false,
4792
+ enumerable: true,
4793
+ configurable: false
4794
+ });
4788
4795
  CreateAmagiApp.douyin = douyinUtils;
4789
4796
  CreateAmagiApp.bilibili = bilibiliUtils;
4790
4797
  CreateAmagiApp.kuaishou = kuaishouUtils;
@@ -22411,6 +22411,8 @@ declare const amagiClient: typeof createAmagiClient;
22411
22411
  type AmagiConstructor = {
22412
22412
  new (options?: Options): ReturnType<typeof createAmagiClient>;
22413
22413
  (options?: Options): ReturnType<typeof createAmagiClient>;
22414
+ /** 当前版本号 */
22415
+ readonly version: string;
22414
22416
  /** 抖音相关功能模块 (工具集) */
22415
22417
  douyin: typeof douyinUtils;
22416
22418
  /** B站相关功能模块 (工具集) */
@@ -22411,6 +22411,8 @@ declare const amagiClient: typeof createAmagiClient;
22411
22411
  type AmagiConstructor = {
22412
22412
  new (options?: Options): ReturnType<typeof createAmagiClient>;
22413
22413
  (options?: Options): ReturnType<typeof createAmagiClient>;
22414
+ /** 当前版本号 */
22415
+ readonly version: string;
22414
22416
  /** 抖音相关功能模块 (工具集) */
22415
22417
  douyin: typeof douyinUtils;
22416
22418
  /** B站相关功能模块 (工具集) */
@@ -4761,6 +4761,7 @@ let DynamicType = /* @__PURE__ */ function(DynamicType$1) {
4761
4761
 
4762
4762
  //#endregion
4763
4763
  //#region src/index.ts
4764
+ const VERSION = "5.9.0";
4764
4765
  /**
4765
4766
  * @deprecated 请使用 createAmagiClient 替代
4766
4767
  */
@@ -4775,6 +4776,12 @@ function CreateAmagiApp(options = {}) {
4775
4776
  if (!(this instanceof CreateAmagiApp)) return createAmagiClient(options);
4776
4777
  return createAmagiClient(options);
4777
4778
  }
4779
+ Object.defineProperty(CreateAmagiApp, "version", {
4780
+ value: VERSION,
4781
+ writable: false,
4782
+ enumerable: true,
4783
+ configurable: false
4784
+ });
4778
4785
  CreateAmagiApp.douyin = douyinUtils;
4779
4786
  CreateAmagiApp.bilibili = bilibiliUtils;
4780
4787
  CreateAmagiApp.kuaishou = kuaishouUtils;
@@ -1,4 +1,4 @@
1
- const require_chunk = require('../chunk-CUT6urMc.cjs');
1
+ const require_chunk = require('../chunk-CbDLau6x.cjs');
2
2
  let axios = require("axios");
3
3
  axios = require_chunk.__toESM(axios);
4
4
 
@@ -1,4 +1,4 @@
1
- const require_chunk = require('../chunk-CUT6urMc.cjs');
1
+ const require_chunk = require('../chunk-CbDLau6x.cjs');
2
2
  let express = require("express");
3
3
  express = require_chunk.__toESM(express);
4
4
 
@@ -1,4 +1,4 @@
1
- const require_chunk = require('../chunk-CUT6urMc.cjs');
1
+ const require_chunk = require('../chunk-CbDLau6x.cjs');
2
2
  let log4js = require("log4js");
3
3
  log4js = require_chunk.__toESM(log4js);
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikenxuan/amagi",
3
- "version": "5.8.1",
3
+ "version": "5.9.0",
4
4
  "description": "抖音、B站的 web 端相关数据接口基于 Node.js 的实现",
5
5
  "keywords": [
6
6
  "douyin",