@komaci/esm-generator 254.0.1 → 256.0.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.
@@ -577,8 +577,7 @@ function adg0(fct, ctx) {
577
577
  return adg(undefined, {}, [{
578
578
  t: "ErrorFunction",
579
579
  c: {
580
- "error": "something bad happened",
581
- "stack": "full stack normally"
580
+ "error": "something bad happened"
582
581
  }
583
582
  }], (fct, ctx) => {
584
583
  return [];
@@ -587,7 +586,6 @@ function adg0(fct, ctx) {
587
586
 
588
587
  export default registerAdgFunction(adg0);`;
589
588
  const testError = new Error('something bad happened');
590
- testError.stack = 'full stack normally';
591
589
  const res = (0, functionAstGeneration_1.produceErrorAdgFunction)((0, common_shared_1.initModuleMetadataObject)(), testError);
592
590
  expect((0, generator_1.default)((0, types_1.file)(res)).code).toBe(expected);
593
591
  });
@@ -49,7 +49,7 @@ describe('Handling errors that throw inside a call to generateKomaciModule', ()
49
49
  ' return adg(undefined, {}, [{\n' +
50
50
  ' t: "ErrorFunction",\n' +
51
51
  ' c: {\n' +
52
- ' "error": "[komaci esm-generator] unrecognized input type",\n';
52
+ ' "error": "[komaci esm-generator] unrecognized input type"\n';
53
53
  const expectedModuleSecondHalf = ' return [];\n' +
54
54
  ' }, []);\n' +
55
55
  '}\n' +
@@ -499,12 +499,6 @@ function produceErrorAdgFunction(moduleMetadata, error) {
499
499
  : common_shared_1.ERROR_PREFIX + 'Something that is not an error was thrown',
500
500
  },
501
501
  };
502
- if (error instanceof Error && error.stack) {
503
- functionValues.stack = {
504
- type: 'PrimitiveValue',
505
- value: error.stack,
506
- };
507
- }
508
502
  const registerAdgImport = t.importDeclaration([t.importDefaultSpecifier(t.identifier('registerAdgFunction'))], t.stringLiteral('komaci/registerAdgFunction'));
509
503
  const adg = (0, common_shared_1.initAdgMetadataObject)('adg0');
510
504
  adg.compositions = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@komaci/esm-generator",
3
- "version": "254.0.1",
3
+ "version": "256.0.1",
4
4
  "description": "Komaci generator for ADG ES modules",
5
5
  "homepage": "https://komaci.dev/",
6
6
  "repository": {
@@ -29,11 +29,11 @@
29
29
  "@babel/core": "^7.9.0",
30
30
  "@babel/generator": "^7.9.0",
31
31
  "@babel/types": "^7.9.0",
32
- "@komaci/common-shared": "254.0.1",
33
- "@komaci/static-analyzer": "254.0.1"
32
+ "@komaci/common-shared": "256.0.1",
33
+ "@komaci/static-analyzer": "256.0.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@komaci/types": "254.0.1",
36
+ "@komaci/types": "256.0.1",
37
37
  "@lwc-platform/sfdc-lwc-compiler": "248.3.9-3.5.0",
38
38
  "@lwc/metadata": "3.5.0-0"
39
39
  }