@hotmeshio/hotmesh 0.1.2 → 0.1.3

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/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  HotMesh transforms Redis into an Orchestration Engine.
5
5
 
6
- *Write functions in your own preferred style, and let Redis govern their execution, reliably and durably.*
6
+ *Write functions in your own style, and let Redis govern their execution, reliably and durably.*
7
7
 
8
8
  ## Install
9
9
  [![npm version](https://badge.fury.io/js/%40hotmeshio%2Fhotmesh.svg)](https://badge.fury.io/js/%40hotmeshio%2Fhotmesh)
@@ -13,7 +13,7 @@ npm install @hotmeshio/hotmesh
13
13
  ```
14
14
 
15
15
  ## Understanding HotMesh
16
- HotMesh inverts the relationship to Redis: those functions that once used Redis as a cache, are instead *cached and governed* by Redis. Consider the following. It's a typical microservices network, with a tangled mess of services and functions. There's important business logic in there (functions *A*, *B* and *C* are critical!), but they're hard to find and access.
16
+ HotMesh inverts the relationship to Redis: those functions that once used Redis as a cache, are instead *cached and governed* by Redis. Consider the following. It's a typical microservices network, with a tangled mess of services and functions. There's important business logic in there (functions *A*, *B* and *C* are critical), but it's hard to find and access.
17
17
 
18
18
  <img src="./docs/img/operational_data_layer.png" alt="A Tangled Microservices Network with 3 valuable functions buried within" style="max-width:100%;width:600px;">
19
19
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotmeshio/hotmesh",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Unbreakable Workflows",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -112,7 +112,7 @@ class Activity {
112
112
  stack: error.stack,
113
113
  name: error.name,
114
114
  });
115
- telemetry && telemetry.setActivityError(error.message);
115
+ telemetry?.setActivityError(error.message);
116
116
  throw error;
117
117
  }
118
118
  finally {
@@ -58,7 +58,7 @@ class Await extends activity_1.Activity {
58
58
  else {
59
59
  this.logger.error('await-process-error', { ...error });
60
60
  }
61
- telemetry.setActivityError(error.message);
61
+ telemetry?.setActivityError(error.message);
62
62
  throw error;
63
63
  }
64
64
  finally {
@@ -58,7 +58,7 @@ class Cycle extends activity_1.Activity {
58
58
  else {
59
59
  this.logger.error('cycle-process-error', { ...error });
60
60
  }
61
- telemetry.setActivityError(error.message);
61
+ telemetry?.setActivityError(error.message);
62
62
  throw error;
63
63
  }
64
64
  finally {
@@ -53,7 +53,7 @@ class Hook extends activity_1.Activity {
53
53
  else {
54
54
  this.logger.error('hook-process-error', { ...error });
55
55
  }
56
- telemetry.setActivityError(error.message);
56
+ telemetry?.setActivityError(error.message);
57
57
  throw error;
58
58
  }
59
59
  finally {
@@ -45,7 +45,7 @@ class Interrupt extends activity_1.Activity {
45
45
  else {
46
46
  this.logger.error('interrupt-process-error', { ...error });
47
47
  }
48
- telemetry.setActivityError(error.message);
48
+ telemetry?.setActivityError(error.message);
49
49
  throw error;
50
50
  }
51
51
  finally {
@@ -66,7 +66,7 @@ class Signal extends activity_1.Activity {
66
66
  else {
67
67
  this.logger.error('signal-process-error', { ...error });
68
68
  }
69
- telemetry.setActivityError(error.message);
69
+ telemetry?.setActivityError(error.message);
70
70
  throw error;
71
71
  }
72
72
  finally {
@@ -56,7 +56,7 @@ class Trigger extends activity_1.Activity {
56
56
  else {
57
57
  this.logger.error('trigger-process-error', { ...error });
58
58
  }
59
- telemetry.setActivityError(error.message);
59
+ telemetry?.setActivityError(error.message);
60
60
  throw error;
61
61
  }
62
62
  finally {
@@ -57,7 +57,7 @@ class Worker extends activity_1.Activity {
57
57
  else {
58
58
  this.logger.error('worker-process-error', { ...error });
59
59
  }
60
- telemetry.setActivityError(error.message);
60
+ telemetry?.setActivityError(error.message);
61
61
  throw error;
62
62
  }
63
63
  finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotmeshio/hotmesh",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Unbreakable Workflows",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",