@zwa73/dev-utils 1.0.29 → 1.0.30
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/UtilDevTool.js +1 -1
- package/package.json +1 -1
- package/src/UtilDevTool.ts +1 -1
package/dist/UtilDevTool.js
CHANGED
@@ -138,7 +138,7 @@ var UtilDT;
|
|
138
138
|
* @param targetPath - 目标文件 默认为去除".macro"的同名文件
|
139
139
|
*/
|
140
140
|
async function $macro(regionId, codeText, targetPath) {
|
141
|
-
const loc =
|
141
|
+
const loc = utils_1.UtilFunc.getFuncLoc(2);
|
142
142
|
if (!loc) {
|
143
143
|
utils_1.SLogger.error(`UtilDT.$macro 未能找到函数位置`);
|
144
144
|
return;
|
package/package.json
CHANGED
package/src/UtilDevTool.ts
CHANGED
@@ -138,7 +138,7 @@ export async function batchNode(filepath:string|string[],opt?:BatchNodeOpt) {
|
|
138
138
|
* @param targetPath - 目标文件 默认为去除".macro"的同名文件
|
139
139
|
*/
|
140
140
|
export async function $macro(regionId:string,codeText:string,targetPath?:string){
|
141
|
-
const loc = getFuncLoc(2);
|
141
|
+
const loc = UtilFunc.getFuncLoc(2);
|
142
142
|
if(!loc){
|
143
143
|
SLogger.error(`UtilDT.$macro 未能找到函数位置`);
|
144
144
|
return
|