@wecode-team/we0-cms 1.0.37 → 1.1.11
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/components/page-shadcn.d.ts +6 -1
- package/dist/index.css +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/request.d.ts +0 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wecode-team/we0-cms",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "A CMS component for React applications with shadcn/ui",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"README.md"
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "rollup -c --bundleConfigAsCjs",
|
|
23
|
+
"build": "rollup -c --bundleConfigAsCjs && node -e \"try { require('fs').unlinkSync('dist/request.d.ts'); } catch(e) {}\"",
|
|
24
24
|
"prepublishOnly": "npm run build",
|
|
25
25
|
"publish:public": "npm run build && NPM_CONFIG_USERCONFIG=$(node -e \"process.stdout.write(require('fs').existsSync('.npmrc.public.local') ? '.npmrc.public.local' : '.npmrc.public')\") npm publish --access public --ignore-scripts",
|
|
26
26
|
"publish:private": "npm run build && NPM_CONFIG_USERCONFIG=$(node -e \"process.stdout.write(require('fs').existsSync('.npmrc.private.local') ? '.npmrc.private.local' : '.npmrc.private')\") npm publish --access public --ignore-scripts",
|
package/dist/request.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CMS Request 网络请求工具
|
|
3
|
-
* 专用于CMS系统的独立请求实例
|
|
4
|
-
* 基于 axios 封装
|
|
5
|
-
*/
|
|
6
|
-
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
7
|
-
declare const request: {
|
|
8
|
-
get: (url: string, params?: any, config?: AxiosRequestConfig) => Promise<any>;
|
|
9
|
-
post: (url: string, data?: any, config?: AxiosRequestConfig) => Promise<any>;
|
|
10
|
-
put: (url: string, data?: any, config?: AxiosRequestConfig) => Promise<any>;
|
|
11
|
-
delete: (url: string, config?: AxiosRequestConfig) => Promise<any>;
|
|
12
|
-
instance: AxiosInstance;
|
|
13
|
-
};
|
|
14
|
-
export default request;
|