feima-shortcuts 0.2.0 → 0.2.2

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.
@@ -0,0 +1,5 @@
1
+ 4545464ef6bcdd681ab9037a90553a6b60f6951f15f77488c6f3ae6467a20111
2
+ 30a05b3d1a073d30b336ed5538f1a2dbb4b60716820ea77a2e84f2ff384106cc
3
+ d6929389b0fd08b3dc53b7f2c61cf3e3d07221ae234504f5c10c8266cc96e99d
4
+ b6dc8beb1e490a53f8047f588b6fcb276f699964d0c120007976e0a450409b6d
5
+ b2c46a667bb94a6c8c1c32aeb9aaea027b3ad8f835a83735123dac106e73aca6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feima-shortcuts",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "快捷指令",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -23,4 +23,4 @@
23
23
  "uuid": "^9.0.0"
24
24
  },
25
25
  "packageManager": "pnpm@10.6.3+sha512.bb45e34d50a9a76e858a95837301bfb6bd6d35aea2c5d52094fa497a467c43f5c440103ce2511e9e0a2f89c3d6071baac3358fc68ac6fb75e2ceb3d2736065e6"
26
- }
26
+ }
@@ -1,10 +1,10 @@
1
1
  const fs = require("fs");
2
2
  const { makeDir } = require("../../utils/makeDir");
3
3
 
4
- const fileName = "index.js";
4
+ const fileName = "index.ts";
5
5
 
6
6
  const postTemplat = (apiPath, functionName) => {
7
- return `export const ${functionName} = (options) => {
7
+ return `export const ${functionName}: any = (options: any) => {
8
8
  const isFormData = options?.data instanceof FormData;
9
9
 
10
10
  const data = isFormData