@knotx/core 0.2.12 → 0.2.13

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/dist/index.cjs CHANGED
@@ -441,9 +441,12 @@ const _Runtime = class _Runtime {
441
441
  type,
442
442
  value: contextValue
443
443
  };
444
- const result = handler();
445
- this.currentContext = void 0;
446
- return result;
444
+ try {
445
+ const result = handler();
446
+ return result;
447
+ } finally {
448
+ this.currentContext = void 0;
449
+ }
447
450
  }
448
451
  /**
449
452
  * 值处理器
package/dist/index.js CHANGED
@@ -441,9 +441,12 @@ const _Runtime = class _Runtime {
441
441
  type,
442
442
  value: contextValue
443
443
  };
444
- const result = handler();
445
- this.currentContext = void 0;
446
- return result;
444
+ try {
445
+ const result = handler();
446
+ return result;
447
+ } finally {
448
+ this.currentContext = void 0;
449
+ }
447
450
  }
448
451
  /**
449
452
  * 值处理器
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/core",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "Core for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -46,14 +46,14 @@
46
46
  "jsonschema": "^1.5.0",
47
47
  "lodash-es": "^4.17.21",
48
48
  "rxjs": "^7.8.1",
49
- "@knotx/data": "0.2.11",
50
- "@knotx/utils": "0.2.11"
49
+ "@knotx/data": "0.2.12",
50
+ "@knotx/utils": "0.2.12"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/lodash-es": "^4.17.12",
54
- "@knotx/build-config": "0.2.11",
55
- "@knotx/eslint-config": "0.2.11",
56
- "@knotx/typescript-config": "0.2.11"
54
+ "@knotx/build-config": "0.2.12",
55
+ "@knotx/eslint-config": "0.2.12",
56
+ "@knotx/typescript-config": "0.2.12"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "unbuild",