namirasoft-sdk-generator 1.4.24 → 1.4.25

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.
@@ -388,7 +388,7 @@ class NPMBuilder extends BaseBuilder_1.BaseBuilder {
388
388
  let function_name = (_h = (_g = ns_sdkg === null || ns_sdkg === void 0 ? void 0 : ns_sdkg["Get"]) === null || _g === void 0 ? void 0 : _g.function) !== null && _h !== void 0 ? _h : "Get";
389
389
  let is_id_number = ((_m = (_l = (_k = (_j = ns_sdkg === null || ns_sdkg === void 0 ? void 0 : ns_sdkg["Get"]) === null || _j === void 0 ? void 0 : _j.parameters) === null || _k === void 0 ? void 0 : _k.id) === null || _l === void 0 ? void 0 : _l.type) !== null && _m !== void 0 ? _m : "string") === "number";
390
390
  ts.constructors.push(` let server = this.database.getServer();`);
391
- ts.constructors.push(` return await server.${tname}.${function_name}(${is_id_number ? "praseInt(id)" : "id"});`);
391
+ ts.constructors.push(` return await server.${tname}.${function_name}(${is_id_number ? "parseInt(id)" : "id"});`);
392
392
  }
393
393
  else {
394
394
  ts.constructors.push(` console.log(id);`);
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.24",
11
+ "version": "1.4.25",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/index.js",
@@ -388,7 +388,7 @@ export class NPMBuilder extends BaseBuilder
388
388
  let function_name = ns_sdkg?.["Get"]?.function ?? "Get";
389
389
  let is_id_number = (ns_sdkg?.["Get"]?.parameters?.id?.type ?? "string") === "number";
390
390
  ts.constructors.push(` let server = this.database.getServer();`);
391
- ts.constructors.push(` return await server.${tname}.${function_name}(${is_id_number ? "praseInt(id)" : "id"});`);
391
+ ts.constructors.push(` return await server.${tname}.${function_name}(${is_id_number ? "parseInt(id)" : "id"});`);
392
392
  }
393
393
  else
394
394
  {