@ikenxuan/amagi 5.6.2 → 5.7.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,19 +1,8 @@
1
- 'use strict';
1
+ const require_chunk = require('../chunk-CUT6urMc.cjs');
2
+ let axios = require("axios");
3
+ axios = require_chunk.__toESM(axios);
2
4
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var axios = require('axios');
6
-
7
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
-
9
- var axios__default = /*#__PURE__*/_interopDefault(axios);
10
-
11
-
12
-
13
- Object.defineProperty(exports, "default", {
14
- enumerable: true,
15
- get: function () { return axios__default.default; }
16
- });
5
+ module.exports = axios.default;
17
6
  Object.keys(axios).forEach(function (k) {
18
7
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
19
8
  enumerable: true,
@@ -1,2 +1,2 @@
1
- export * from 'axios';
2
- export { default } from 'axios';
1
+ export * from "axios";
2
+ export { axios_default as default };
@@ -1,2 +1,5 @@
1
- export * from 'axios';
2
- export { default } from 'axios';
1
+ import axios_default from "axios";
2
+
3
+ export * from "axios"
4
+
5
+ export { axios_default as default };
@@ -1,12 +1,9 @@
1
- 'use strict';
2
-
3
- var chalk = require('chalk');
4
-
5
1
 
6
2
 
3
+ var chalk = require("chalk");
7
4
  Object.keys(chalk).forEach(function (k) {
8
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
- enumerable: true,
10
- get: function () { return chalk[k]; }
11
- });
5
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: function () { return chalk[k]; }
8
+ });
12
9
  });
@@ -1 +1 @@
1
- export * from 'chalk';
1
+ export * from "chalk";
@@ -1 +1,3 @@
1
- export * from 'chalk';
1
+ export * from "chalk"
2
+
3
+ export { };
@@ -1,11 +1,5 @@
1
- 'use strict';
1
+ const require_chunk = require('../chunk-CUT6urMc.cjs');
2
+ let express = require("express");
3
+ express = require_chunk.__toESM(express);
2
4
 
3
- var express = require('express');
4
-
5
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
6
-
7
- var express__default = /*#__PURE__*/_interopDefault(express);
8
-
9
-
10
-
11
- module.exports = express__default.default;
5
+ module.exports = express.default;
@@ -1 +1 @@
1
- export { Application, CookieOptions, Errback, ErrorRequestHandler, Express, Handler, IRoute, IRouter, IRouterHandler, IRouterMatcher, Locals, MediaType, NextFunction, Request, RequestHandler, RequestParamHandler, Response, RouterOptions, Send, default } from 'express';
1
+ export { type Application, type CookieOptions, type Errback, type ErrorRequestHandler, type Express, type Handler, type IRoute, type IRouter, type IRouterHandler, type IRouterMatcher, type Locals, type MediaType, type NextFunction, type Request, type RequestHandler, type RequestParamHandler, type Response, type RouterOptions, type Send, express_default as default };
@@ -1 +1,3 @@
1
- export { default } from 'express';
1
+ import express_default from "express";
2
+
3
+ export { express_default as default };
@@ -1,19 +1,8 @@
1
- 'use strict';
1
+ const require_chunk = require('../chunk-CUT6urMc.cjs');
2
+ let log4js = require("log4js");
3
+ log4js = require_chunk.__toESM(log4js);
2
4
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var log4js = require('log4js');
6
-
7
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
-
9
- var log4js__default = /*#__PURE__*/_interopDefault(log4js);
10
-
11
-
12
-
13
- Object.defineProperty(exports, "default", {
14
- enumerable: true,
15
- get: function () { return log4js__default.default; }
16
- });
5
+ module.exports = log4js.default;
17
6
  Object.keys(log4js).forEach(function (k) {
18
7
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
19
8
  enumerable: true,
@@ -1,2 +1,2 @@
1
- export * from 'log4js';
2
- export { default } from 'log4js';
1
+ export * from "log4js";
2
+ export { log4js_default as default };
@@ -1,2 +1,5 @@
1
- export * from 'log4js';
2
- export { default } from 'log4js';
1
+ import log4js_default from "log4js";
2
+
3
+ export * from "log4js"
4
+
5
+ export { log4js_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikenxuan/amagi",
3
- "version": "5.6.2",
3
+ "version": "5.7.0",
4
4
  "description": "抖音、B站的 web 端相关数据接口基于 Node.js 的实现",
5
5
  "keywords": [
6
6
  "douyin",
@@ -21,8 +21,13 @@
21
21
  "exports": {
22
22
  ".": {
23
23
  "types": "./dist/default/index.d.ts",
24
- "import": "./dist/default/esm/index.mjs",
25
- "require": "./dist/default/cjs/index.cjs"
24
+ "node": {
25
+ "import": "./dist/default/index.js",
26
+ "require": "./dist/default/index.cjs"
27
+ },
28
+ "module": "./dist/default/index.js",
29
+ "import": "./dist/default/index.js",
30
+ "require": "./dist/default/index.cjs"
26
31
  },
27
32
  "./express": {
28
33
  "types": "./dist/exports/express.d.ts",
@@ -55,9 +60,7 @@
55
60
  "README.md"
56
61
  ],
57
62
  "scripts": {
58
- "build": "cross-env BUILD_TARGET=main tsup --config tsup.config.ts && cross-env BUILD_TARGET=exports tsup --config tsup.config.ts && node ci/module.js",
59
- "build:main": "cross-env BUILD_TARGET=main tsup --config tsup.config.ts",
60
- "build:exports": "cross-env BUILD_TARGET=exports tsup --config tsup.config.ts",
63
+ "build": "tsdown && node ci/module.js",
61
64
  "clean": "npm ci/pr.js clean",
62
65
  "dev": "cross-env LOG_LEVEL=debug tsx watch src/dev.ts",
63
66
  "dev:js": "node src/dev.js",
@@ -71,7 +74,7 @@
71
74
  },
72
75
  "dependencies": {
73
76
  "@ikenxuan/xhshow-ts": "^1.0.0",
74
- "axios": "npm:@karinjs/axios@^1.2.0",
77
+ "axios": "^1.12.2",
75
78
  "chalk": "5.6.2",
76
79
  "express": "npm:@karinjs/express@^1.0.3",
77
80
  "log4js": "npm:@karinjs/log4js@1.1.4",