{"id":26095297,"url":"https://github.com/thenativeweb/node-cqrs-saga","last_synced_at":"2025-07-06T05:32:41.478Z","repository":{"id":20206906,"uuid":"23478375","full_name":"thenativeweb/node-cqrs-saga","owner":"thenativeweb","description":"Node-cqrs-saga is a node.js module that helps to implement the sagas in cqrs. It can be very useful as domain component if you work with (d)ddd, cqrs, eventdenormalizer, host, etc.","archived":false,"fork":false,"pushed_at":"2020-09-04T03:43:52.000Z","size":395,"stargazers_count":62,"open_issues_count":7,"forks_count":16,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-19T15:26:17.651Z","etag":null,"topics":["cqrs","domain-driven-design","event-sourcing","events","javascript","sagas"],"latest_commit_sha":null,"homepage":"http://cqrs.js.org/pages/saga.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thenativeweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-29T21:29:52.000Z","updated_at":"2024-12-21T08:44:33.000Z","dependencies_parsed_at":"2022-08-28T10:22:49.889Z","dependency_job_id":null,"html_url":"https://github.com/thenativeweb/node-cqrs-saga","commit_stats":null,"previous_names":["adrai/node-cqrs-saga"],"tags_count":63,"template":false,"template_full_name":null,"purl":"pkg:github/thenativeweb/node-cqrs-saga","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenativeweb%2Fnode-cqrs-saga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenativeweb%2Fnode-cqrs-saga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenativeweb%2Fnode-cqrs-saga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenativeweb%2Fnode-cqrs-saga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thenativeweb","download_url":"https://codeload.github.com/thenativeweb/node-cqrs-saga/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenativeweb%2Fnode-cqrs-saga/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263853348,"owners_count":23520127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cqrs","domain-driven-design","event-sourcing","events","javascript","sagas"],"created_at":"2025-03-09T13:15:33.136Z","updated_at":"2025-07-06T05:32:41.459Z","avatar_url":"https://github.com/thenativeweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚠️ IMPORTANT NEWS! 📰\n\nI’ve been dealing with CQRS, event-sourcing and DDD long enough now that I don’t need working with it anymore unfortunately, so at least for now this my formal farewell!\n\nI want to thank everyone who has contributed in one way or another.\nEspecially...\n\n- [Jan](https://github.com/jamuhl), who introduced me to this topic.\n- [Dimitar](https://github.com/nanov), one of the last bigger contributors and maintainer.\n- My last employer, who gave me the possibility to use all these CQRS modules in a big Cloud-System.\n- My family and friends, who very often came up short.\n\nFinally, I would like to thank [Golo Roden](https://github.com/goloroden), who was there very early at the beginning of my CQRS/ES/DDD journey and is now here again to take over these modules.\n\nGolo Roden is the founder, CTO and managing director of [the native web](https://www.thenativeweb.io/), a company specializing in native web technologies. Among other things, he also teaches CQRS/ES/DDD etc. and based on his vast knowledge, he brought wolkenkit to life.\n[wolkenkit](https://wolkenkit.io) is a CQRS and event-sourcing framework based on Node.js. It empowers you to build and run scalable distributed web and cloud services that process and store streams of domain events.\n\nWith this step, I can focus more on [i18next](https://www.i18next.com), [locize](https://locize.com) and [localistars](https://localistars.com). I'm happy about that. 😊\n\nSo, there is no end, but the start of a new phase for my CQRS modules. 😉\n\nI wish you all good luck on your journey.\n\nWho knows, maybe we'll meet again in a github issue or PR at [i18next](https://github.com/i18next/i18next) 😉\n\n\n[Adriano Raiano](https://twitter.com/adrirai)\n\n---\n\n# Introduction\n\n[![travis](https://img.shields.io/travis/adrai/node-cqrs-saga.svg)](https://travis-ci.org/adrai/node-cqrs-saga) [![npm](https://img.shields.io/npm/v/cqrs-saga.svg)](https://npmjs.org/package/cqrs-saga)\n\nNode-cqrs-saga is a node.js module that helps to implement the sagas in cqrs.\nIt can be very useful as domain component if you work with (d)ddd, cqrs, eventdenormalizer, host, etc.\n\n# Installation\n\n    $ npm install cqrs-saga\n\n\n# Usage\n\n\tvar pm = require('cqrs-saga')({\n\t  // the path to the \"working directory\"\n\t  // can be structured like\n\t  // [set 1](https://github.com/adrai/node-cqrs-saga/tree/master/test/integration/fixture)\n\t  sagaPath: '/path/to/my/files',\n\n\t  // optional, default is 800\n\t  // if using in scaled systems and not guaranteeing that each event for a saga \"instance\"\n\t  // dispatches to the same worker process, this module tries to catch the concurrency issues and\n\t  // retries to handle the event after a timeout between 0 and the defined value\n\t  retryOnConcurrencyTimeout: 1000,\n\n\t  // optional, default is in-memory\n\t  // currently supports: mongodb, redis, azuretable and inmemory\n\t  // hint settings like: [eventstore](https://github.com/adrai/node-eventstore#provide-implementation-for-storage)\n\t  // mongodb:\n\t  sagaStore: {\n\t    type: 'mongodb',\n\t    host: 'localhost',                          // optional\n\t    port: 27017,                                // optional\n\t    dbName: 'domain',                           // optional\n\t    collectionName: 'sagas',                    // optional\n\t    timeout: 10000                              // optional\n      // authSource: 'authedicationDatabase',        // optional\n\t    // username: 'technicalDbUser',                // optional\n\t    // password: 'secret'                          // optional\n      // url: 'mongodb://user:pass@host:port/db?opts // optional\n\t  },\n\t  // or redis:\n\t  sagaStore: {\n\t    type: 'redis',\n\t    host: 'localhost',                          // optional\n\t    port: 6379,                                 // optional\n\t    db: 0,                                      // optional\n\t    prefix: 'domain_saga',                      // optional\n\t    timeout: 10000                              // optional\n\t    // password: 'secret'                          // optional\n\t  },\n\n\t  // optional, default is in-memory\n\t  // the revisionguard only works if aggregateId and revision are defined in event definition\n\t  // currently supports: mongodb, redis, tingodb, azuretable and inmemory\n\t  // hint settings like: [eventstore](https://github.com/adrai/node-eventstore#provide-implementation-for-storage)\n\t  revisionGuard: {\n\t  \tqueueTimeout: 1000,                         // optional, timeout for non-handled events in the internal in-memory queue\n\t  \tqueueTimeoutMaxLoops: 3,                    // optional, maximal loop count for non-handled event in the internal in-memory queue\n      startRevisionNumber: 1,\t\t\t                // optional, if defined the denormaizer waits for an event with that revision to be used as first event\n\n\t  \ttype: 'redis',\n\t  \thost: 'localhost',                          // optional\n\t  \tport: 6379,                                 // optional\n\t  \tdb: 0,                                      // optional\n\t  \tprefix: 'saga_revision',               \t\t\t// optional\n\t  \ttimeout: 10000                              // optional\n\t  \t// password: 'secret'                       // optional\n\t  }\n\t\t// or, if you don't like to guard revisions ( managed externally ? )\n\t\trevisionGuard: false // note has to be set explicitly false\n\t});\n\n\n## Catch connect ad disconnect events\n\n\t// sagaStore\n\tpm.sagaStore.on('connect', function() {\n\t  console.log('sagaStore connected');\n\t});\n\n\tpm.sagaStore.on('disconnect', function() {\n\t  console.log('sagaStore disconnected');\n\t});\n\n\t// revisionGuardStore\n\tpm.revisionGuardStore.on('connect', function() {\n\t  console.log('revisionGuardStore connected');\n\t});\n\n\tpm.revisionGuardStore.on('disconnect', function() {\n\t  console.log('revisionGuardStore disconnected');\n\t});\n\n\n\t// anything (sagaStore or revisionGuardStore)\n\tpm.on('connect', function() {\n\t  console.log('something connected');\n\t});\n\n\tpm.on('disconnect', function() {\n\t  console.log('something disconnected');\n\t});\n\n\n## Define the event structure\nThe values describes the path to that property in the event message.\n\n\tpm.defineEvent({\n\t  // optional, default is 'name'\n\t  name: 'name',\n\n\t  // optional, only makes sense if contexts are defined in the 'domainPath' structure\n\t  context: 'context.name',\n\n\t  // optional, only makes sense if aggregates with names are defined in the 'domainPath' structure\n\t  aggregate: 'aggregate.name',\n\n\t  // optional, default is 'aggregate.id'\n\t  aggregateId: 'aggregate.id',\n\n\t  // optional, default is 'revision'\n\t  // will represent the aggregate revision, can be used in next command\n\t  revision: 'revision',\n\n\t  // optional\n\t  version: 'version',\n\n\t  // optional, if defined theses values will be copied to the command (can be used to transport information like userId, etc..)\n\t  meta: 'meta'\n\t});\n\n\n## Define the command structure\nThe values describes the path to that property in the command message.\n\n\tpm.defineCommand({\n\t  // optional, default is 'id'\n\t  id: 'id',\n\n\t  // optional, if defined the values of the event will be copied to the command (can be used to transport information like userId, etc..)\n\t  meta: 'meta'\n\t});\n\n\n## Define the id generator function [optional]\n### you can define a synchronous function\n\n\tpm.idGenerator(function () {\n\t  var id = require('uuid').v4().toString();\n\t  return id;\n\t});\n\n### or you can define an asynchronous function\n\n\tpm.idGenerator(function (callback) {\n\t  setTimeout(function () {\n\t    var id = require('uuid').v4().toString();\n\t    callback(null, id);\n\t  }, 50);\n\t});\n\n\n## Wire up commands [optional]\n### you can define a synchronous function\n\n\t// pass commands to bus\n\tpm.onCommand(function (cmd) {\n\t  bus.emit('command', cmd);\n\t});\n\n### or you can define an asynchronous function\n\n\t// pass commands to bus\n\tpm.onCommand(function (cmd, callback) {\n\t  bus.emit('command', cmd, function ack () {\n\t    callback();\n\t  });\n\t});\n\n\n## Wire up event missing [optional]\n\n\tpm.onEventMissing(function (info, evt) {\n\n\t\t// grab the missing events, depending from info values...\n\t\t// info.aggregateId\n\t\t// info.aggregateRevision\n\t\t// info.aggregate\n\t\t// info.context\n\t\t// info.guardRevision\n\t\t// and call handle...\n\t\tpm.handle(missingEvent, function (err) {\n\t\t\tif (err) { console.log(err); }\n\t\t});\n\n\t});\n\nyou can get the last guarded event:\n\n\tpm.getLastEvent(function (err, evt) {\n\n\t  if (event.occurredAt \u003c Date.now()) {\n\t  \t// ...\n\t  }\n\n\t});\n\n## Using custom structure loader function\nThe built-in structure loader can be replaced with one adapted to your needs.\nTo do that, you need to include a loading method in the options object passed to the domain constructor.\n\n\t// options will contain sagaPath as well as the as well as a definition object containing all the constructors of the saga components  ( Saga )\n\tfunction structureLoader(options) {\n\n\t\treturn [\n\t\t\tnew options.definitions.Saga({\n\t\t\t\tname: 'myEvt'\n\t\t\t}, function (evt, saga, callback) {\n\t\t\t\t// handle\n\t\t\t}),\n\t\t\tnew options.definitions.Saga({\n\t\t\t\tname: 'myOtherEvt'\n\t\t\t}, function (evt, saga, callback) {\n\t\t\t\t// handle\n\t\t\t}),\n\t\t];\n\t\t// or more probably\n\t\treturn myExternalLoader(options.sagaPath, options.definitions);\n\t}\n\n\tvar pm = require('cqrs-saga')({\n\t  sagaPath: '/path/to/my/files',\n\t\tstructureLoader: structureLoader\n\t});\n\n## Initialization\n\n\tpm.init(function (err, warnings) {\n\t  // this callback is called when all is ready...\n\t  // warnings: if no warnings warnings is null, else it's an array containing errors during require of files\n\t});\n\n\t// or\n\n\tpm.init(); // callback is optional\n\n\n## Handling an event\n\n\tpm.handle({\n\t  id: 'b80ade36-dd05-4340-8a8b-846eea6e286f',\n\t  name: 'orderCreated',\n\t  aggregate: {\n\t    id: '3b4d44b0-34fb-4ceb-b212-68fe7a7c2f70',\n\t    name: 'order'\n\t  },\n\t  context: {\n\t    name: 'sale'\n\t  },\n\t  payload: {\n      totalCosts: 520,\n      seats: ['4f', '8a']\n\t  },\n\t  revision: 0,\n\t  version: 1,\n\t  meta: {\n\t    userId: 'ccd65819-4da4-4df9-9f24-5b10bf89ef89'\n\t  }\n\t}); // callback is optional\n\n### or\n\n\tpm.handle({\n\t  id: 'b80ade36-dd05-4340-8a8b-846eea6e286f',\n\t  name: 'orderCreated',\n    aggregate: {\n      id: '3b4d44b0-34fb-4ceb-b212-68fe7a7c2f70',\n      name: 'order'\n    },\n    context: {\n      name: 'sale'\n    },\n    payload: {\n      totalCosts: 520,\n      seats: ['4f', '8a']\n    },\n\t  revision: 0,\n\t  version: 1,\n\t  meta: {\n\t    userId: 'ccd65819-4da4-4df9-9f24-5b10bf89ef89'\n\t  }\n\t}, function (errs, cmds) {\n\t  // this callback is called when event is handled successfully or unsuccessfully\n\t  // errs can be of type:\n\t  // - null\n\t  // - Array of Errors\n\t  //\n\t  // cmds: same as passed in 'onCommand' function\n\t});\n\n### more infos, can be useful if testing\n\n\tpm.handle({\n\t  id: 'b80ade36-dd05-4340-8a8b-846eea6e286f',\n\t  name: 'orderCreated',\n    aggregate: {\n      id: '3b4d44b0-34fb-4ceb-b212-68fe7a7c2f70',\n      name: 'order'\n    },\n    context: {\n      name: 'sale'\n    },\n    payload: {\n      totalCosts: 520,\n      seats: ['4f', '8a']\n    },\n\t  meta: {\n\t    userId: 'ccd65819-4da4-4df9-9f24-5b10bf89ef89'\n\t  }\n\t}, function (errs, cmds, sagaModels) {\n\t  // this callback is called when event is handled successfully or unsuccessfully\n\t  // errs: is the same as described before\n\n\t  // cmds: same as passed in 'onCommand' function\n\t  // cmds: in case of no error or in case of error here is the array of all commands that should be published\n\n\t  // sagaModels: represents the saga data after have handled the event\n\t});\n\n\n## Request saga information\n\nAfter the initialization you can request the saga information:\n\n\tpm.init(function (err) {\n\t  pm.getInfo();\n\t  // ==\u003e\n\t  // {\n\t  //   \"sagas\": [\n\t  //     {\n\t  //       \"name\": \"orderConfirmed\",\n\t  //       \"aggregate\": \"order\",\n\t  //       \"context\": \"sale\",\n\t  //       \"version\": 0\n\t  //     },\n\t  //     {\n\t  //       \"name\": \"orderCreated\",\n\t  //       \"aggregate\": \"order\",\n\t  //       \"context\": \"sale\",\n\t  //       \"version\": 0\n\t  //     },\n\t  //     {\n\t  //       \"name\": \"paymentAccepted\",\n\t  //       \"aggregate\": \"payment\",\n\t  //       \"context\": \"sale\",\n\t  //       \"version\": 2\n\t  //     },\n\t  //     {\n\t  //       \"name\": \"seatsReserved\",\n\t  //       \"aggregate\": \"reservation\",\n\t  //       \"context\": \"sale\",\n\t  //       \"version\": 0\n\t  //     }\n\t  //   ]\n\t  // }\n\t});\n\n\n# Components definition\n\n## Saga\n\n\tmodule.exports = require('cqrs-saga').defineSaga({\n\t  // optional, default is file name without extension\n\t  name: 'orderCreated',\n\n\t  // optional\n\t  aggregate: 'order',\n\n\t  // optional\n\t  context: 'sale',\n\n\t  // optional, default 0\n\t  version: 1,\n\n\t  // optional, default false\n\t  // if true it will check if there is already a saga in the db and only if there is something it will continue...\n\t  existing: false,\n\n\t  // optional, will catch the event only if it contains the defined properties\n\t  containingProperties: ['aggregate.id', 'payload.totalCosts', 'payload.seats'],\n\n\t  // optional, if not defined it will pass the whole event...\n\t  payload: 'payload',\n\n\t  // optional, if not defined it will generate a new id\n\t  // it will try to load the saga from the db by this id\n\t  id: 'aggregate.id',\n\n\t  // optional, default Infinity, all sagas will be sorted by this value\n\t  priority: 1\n\t}, function (evt, saga, callback) {\n\n\t  // if you have multiple concurrent events that targets the same saga, you can catch it like this:\n\t  if (saga.actionOnCommit === 'create') {\n\t  \treturn this.retry();\n\t  \t// or\n\t  \t//return this.retry(100); // retries to handle again in 0-100ms\n\t  \t// or\n\t  \t//return this.retry({ from: 500, to: 8000 }); // retries to handle again in 500-8000ms\n\t  }\n\n\t  saga.set('orderId', evt.aggregate.id);\n\t  saga.set('totalCosts', evt.payload.totalCosts);\n\t  // or\n\t  // saga.set({ orderId: evt.aggregate.id, totalCosts: evt.payload.totalCosts });\n\n\t  var cmd = {\n\n\t    // if you don't pass an id it will generate a new one\n\t    id: 'my own command id',\n\t    name: 'makeReservation',\n\t    aggregate: {\n\t      name: 'reservation'\n\t    },\n\t    context: {\n\t      name: 'sale'\n\t    },\n\t    payload: {\n\t      transactionId: saga.id,\n\t      seats: saga.has('seats') ? saga.get('seats') : evt.payload.seats\n\t    },\n\n\t    // to transport meta infos (like userId)...\n\t    // if not defined, it will use the meta value of the event\n\t    meta: evt.meta\n\t  };\n\n\t  saga.addCommandToSend(cmd);\n\n\t  // optionally define a timeout\n\t  // this can be useful if you have an other process that will fetch timeouted sagas\n\t  var tomorrow = new Date();\n\t  tomorrow.setDate((new Date()).getDate() + 1);\n\t  var timeoutCmd = {\n\n\t    // if you don't pass an id it will generate a new one\n\t    id: 'my own command id',\n\t    name: 'cancelOrder',\n\t    aggregate: {\n\t      name: 'order',\n\t      id: evt.aggregate.id\n\t    },\n\t    context: {\n\t      name: 'sale'\n\t    },\n\t    payload: {\n\t      transactionId: saga.id\n\t    },\n\n\t    // to transport meta infos (like userId)...\n\t    // if not defined, it will use the meta value of the event\n\t    meta: evt.meta\n\t  };\n\t  saga.defineTimeout(tomorrow, [timeoutCmd]);\n\t  // or\n\t  // saga.defineTimeout(tomorrow, timeoutCmd);\n\t  // or\n\t  // saga.defineTimeout(tomorrow);\n\n\t  saga.commit(callback);\n\t});\n\t// optional define a function to that returns an id that will be used as saga id\n\t//.useAsId(function (evt) {\n\t//  return 'newId';\n\t//});\n\t// or\n\t//.useAsId(function (evt, callback) {\n\t//  callback(null, 'newId');\n\t//});\n\t//\n\t// optional define a function that checks if an event should be handled ( before saga is loaded )\n\t//.defineShouldHandleEvent(function (evt) {\n\t//  return true;\n\t//});\n\t// or\n\t//.defineShouldHandleEvent(function (evt, callback) {\n\t//  callback(null, true');\n\t//});\n\t//\n\t// optional define a function that checks if an event should be handled ( after saga is loaded )\n\t//.defineShouldHandle(function (evt, saga) {\n\t//  return true;\n\t//});\n\t// or\n\t//.defineShouldHandle(function (evt, saga, callback) {\n\t//  callback(null, true');\n\t//});\n\n\n# Persistence functions\n\n## getTimoutedSagas\nUse this function to get all timeouted sagas.\n\n\tpm.getTimeoutedSagas(function (err, sagas) {\n\t  if (err) { return console.log('ohh!'); }\n\n\t  sagas.forEach(function (saga) {\n\t    // saga.id...\n\t    // saga.getTimeoutAt();\n\t    var cmds = saga.getTimeoutCommands();\n\n\t    cmds.forEach(function (cmd) {\n\t    \tsaga.addCommandToSend(cmd);\n\t    });\n\n\t    saga.commit(function (err) {\n        // if you have registered the pm.onCommand handler it will be automatically executed,\n        // if you have not registered the pm.onCommand handler you need to publish and set the command to dispatched on your own!\n\t    \tcmds.forEach(function (cmd) {\n\t    \t\t// publish cmd...\n\t    \t\t// msgBus.send(cmd);\n\t    \t\t// ... and set to dispatched...\n\t    \t\tpm.setCommandToDispatched(cmd.id, saga.id, function (err) {});\n\t    \t});\n\t    });\n\n\t    // or if saga does not clean itself after timouted and/or no commands are defined, then:\n\t    // pm.removeSaga(saga || saga.id, function (err) {});\n\t    // or\n\t    // saga.destroy();\n\t    // saga.commit(function (err) {});\n\t  });\n\t});\n\n## getOlderSagas\nUse this function to get all sagas that are older then the passed date.\n\n\tpm.getOlderSagas(new Date(2010, 2, 4), function (err, sagas) {\n\t  if (err) { return console.log('ohh!'); }\n\n\t  sagas.forEach(function (saga) {\n\t    // saga.id...\n\t    // saga.getTimeoutAt();\n\t    // saga.getTimeoutCommands();\n\n\t    // if saga does not clean itself after timouted and/or no commands are defined, then:\n\t    pm.removeSaga(saga || saga.id, function (err) {});\n\t    // or\n\t    // saga.destroy();\n\t    // saga.commit(function (err) {});\n\t  });\n\t});\n\n## getUndispatchedCommands | setCommandToDispatched\nUse getUndispatchedCommands to get all undispatched commands.\n\nUse setCommandToDispatched to mark a command as dispatched. (will remove it from the db)\n\n\tpm.getUndispatchedCommands(function (err, cmds) {\n\t  if (err) { return console.log('ohh!'); }\n\n\t  cmds.forEach(function (cmd) {\n\t    // cmd is: { sagaId: 'the id of the saga', commandId: 'the id of the command', commitStamp: 'a date', command: { /* the command */ } }\n\n\t    pm.setCommandToDispatched(cmd.commandId, cmd.sagaId, function (err) {});\n\t  });\n\t});\n\n\n## ES6 default exports\nImporting ES6 style default exports is supported for all definitions where you also use `module.exports`:\n```\nmodule.exports = defineSaga({...});\n```\nworks as well as \n```\nexports.default = defineSaga({...});\n```\nas well as (must be transpiled by babel or tsc to be runnable in node)\n```\nexport default defineSaga({...});\n```\nExports other than the default export are then ignored by this package's structure loader.\n\n[Release notes](https://github.com/adrai/node-cqrs-saga/blob/master/releasenotes.md)\n\n# License\n\nCopyright (c) 2018 Adriano Raiano\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenativeweb%2Fnode-cqrs-saga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthenativeweb%2Fnode-cqrs-saga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenativeweb%2Fnode-cqrs-saga/lists"}