@rayondigital/nest-dapr 0.10.1 → 0.10.2

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.
Files changed (2) hide show
  1. package/dist/dapr.loader.js +11 -11
  2. package/package.json +1 -1
@@ -56,16 +56,16 @@ let DaprLoader = DaprLoader_1 = class DaprLoader {
56
56
  this.logger = new common_1.Logger(DaprLoader_1.name);
57
57
  }
58
58
  onApplicationBootstrap() {
59
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
59
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
60
60
  return __awaiter(this, void 0, void 0, function* () {
61
61
  this.logger.log('Dapr initializing');
62
62
  const isEnabled = !this.options.disabled;
63
63
  const isActorsEnabled = (_b = (_a = this.options.actorOptions) === null || _a === void 0 ? void 0 : _a.enabled) !== null && _b !== void 0 ? _b : true;
64
- const isWorkflowEnabled = (_d = (_c = this.options.workflowOptions) === null || _c === void 0 ? void 0 : _c.enabled) !== null && _d !== void 0 ? _d : true;
64
+ const isWorkflowEnabled = (_d = (_c = this.options.workflowOptions) === null || _c === void 0 ? void 0 : _c.enabled) !== null && _d !== void 0 ? _d : false;
65
65
  if (isWorkflowEnabled) {
66
66
  this.workflowRuntime = new dapr_1.WorkflowRuntime({
67
67
  daprHost: this.options.serverHost,
68
- daprPort: (_e = this.options.workflowOptions.daprPort) !== null && _e !== void 0 ? _e : '3501',
68
+ daprPort: (_f = (_e = this.options.workflowOptions) === null || _e === void 0 ? void 0 : _e.daprPort) !== null && _f !== void 0 ? _f : '3501',
69
69
  });
70
70
  }
71
71
  if (isActorsEnabled) {
@@ -73,20 +73,20 @@ let DaprLoader = DaprLoader_1 = class DaprLoader {
73
73
  if (this.options.contextProvider !== dapr_module_1.DaprContextProvider.None) {
74
74
  this.actorManager.setupCSLWrapper(this.options, this.contextService);
75
75
  }
76
- if ((_h = (_g = (_f = this.options.clientOptions) === null || _f === void 0 ? void 0 : _f.actor) === null || _g === void 0 ? void 0 : _g.reentrancy) === null || _h === void 0 ? void 0 : _h.enabled) {
76
+ if ((_j = (_h = (_g = this.options.clientOptions) === null || _g === void 0 ? void 0 : _g.actor) === null || _h === void 0 ? void 0 : _h.reentrancy) === null || _j === void 0 ? void 0 : _j.enabled) {
77
77
  this.actorManager.setupReentrancy(this.options);
78
78
  }
79
79
  }
80
- if ((_j = this.options.pubsubOptions) === null || _j === void 0 ? void 0 : _j.defaultName) {
80
+ if ((_k = this.options.pubsubOptions) === null || _k === void 0 ? void 0 : _k.defaultName) {
81
81
  this.pubSubClient.setDefaultName(this.options.pubsubOptions.defaultName);
82
82
  }
83
83
  if (isActorsEnabled) {
84
84
  if (this.options.actorOptions) {
85
- this.daprActorClient.setAllowInternalCalls((_l = (_k = this.options.actorOptions) === null || _k === void 0 ? void 0 : _k.allowInternalCalls) !== null && _l !== void 0 ? _l : false);
86
- this.daprActorClient.setPrefix((_o = (_m = this.options.actorOptions) === null || _m === void 0 ? void 0 : _m.prefix) !== null && _o !== void 0 ? _o : '', (_q = (_p = this.options.actorOptions) === null || _p === void 0 ? void 0 : _p.delimiter) !== null && _q !== void 0 ? _q : '-');
87
- this.daprActorClient.setTypeNamePrefix((_s = (_r = this.options.actorOptions) === null || _r === void 0 ? void 0 : _r.typeNamePrefix) !== null && _s !== void 0 ? _s : '');
88
- if ((_t = this.options.actorOptions) === null || _t === void 0 ? void 0 : _t.prefix) {
89
- this.logger.log(`Actors will be prefixed with ${(_v = (_u = this.options.actorOptions) === null || _u === void 0 ? void 0 : _u.prefix) !== null && _v !== void 0 ? _v : ''} and delimited with ${(_x = (_w = this.options.actorOptions) === null || _w === void 0 ? void 0 : _w.delimiter) !== null && _x !== void 0 ? _x : '-'}`);
85
+ this.daprActorClient.setAllowInternalCalls((_m = (_l = this.options.actorOptions) === null || _l === void 0 ? void 0 : _l.allowInternalCalls) !== null && _m !== void 0 ? _m : false);
86
+ this.daprActorClient.setPrefix((_p = (_o = this.options.actorOptions) === null || _o === void 0 ? void 0 : _o.prefix) !== null && _p !== void 0 ? _p : '', (_r = (_q = this.options.actorOptions) === null || _q === void 0 ? void 0 : _q.delimiter) !== null && _r !== void 0 ? _r : '-');
87
+ this.daprActorClient.setTypeNamePrefix((_t = (_s = this.options.actorOptions) === null || _s === void 0 ? void 0 : _s.typeNamePrefix) !== null && _t !== void 0 ? _t : '');
88
+ if ((_u = this.options.actorOptions) === null || _u === void 0 ? void 0 : _u.prefix) {
89
+ this.logger.log(`Actors will be prefixed with ${(_w = (_v = this.options.actorOptions) === null || _v === void 0 ? void 0 : _v.prefix) !== null && _w !== void 0 ? _w : ''} and delimited with ${(_y = (_x = this.options.actorOptions) === null || _x === void 0 ? void 0 : _x.delimiter) !== null && _y !== void 0 ? _y : '-'}`);
90
90
  }
91
91
  }
92
92
  if (isEnabled) {
@@ -116,7 +116,7 @@ let DaprLoader = DaprLoader_1 = class DaprLoader {
116
116
  yield this.workflowRuntime.start();
117
117
  yield this.workflowClient.start({
118
118
  daprHost: this.options.serverHost,
119
- daprPort: (_y = this.options.workflowOptions.daprPort) !== null && _y !== void 0 ? _y : '3501',
119
+ daprPort: (_z = this.options.workflowOptions.daprPort) !== null && _z !== void 0 ? _z : '3501',
120
120
  });
121
121
  }
122
122
  if (!isActorsEnabled || !isEnabled)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rayondigital/nest-dapr",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "Develop NestJs microservices using Dapr pubsub, actors and other bindings",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",