@effection/main
Advanced tools
Comparing version 2.0.0-beta.2 to 2.0.0-beta.3
# @effection/main | ||
## 2.0.0-beta.3 | ||
### Patch Changes | ||
- 248b0a6: label the main entry point for use in the debugger | ||
- Updated dependencies [5d95e6d] | ||
- Updated dependencies [9700b45] | ||
- @effection/core@2.0.0-beta.3 | ||
## 2.0.0-beta.2 | ||
@@ -4,0 +13,0 @@ |
@@ -22,3 +22,5 @@ "use strict"; | ||
window.addEventListener('unload', interrupt); | ||
return yield operation; | ||
return yield core_1.withLabels(operation, { | ||
name: (operation === null || operation === void 0 ? void 0 : operation.name) || 'entry point' | ||
}); | ||
} | ||
@@ -25,0 +27,0 @@ catch (error) { |
@@ -24,3 +24,5 @@ "use strict"; | ||
process.on('SIGTERM', interrupt); | ||
return yield operation; | ||
return yield core_1.withLabels(operation, { | ||
name: (operation === null || operation === void 0 ? void 0 : operation.name) || 'entry point' | ||
}); | ||
} | ||
@@ -27,0 +29,0 @@ catch (error) { |
{ | ||
"name": "@effection/main", | ||
"version": "2.0.0-beta.2", | ||
"version": "2.0.0-beta.3", | ||
"description": "Main entry point for Effection applications", | ||
@@ -24,3 +24,3 @@ "main": "dist/node.js", | ||
"dependencies": { | ||
"@effection/core": "2.0.0-beta.2", | ||
"@effection/core": "2.0.0-beta.3", | ||
"chalk": "^4.1.1", | ||
@@ -30,4 +30,4 @@ "stacktrace-parser": "^0.1.10" | ||
"devDependencies": { | ||
"@effection/mocha": "2.0.0-beta.2", | ||
"@effection/process": "2.0.0-beta.2", | ||
"@effection/mocha": "2.0.0-beta.3", | ||
"@effection/process": "2.0.0-beta.3", | ||
"@frontside/tsconfig": "^1.2.0", | ||
@@ -34,0 +34,0 @@ "@types/node": "^13.13.5", |
@@ -1,2 +0,2 @@ | ||
import { run, Task, Operation } from '@effection/core'; | ||
import { run, withLabels, Task, Operation } from '@effection/core'; | ||
import { isMainError } from './error'; | ||
@@ -11,3 +11,5 @@ | ||
window.addEventListener('unload', interrupt); | ||
return yield operation; | ||
return yield withLabels(operation, { | ||
name: operation?.name || 'entry point' | ||
}); | ||
} catch(error) { | ||
@@ -14,0 +16,0 @@ if(isMainError(error)) { |
@@ -1,2 +0,2 @@ | ||
import { run, Task, Operation } from '@effection/core'; | ||
import { run, withLabels, Task, Operation } from '@effection/core'; | ||
import { formatError } from './format-error-node'; | ||
@@ -13,3 +13,5 @@ import { isMainError } from './error'; | ||
process.on('SIGTERM', interrupt); | ||
return yield operation; | ||
return yield withLabels(operation, { | ||
name: operation?.name || 'entry point' | ||
}); | ||
} catch(error) { | ||
@@ -16,0 +18,0 @@ console.error(formatError(error)); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18256
305
+ Added@effection/core@2.0.0-beta.3(transitive)
- Removed@effection/core@2.0.0-beta.2(transitive)
Updated@effection/core@2.0.0-beta.3