@wikicasa-dev/node-common 1.2.5 → 1.2.8

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/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { Cache, MODE } from "./src/Cache";
2
- export { CacheES } from "./src/CacheES";
3
- export * from "./src/CallPool";
4
- export * from "./src/common";
5
- export * from "./src/Console";
6
- export * from "./src/Crawler";
7
- export * from "./src/Pool";
8
- export * from "./src/utils";
1
+ export * from "./src/Cache.js";
2
+ export { CacheES } from "./src/CacheES.js";
3
+ export * from "./src/CallPool.js";
4
+ export * from "./src/common.js";
5
+ export * from "./src/Console.js";
6
+ export * from "./src/Crawler.js";
7
+ export * from "./src/Pool.js";
8
+ export * from "./src/utils.js";
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  // src/index.ts
2
- export { Cache, MODE } from "./src/Cache";
3
- export { CacheES } from "./src/CacheES";
4
- export * from "./src/CallPool";
5
- export * from "./src/common";
6
- export * from "./src/Console";
7
- export * from "./src/Crawler";
8
- export * from "./src/Pool";
9
- export * from "./src/utils";
2
+ export * from "./src/Cache.js";
3
+ export { CacheES } from "./src/CacheES.js";
4
+ export * from "./src/CallPool.js";
5
+ export * from "./src/common.js";
6
+ export * from "./src/Console.js";
7
+ export * from "./src/Crawler.js";
8
+ export * from "./src/Pool.js";
9
+ export * from "./src/utils.js";
@@ -1,4 +1,4 @@
1
- import { RedisClientOptions, RedisClientType, RedisDefaultModules, RedisFunctions, RedisModules, RedisScripts } from "redis";
1
+ import type { RedisClientOptions, RedisClientType, RedisDefaultModules, RedisFunctions, RedisModules, RedisScripts } from "redis";
2
2
  import { Buffer } from "node:buffer";
3
3
  export declare enum MODE {
4
4
  STRING = 0,
@@ -1,4 +1,5 @@
1
- import { Client, ClientOptions } from "@elastic/elasticsearch";
1
+ import { Client } from "@elastic/elasticsearch";
2
+ import type { ClientOptions } from "@elastic/elasticsearch";
2
3
  import { Buffer } from "node:buffer";
3
4
  export declare enum MODE {
4
5
  STRING = 0,
@@ -1,4 +1,4 @@
1
- import { AxiosRequestConfig, AxiosResponse } from "axios";
1
+ import type { AxiosRequestConfig, AxiosResponse } from "axios";
2
2
  export declare enum PROXY {
3
3
  NONE = 0,
4
4
  STATIC = 1,
@@ -50,6 +50,7 @@ export class CallPool {
50
50
  this.maxConcurrency = maxConcurrency;
51
51
  this.queue = [];
52
52
  this.activeCount = 0;
53
+ // @ts-ignore
53
54
  this.limiter = throttledQueue(limitCall, limitInterval, true);
54
55
  this.proxy = proxy;
55
56
  this.updatePrint();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/node-common",
3
- "version": "1.2.5",
3
+ "version": "1.2.8",
4
4
  "description": "Wikicasa node common",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,6 +27,7 @@
27
27
  "cacheable-lookup": "^7.0.0",
28
28
  "csv-parse": "^5.5.6",
29
29
  "geolib": "^3.3.4",
30
+ "glob": "^11.0.0",
30
31
  "https": "^1.0.0",
31
32
  "https-proxy-agent": "^7.0.5",
32
33
  "lodash": "^4.17.21",
@@ -41,7 +42,9 @@
41
42
  },
42
43
  "devDependencies": {
43
44
  "@types/lodash": "^4.17.10",
44
- "@types/random-useragent": "^0.3.3"
45
+ "@types/random-useragent": "^0.3.3",
46
+ "vite": "^5.4.8",
47
+ "vite-plugin-dts": "^4.2.3"
45
48
  },
46
49
  "scripts": {
47
50
  "lint": "eslint --quiet --fix ./",