@vtj/utils 0.3.8-alpha.2 → 0.3.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/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@vtj/utils",
3
3
  "private": false,
4
- "version": "0.3.8-alpha.2",
4
+ "version": "0.3.8",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "setup": "npm install --registry=https://registry.npmmirror.com",
7
+ "setup": "pnpm install --registry=https://registry.npmmirror.com",
8
8
  "dev": "cross-env ENV_TYPE=dev vite",
9
- "build": "vue-tsc && vite build && npm run build:cdn",
9
+ "build": "vue-tsc && vite build && pnpm run build:cdn",
10
10
  "build:cdn": "vue-tsc && cross-env CDN=true vite build",
11
11
  "test:unit": "vitest --environment jsdom",
12
12
  "coverage": "vitest run --coverage --environment jsdom"
13
13
  },
14
14
  "devDependencies": {
15
- "@vtj/cli": "^0.3.7-alpha.2",
16
- "@vtj/deps": "^0.3.8-alpha.2"
15
+ "@vtj/cli": "0.3.7",
16
+ "@vtj/deps": "0.3.8"
17
17
  },
18
18
  "files": [
19
19
  "lib",
@@ -30,7 +30,7 @@
30
30
  "require": "./lib/index.js"
31
31
  }
32
32
  },
33
- "gitHead": "8c53e8cc5a097657fd9b49ff5e84b913c6fb275d",
33
+ "gitHead": "40bd742ab4b723f7461871d4a2f9924eb450cf99",
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  }
package/types/axios.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { AxiosInstance } from 'axios';
1
+ import { AxiosInstance } from 'axios';
2
2
  export * from 'axios';
3
3
  declare const instance: AxiosInstance;
4
4
  export default instance;
@@ -20,7 +20,7 @@ export interface ApiSettings<OriginResponse, ValidSuccess> {
20
20
  validate?: (res: AxiosResponse) => boolean;
21
21
  failMessage?: boolean;
22
22
  showError?: (msg: string, e: AxiosError | AxiosResponse<ApiResponse>) => void;
23
- injectHeaders?: (config: ApiRequestConfig) => Record<string, string>;
23
+ headers?: Record<string, string> | ((config: ApiRequestConfig) => Record<string, string>);
24
24
  defaults?: Record<string, any>;
25
25
  trim?: boolean;
26
26
  picked?: boolean;
package/types/util.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { upperFirst, camelCase } from 'lodash-es';
2
- export { get, set, isPlainObject, cloneDeep, merge, debounce, throttle, isEqual, template } from 'lodash-es';
2
+ export { get, set, isPlainObject, cloneDeep, merge, debounce, throttle, isEqual, template, lowerFirst, kebabCase } from 'lodash-es';
3
3
  export { upperFirst, camelCase };
4
4
  export declare function uid(): string;
5
5
  export declare function uuid(split?: boolean): string;