ide-assi 0.131.0 → 0.133.0

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.
@@ -193515,25 +193515,26 @@ class IdeAi
193515
193515
  const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
193516
193516
  let params = [];
193517
193517
  let params1 = [];
193518
- files.forEach(async (file) => {
193518
+ files.forEach((file) => {
193519
193519
 
193520
+ /**
193520
193521
  params1.push({
193521
- "path": `/tmpl/${file}`,
193522
- "contents": await fetch(`/api/templates/${file}`).then(res => res.text()),
193523
- });
193522
+ path: `/tmpl/${file}`,
193523
+ contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
193524
+ }); */
193524
193525
 
193525
193526
  params.push({
193526
- "path": `aaa`,
193527
- "contents": "aa",
193527
+ path: `aaa`,
193528
+ contents: "aa",
193528
193529
  });
193529
193530
  });
193530
193531
 
193531
- console.log(JSON.stringify({"list":params}), JSON.stringify({"list":params1}));
193532
+ console.log(JSON.stringify({list:params}), JSON.stringify({list:params1}));
193532
193533
 
193533
193534
  await fetch(`/api/source/generateRealFile`, {
193534
193535
  method: "POST",
193535
193536
  headers: { "Content-Type": "application/json" },
193536
- body: JSON.stringify({"list":params})
193537
+ body: JSON.stringify({list:params})
193537
193538
  });
193538
193539
 
193539
193540
  return;
@@ -193511,25 +193511,26 @@ class IdeAi
193511
193511
  const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
193512
193512
  let params = [];
193513
193513
  let params1 = [];
193514
- files.forEach(async (file) => {
193514
+ files.forEach((file) => {
193515
193515
 
193516
+ /**
193516
193517
  params1.push({
193517
- "path": `/tmpl/${file}`,
193518
- "contents": await fetch(`/api/templates/${file}`).then(res => res.text()),
193519
- });
193518
+ path: `/tmpl/${file}`,
193519
+ contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
193520
+ }); */
193520
193521
 
193521
193522
  params.push({
193522
- "path": `aaa`,
193523
- "contents": "aa",
193523
+ path: `aaa`,
193524
+ contents: "aa",
193524
193525
  });
193525
193526
  });
193526
193527
 
193527
- console.log(JSON.stringify({"list":params}), JSON.stringify({"list":params1}));
193528
+ console.log(JSON.stringify({list:params}), JSON.stringify({list:params1}));
193528
193529
 
193529
193530
  await fetch(`/api/source/generateRealFile`, {
193530
193531
  method: "POST",
193531
193532
  headers: { "Content-Type": "application/json" },
193532
- body: JSON.stringify({"list":params})
193533
+ body: JSON.stringify({list:params})
193533
193534
  });
193534
193535
 
193535
193536
  return;
@@ -221,25 +221,26 @@ export class IdeAi
221
221
  const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
222
222
  let params = [];
223
223
  let params1 = [];
224
- files.forEach(async (file) => {
224
+ files.forEach((file) => {
225
225
 
226
+ /**
226
227
  params1.push({
227
- "path": `/tmpl/${file}`,
228
- "contents": await fetch(`/api/templates/${file}`).then(res => res.text()),
229
- });
228
+ path: `/tmpl/${file}`,
229
+ contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
230
+ }); */
230
231
 
231
232
  params.push({
232
- "path": `aaa`,
233
- "contents": "aa",
233
+ path: `aaa`,
234
+ contents: "aa",
234
235
  });
235
236
  });
236
237
 
237
- console.log(JSON.stringify({"list":params}), JSON.stringify({"list":params1}));
238
+ console.log(JSON.stringify({list:params}), JSON.stringify({list:params1}));
238
239
 
239
240
  await fetch(`/api/source/generateRealFile`, {
240
241
  method: "POST",
241
242
  headers: { "Content-Type": "application/json" },
242
- body: JSON.stringify({"list":params})
243
+ body: JSON.stringify({list:params})
243
244
  });
244
245
 
245
246
  return;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.131.0",
4
+ "version": "0.133.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -221,25 +221,26 @@ export class IdeAi
221
221
  const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
222
222
  let params = [];
223
223
  let params1 = [];
224
- files.forEach(async (file) => {
224
+ files.forEach((file) => {
225
225
 
226
+ /**
226
227
  params1.push({
227
- "path": `/tmpl/${file}`,
228
- "contents": await fetch(`/api/templates/${file}`).then(res => res.text()),
229
- });
228
+ path: `/tmpl/${file}`,
229
+ contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
230
+ }); */
230
231
 
231
232
  params.push({
232
- "path": `aaa`,
233
- "contents": "aa",
233
+ path: `aaa`,
234
+ contents: "aa",
234
235
  });
235
236
  });
236
237
 
237
- console.log(JSON.stringify({"list":params}), JSON.stringify({"list":params1}));
238
+ console.log(JSON.stringify({list:params}), JSON.stringify({list:params1}));
238
239
 
239
240
  await fetch(`/api/source/generateRealFile`, {
240
241
  method: "POST",
241
242
  headers: { "Content-Type": "application/json" },
242
- body: JSON.stringify({"list":params})
243
+ body: JSON.stringify({list:params})
243
244
  });
244
245
 
245
246
  return;