igniteui-live-editing 3.5.0 → 3.5.1

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.
@@ -137,7 +137,7 @@ class SampleAssetsGenerator {
137
137
  this._shortenComponentPath(config, appModuleFile);
138
138
  sampleFiles.push(appModuleFile);
139
139
  */
140
- this._modifyImports(sampleFiles.filter(x => x.fileExtension === 'ts' && x.isMain), additionalFiles);
140
+ this._modifyImports(sampleFiles.filter(x => x.fileExtension === 'ts' || x.path.endsWith('.ts')), additionalFiles);
141
141
  sampleFiles.push(new LiveEditingFile_1.LiveEditingFile(LiveEditingFile_1.SAMPLE_APP_FOLDER + "app.component.ts", this._getAppComponentTs(config, sampleFiles)));
142
142
  sampleFiles.push(new LiveEditingFile_1.LiveEditingFile(LiveEditingFile_1.SAMPLE_APP_FOLDER + "app.component.html", this._getAppComponentHtml(componentTsContent, config.appConfig.routesConfig)));
143
143
  sampleFiles.push(new LiveEditingFile_1.LiveEditingFile(`${LiveEditingFile_1.SAMPLE_APP_FOLDER}app.config.ts`, this._getAppConfig(config, configImports, configAdditionalImports), false, 'ts'));
@@ -285,13 +285,12 @@ class SampleAssetsGenerator {
285
285
  }
286
286
  if (appConfig.providers && appConfig.providers.length) {
287
287
  appConfig.providers.forEach(provider => {
288
+ const importName = provider.provider.replace(/\(.*\)$/g, "");
288
289
  if (importMap.has(provider.import)) {
289
- importMap.get(provider.import).push(provider.provider.replace(/\(/g, "").replace(/\)/g, ""));
290
+ importMap.get(provider.import).push(importName);
290
291
  }
291
292
  else {
292
- importMap.set(provider.import, [
293
- provider.provider.replace(/\(/g, "").replace(/\)/g, "")
294
- ]);
293
+ importMap.set(provider.import, [importName]);
295
294
  }
296
295
  });
297
296
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-live-editing",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "This feature helps us to provide each sample as a separate application to external consumers.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",