@advt-gpt-chart/package 3.1.7 → 3.1.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.
Binary file
@@ -1,5 +1,5 @@
1
1
  import { RawAxiosRequestHeaders } from 'axios';
2
- import { AppError, Host, InitConfig, ParseMethod, Protocol, RequestConfig } from './types';
2
+ import { AppError, Host, InitConfig, ParseMethod, Protocol, RequestConfig, RequestMeta } from './types';
3
3
  declare class backService {
4
4
  private instance;
5
5
  private abortControllers;
@@ -169,7 +169,7 @@ declare class backService {
169
169
  status: number | undefined;
170
170
  message: string;
171
171
  }>;
172
- cancelRequest(url?: string, method?: string, params?: Record<string, unknown>, data?: unknown): void;
172
+ cancelRequest(url?: string, method?: string, params?: Record<string, unknown>, data?: unknown, meta?: RequestMeta): void;
173
173
  cancelAllRequests(): void;
174
174
  }
175
175
  declare const service: backService;
@@ -26,4 +26,11 @@ export interface InitConfig {
26
26
  retry?: number;
27
27
  allowDuplicate?: boolean;
28
28
  }
29
- export type RequestConfig = AxiosRequestConfig & InitConfig;
29
+ export interface RequestMeta {
30
+ chartId?: string;
31
+ requestId?: string;
32
+ [key: string]: any;
33
+ }
34
+ export type RequestConfig = AxiosRequestConfig & InitConfig & {
35
+ meta?: RequestMeta;
36
+ };
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const version = "3.1.7";
1
+ declare const version = "3.1.8";
2
2
  export default version;
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "@advt-gpt-chart/package",
3
- "version": "3.1.7",
4
- "description": "ADVT GPT Chart - A React chart component library for GPT visualization",
5
- "type": "module",
6
- "main": "./dist/index.umd.js",
7
- "module": "./dist/index.es.js",
8
- "typings": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "import": {
12
- "types": "./dist/index.d.ts",
13
- "default": "./dist/index.es.js"
14
- },
15
- "require": {
16
- "types": "./dist/index.d.ts",
17
- "default": "./dist/index.umd.js"
18
- }
19
- },
20
- "./package.json": "./package.json"
21
- },
22
- "files": [
23
- "dist"
24
- ],
25
- "scripts": {
26
- "build": "cd .. && pnpm run build:chart",
27
- "publish-local": "cd .. && pnpm run publish-local",
28
- "publish-local-update": "cd .. && pnpm run publish-local-update",
29
- "publish-npm": "npm publish --registry https://registry.npmjs.org/ --access public"
30
- },
31
- "keywords": [
32
- "react",
33
- "chart",
34
- "gpt",
35
- "visualization",
36
- "antd",
37
- "vchart"
38
- ],
39
- "author": "",
40
- "license": "MIT",
41
- "peerDependencies": {
42
- "antd": ">=4.0.0",
43
- "react": ">=17.0.0 <19.0.0",
44
- "react-dom": ">=17.0.0 <19.0.0"
45
- }
1
+ {
2
+ "name": "@advt-gpt-chart/package",
3
+ "version": "3.1.8",
4
+ "description": "ADVT GPT Chart - A React chart component library for GPT visualization",
5
+ "type": "module",
6
+ "main": "./dist/index.umd.js",
7
+ "module": "./dist/index.es.js",
8
+ "typings": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.es.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.umd.js"
18
+ }
19
+ },
20
+ "./package.json": "./package.json"
21
+ },
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "scripts": {
26
+ "build": "cd .. && pnpm run build:chart",
27
+ "publish-local": "cd .. && pnpm run publish-local",
28
+ "publish-local-update": "cd .. && pnpm run publish-local-update",
29
+ "publish-npm": "npm publish --registry https://registry.npmjs.org/ --access public"
30
+ },
31
+ "keywords": [
32
+ "react",
33
+ "chart",
34
+ "gpt",
35
+ "visualization",
36
+ "antd",
37
+ "vchart"
38
+ ],
39
+ "author": "",
40
+ "license": "MIT",
41
+ "peerDependencies": {
42
+ "antd": ">=4.0.0",
43
+ "react": ">=17.0.0 <19.0.0",
44
+ "react-dom": ">=17.0.0 <19.0.0"
45
+ }
46
46
  }