@gadmin2n/schematics 0.0.132 → 0.0.133

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.
@@ -1,6 +1,6 @@
1
1
  import * as jwt from 'jsonwebtoken';
2
- import * as request from 'request';
3
2
  import { URLSearchParams } from 'url';
3
+ const request = require('request'); //改成import,SWC编译会将其包装为命名空间对象导致调用报错
4
4
 
5
5
  export type TaiHuTokenInfo = {
6
6
  access_token: string;
@@ -13,7 +13,9 @@ module.exports = {
13
13
  // NODE_OPTIONS 保留原 package.json 里的 4GB 上限设置。
14
14
  node_args: '--max-old-space-size=4096',
15
15
  env: {
16
- ...(process.env.VITE_BRANCH_OWNER ? { VITE_BRANCH_OWNER: process.env.VITE_BRANCH_OWNER } : {}),
16
+ ...(process.env.VITE_BRANCH_OWNER
17
+ ? { VITE_BRANCH_OWNER: process.env.VITE_BRANCH_OWNER }
18
+ : {}),
17
19
  },
18
20
  },
19
21
  ],
@@ -81,6 +81,7 @@
81
81
  "dev": "NODE_OPTIONS='--max-old-space-size=4096' vite --port 3000",
82
82
  "build": "tsc && vite build",
83
83
  "preview": "vite preview",
84
+ "typecheck": "tsc --noEmit",
84
85
  "format": "prettier --write \"src/**/*.{ts,tsx,js,jsx}\"",
85
86
  "lint": "eslint \"src/**/*.{ts,tsx}\"",
86
87
  "prepare": "cd .. && husky install || true"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gadmin2n/schematics",
3
- "version": "0.0.132",
3
+ "version": "0.0.133",
4
4
  "description": "Gadmin - modern, fast, powerful node.js web framework (@schematics)",
5
5
  "main": "dist/index.js",
6
6
  "files": [