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