@rainbow-o23/n3 1.0.38 → 1.0.39

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.
package/index.cjs CHANGED
@@ -702,12 +702,7 @@ class AbstractFragmentaryPipelineStep extends n1.AbstractPipelineStep {
702
702
  }
703
703
  catch (e) {
704
704
  const result = await this.handleError(fragment, request, e);
705
- try {
706
- return this.setToOutput(result, request);
707
- }
708
- catch (e) {
709
- return (await this.handleError(fragment, request, e));
710
- }
705
+ return this.setToOutput(result, request);
711
706
  }
712
707
  }
713
708
  async perform(request) {
package/index.js CHANGED
@@ -700,12 +700,7 @@ class AbstractFragmentaryPipelineStep extends AbstractPipelineStep {
700
700
  }
701
701
  catch (e) {
702
702
  const result = await this.handleError(fragment, request, e);
703
- try {
704
- return this.setToOutput(result, request);
705
- }
706
- catch (e) {
707
- return (await this.handleError(fragment, request, e));
708
- }
703
+ return this.setToOutput(result, request);
709
704
  }
710
705
  }
711
706
  async perform(request) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainbow-o23/n3",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "o23 pipelines",
5
5
  "main": "index.cjs",
6
6
  "module": "index.js",
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/InsureMO/rainbow-o23/issues"
22
22
  },
23
23
  "dependencies": {
24
- "@rainbow-o23/n1": "1.0.38",
24
+ "@rainbow-o23/n1": "1.0.39",
25
25
  "node-fetch": "2.6.7",
26
26
  "typeorm": "^0.3.17"
27
27
  },
@@ -365,14 +365,7 @@ export abstract class AbstractFragmentaryPipelineStep<In = PipelineStepPayload,
365
365
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
366
366
  } catch (e: any) {
367
367
  const result = await this.handleError(fragment, request, e);
368
- try {
369
- return this.setToOutput(result, request);
370
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
371
- } catch (e: any) {
372
- // since exception raised during set to output,
373
- // therefore never call this function on error handling
374
- return (await this.handleError(fragment, request, e)) as PipelineStepData<Out>;
375
- }
368
+ return this.setToOutput(result, request);
376
369
  }
377
370
  }
378
371
 
@@ -36,7 +36,7 @@ describe('TypeORM SQL Autonomous Suite', () => {
36
36
  await new TypeOrmDataSourceHelper(config).create({
37
37
  'TEST': [TestTable]
38
38
  });
39
- const repo = (await TypeOrmDataSourceManager.findDataSource('TEST')).getDataSource().getRepository(TestTable);
39
+ const repo = (await TypeOrmDataSourceManager.findDataSource('TEST', config)).getDataSource().getRepository(TestTable);
40
40
  await repo.insert({id: 1, content: 'hello world!'});
41
41
  await repo.insert({id: 2, content: 'good-bye world!'});
42
42
  });
@@ -28,7 +28,7 @@ describe('TypeORM Entity Suite', () => {
28
28
  await new TypeOrmDataSourceHelper(config).create({
29
29
  'TEST': [TestTable]
30
30
  });
31
- const repo = (await TypeOrmDataSourceManager.findDataSource('TEST')).getDataSource().getRepository(TestTable);
31
+ const repo = (await TypeOrmDataSourceManager.findDataSource('TEST', config)).getDataSource().getRepository(TestTable);
32
32
  await repo.insert({id: 1, content: 'hello world!'});
33
33
  });
34
34