@cbjwwwcode/common 0.0.1 → 0.0.3
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/es/api.mjs +1 -1
- package/dist/es/index.d.mts +2 -2
- package/dist/es/index.mjs +2 -2
- package/dist/es/window.d.mts +3 -2
- package/dist/es/window.mjs +3 -3
- package/package.json +5 -9
- package/src/api.ts +1 -4
package/dist/es/api.mjs
CHANGED
|
@@ -23,4 +23,4 @@ const $http = setupRequest(window.appConfig.baseApi || "admin", { alovaOptions:
|
|
|
23
23
|
}
|
|
24
24
|
} });
|
|
25
25
|
//#endregion
|
|
26
|
-
export { $http,
|
|
26
|
+
export { $http, createClientTokenAuthentication, setupRequest, useCaptcha, useRequest, useUploader };
|
package/dist/es/index.d.mts
CHANGED
|
@@ -11,11 +11,11 @@ import { VeeValidate } from "./vee-validate.mjs";
|
|
|
11
11
|
import { Vue } from "./vue.mjs";
|
|
12
12
|
import { VueRouter } from "./vue-router.mjs";
|
|
13
13
|
import { VueUse, createGlobalState, createReusableTemplate, onClickOutside, useClipboard, useScriptTag, useStorage, useStyleTag, useToggle } from "./vueuse.mjs";
|
|
14
|
-
import { $mitt, isModuleObject, registerWindow } from "./window.mjs";
|
|
14
|
+
import { $mitt, axios, isModuleObject, registerWindow } from "./window.mjs";
|
|
15
15
|
import { zod } from "./zod.mjs";
|
|
16
16
|
import { JsonNodeProps, setupJsonNode, useJsonNode } from "./vtj/node.mjs";
|
|
17
17
|
import { BlockSchema, ContextMode, initProvider, useGlobalProvider, vtjSymbol } from "./vtj/provider.mjs";
|
|
18
18
|
import "./vtj/index.mjs";
|
|
19
19
|
import hljs from "./lowlight/hljs.mjs";
|
|
20
20
|
import { Lowlight, VueLowlight, highlightLanguages, lowlight } from "./lowlight/index.mjs";
|
|
21
|
-
export { $http, $mitt, AlovaAxiosRequestConfig, ApiConfig, type BlockSchema, ContextMode, CryptoJS, IDBKeyValReturn, IDBOptions, JsonNodeProps, Lowlight, type NProgress, type NProgressOptions, type Toast, ToastApi, type ToastOptions, Toolkit, type UseStore, VeeValidate, Vue, VueLowlight, VueRouter, VueUse, createClientTokenAuthentication, createFunction, createGlobalState, createNaiveStore, createReusableTemplate, dayjs, determineTextColor, hasProperty, highlightLanguages, hljs, idb, initProvider, isComponentRegistered, isHttpUrl, isModuleObject, isNotNil, isPromise, isStringNumber, keepProps, loadJsStore, loadRemoteModule, loaderScript, lowlight, makeRawComponent, makeUuid, makeVueId, md5, mergeOmitBy, mergePropsOmitBy, mergeUrlWithParams, onClickOutside, randomId, registerWindow, setDayjsLocale, setupJsonNode, setupRequest, setupToast, toast, transformPx, useCaptcha, useClipboard, useGlobalProvider, useIdb, useJsonNode, useProgress, useRequest, useScriptTag, useStorage, useStyleLink, useStyleTag, useToggle, useUploader, vtjSymbol, zod };
|
|
21
|
+
export { $http, $mitt, AlovaAxiosRequestConfig, ApiConfig, type BlockSchema, ContextMode, CryptoJS, IDBKeyValReturn, IDBOptions, JsonNodeProps, Lowlight, type NProgress, type NProgressOptions, type Toast, ToastApi, type ToastOptions, Toolkit, type UseStore, VeeValidate, Vue, VueLowlight, VueRouter, VueUse, axios, createClientTokenAuthentication, createFunction, createGlobalState, createNaiveStore, createReusableTemplate, dayjs, determineTextColor, hasProperty, highlightLanguages, hljs, idb, initProvider, isComponentRegistered, isHttpUrl, isModuleObject, isNotNil, isPromise, isStringNumber, keepProps, loadJsStore, loadRemoteModule, loaderScript, lowlight, makeRawComponent, makeUuid, makeVueId, md5, mergeOmitBy, mergePropsOmitBy, mergeUrlWithParams, onClickOutside, randomId, registerWindow, setDayjsLocale, setupJsonNode, setupRequest, setupToast, toast, transformPx, useCaptcha, useClipboard, useGlobalProvider, useIdb, useJsonNode, useProgress, useRequest, useScriptTag, useStorage, useStyleLink, useStyleTag, useToggle, useUploader, vtjSymbol, zod };
|
package/dist/es/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { VueUse, createGlobalState, createReusableTemplate, onClickOutside, useC
|
|
|
7
7
|
import { zod } from "./zod.mjs";
|
|
8
8
|
import hljs_default from "./lowlight/hljs.mjs";
|
|
9
9
|
import { VueLowlight, highlightLanguages, lowlight } from "./lowlight/index.mjs";
|
|
10
|
-
import { $mitt, isModuleObject, registerWindow } from "./window.mjs";
|
|
10
|
+
import { $mitt, axios, isModuleObject, registerWindow } from "./window.mjs";
|
|
11
11
|
import { dayjs, setDayjsLocale } from "./dayjs.mjs";
|
|
12
12
|
import { Toolkit, isNotNil, isPromise } from "./es-toolkit.mjs";
|
|
13
13
|
import { createNaiveStore, idb, loadJsStore, useIdb } from "./idb-keyval.mjs";
|
|
@@ -18,4 +18,4 @@ import { VeeValidate } from "./vee-validate.mjs";
|
|
|
18
18
|
import { ContextMode, initProvider, useGlobalProvider, vtjSymbol } from "./vtj/provider.mjs";
|
|
19
19
|
import { setupJsonNode, useJsonNode } from "./vtj/node.mjs";
|
|
20
20
|
import "./vtj/index.mjs";
|
|
21
|
-
export { $http, $mitt, ContextMode, CryptoJS, ToastApi, Toolkit, VeeValidate, Vue, VueLowlight, VueRouter, VueUse, createClientTokenAuthentication, createFunction, createGlobalState, createNaiveStore, createReusableTemplate, dayjs, determineTextColor, hasProperty, highlightLanguages, hljs_default as hljs, idb, initProvider, isComponentRegistered, isHttpUrl, isModuleObject, isNotNil, isPromise, isStringNumber, keepProps, loadJsStore, loadRemoteModule, loaderScript, lowlight, makeRawComponent, makeUuid, makeVueId, md5, mergeOmitBy, mergePropsOmitBy, mergeUrlWithParams, onClickOutside, randomId, registerWindow, setDayjsLocale, setupJsonNode, setupRequest, setupToast, toast, transformPx, useCaptcha, useClipboard, useGlobalProvider, useIdb, useJsonNode, useProgress, useRequest, useScriptTag, useStorage, useStyleLink, useStyleTag, useToggle, useUploader, vtjSymbol, zod };
|
|
21
|
+
export { $http, $mitt, ContextMode, CryptoJS, ToastApi, Toolkit, VeeValidate, Vue, VueLowlight, VueRouter, VueUse, axios, createClientTokenAuthentication, createFunction, createGlobalState, createNaiveStore, createReusableTemplate, dayjs, determineTextColor, hasProperty, highlightLanguages, hljs_default as hljs, idb, initProvider, isComponentRegistered, isHttpUrl, isModuleObject, isNotNil, isPromise, isStringNumber, keepProps, loadJsStore, loadRemoteModule, loaderScript, lowlight, makeRawComponent, makeUuid, makeVueId, md5, mergeOmitBy, mergePropsOmitBy, mergeUrlWithParams, onClickOutside, randomId, registerWindow, setDayjsLocale, setupJsonNode, setupRequest, setupToast, toast, transformPx, useCaptcha, useClipboard, useGlobalProvider, useIdb, useJsonNode, useProgress, useRequest, useScriptTag, useStorage, useStyleLink, useStyleTag, useToggle, useUploader, vtjSymbol, zod };
|
package/dist/es/window.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import "axios";
|
|
1
|
+
import axios$1 from "axios";
|
|
2
2
|
//#region src/window.d.ts
|
|
3
3
|
export declare const $mitt: import("mitt").Emitter<Record<import("mitt").EventType, unknown>>;
|
|
4
4
|
export declare function isModuleObject(value: unknown): value is Record<string, any>;
|
|
5
5
|
export declare function registerWindow<T extends any>(key: string, value: T): void;
|
|
6
|
-
//#endregion
|
|
6
|
+
//#endregion
|
|
7
|
+
export { axios$1 as axios };
|
package/dist/es/window.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { VueUse } from "./vueuse.mjs";
|
|
|
5
5
|
import { zod } from "./zod.mjs";
|
|
6
6
|
import hljs_default from "./lowlight/hljs.mjs";
|
|
7
7
|
import { VueLowlight } from "./lowlight/index.mjs";
|
|
8
|
-
import axios from "axios";
|
|
8
|
+
import axios$1 from "axios";
|
|
9
9
|
import { isPlainObject } from "es-toolkit/compat";
|
|
10
10
|
import mitt from "mitt";
|
|
11
11
|
//#region src/window.ts
|
|
@@ -30,10 +30,10 @@ registerWindow("zod", zod);
|
|
|
30
30
|
registerWindow("Vue", Vue);
|
|
31
31
|
registerWindow("VueUse", VueUse);
|
|
32
32
|
registerWindow("VueRouter", VueRouter);
|
|
33
|
-
registerWindow("axios", axios);
|
|
33
|
+
registerWindow("axios", axios$1);
|
|
34
34
|
registerWindow("CryptoJS", CryptoJS);
|
|
35
35
|
registerWindow("VueLowlight", VueLowlight);
|
|
36
36
|
registerWindow("hljs", hljs_default);
|
|
37
37
|
registerWindow("process", { env: { NODE_ENV: "production" } });
|
|
38
38
|
//#endregion
|
|
39
|
-
export { $mitt, axios, isModuleObject, registerWindow };
|
|
39
|
+
export { $mitt, axios$1 as axios, isModuleObject, registerWindow };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cbjwwwcode/common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "ISC",
|
|
@@ -8,10 +8,6 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsdown",
|
|
11
|
-
"release": "standard-version --header \"\"",
|
|
12
|
-
"release:major": "standard-version --release-as major",
|
|
13
|
-
"release:minor": "standard-version --release-as minor",
|
|
14
|
-
"release:patch": "standard-version --release-as patch",
|
|
15
11
|
"push": "npm publish --access public"
|
|
16
12
|
},
|
|
17
13
|
"files": [
|
|
@@ -47,15 +43,15 @@
|
|
|
47
43
|
"tsdown": "^0.23.0",
|
|
48
44
|
"typescript": "^6.0.3",
|
|
49
45
|
"unplugin-vue": "^7.2.0",
|
|
50
|
-
"vite": "
|
|
46
|
+
"vite": "8.3.0",
|
|
51
47
|
"vite-plugin-cp": "^8.0.1",
|
|
52
48
|
"vite-plugin-externals": "^0.6.2",
|
|
53
49
|
"vite-plugin-node-polyfills": "^0.28.0",
|
|
54
50
|
"vite-plugin-vue-devtools": "^8.2.1",
|
|
55
|
-
"vite-plus": "
|
|
51
|
+
"vite-plus": "^0.3.0"
|
|
56
52
|
},
|
|
57
53
|
"dependencies": {
|
|
58
|
-
"@alova/adapter-axios": "
|
|
54
|
+
"@alova/adapter-axios": "^2.0.20",
|
|
59
55
|
"@vtj/core": "^0.20.6",
|
|
60
56
|
"@vtj/parser": "^0.20.6",
|
|
61
57
|
"@vtj/renderer": "^0.20.6",
|
|
@@ -82,7 +78,7 @@
|
|
|
82
78
|
"vee-validate": "^4.15.1",
|
|
83
79
|
"vue": "3.6.0-rc.2",
|
|
84
80
|
"vue-demi": "^0.14.10",
|
|
85
|
-
"vue-router": "
|
|
81
|
+
"vue-router": "^5.3.1",
|
|
86
82
|
"vue3-toastify": "^0.2.9",
|
|
87
83
|
"zod": "^4.6.5"
|
|
88
84
|
}
|