soonjs 0.0.10 → 0.0.12

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5426,7 +5426,7 @@ function lK(e) {
5426
5426
  + '\\n };';
5427
5427
 
5428
5428
  const serviecsImport = exportedServices.filter(v => v.services.length).map(v => \`import { \${v.services.map(vv => \`\${vv.key} as \${vv.importName}\`).join(', ')} } from '\${v.importPath}';\`).join('\\n');
5429
- const servicesContent = exportedServices.filter(v => v.services.length).map(v => v.services.map(vv => \` '\${vv.serviceName}' : ReturnRealType<typeof \${vv.importName}>;\`)).join('\\n');
5429
+ const servicesContent = exportedServices.filter(v => v.services.length).map(v => v.services.map(vv => \` '\${vv.serviceName}' : ReturnRealType<typeof \${vv.importName}>;\`).join('\\n')).join('\\n');
5430
5430
  const servicesType = \`
5431
5431
  type services = {
5432
5432
  \` + servicesContent + '\\n };';
@@ -5435,7 +5435,7 @@ function lK(e) {
5435
5435
 
5436
5436
  /** server **/
5437
5437
  const autoInjectServiecsImport = autoInjectServices.filter(v => v.services.length).map(v => \`import { \${v.services.map(vv => \`\${vv.key} as \${vv.importName}\`).join(', ')} } from '\${v.importPath}';\`).join('\\n');
5438
- const autoInjectServicesContent = autoInjectServices.filter(v => v.services.length).map(v => v.services.map(vv => \` '\${vv.serviceName}' : ReturnRealType<typeof \${vv.importName}>;\`)).join('\\n');
5438
+ const autoInjectServicesContent = autoInjectServices.filter(v => v.services.length).map(v => v.services.map(vv => \` '\${vv.serviceName}' : ReturnRealType<typeof \${vv.importName}>;\`).join('\\n')).join('\\n');
5439
5439
  const contentServerDts = \`${K1}\`;
5440
5440
  const contentServerTypes = \`${q1}\`.replace('$$$services-imports$$$', autoInjectServiecsImport).replace('$$$services-content$$$', autoInjectServicesContent);
5441
5441
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soonjs",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",