diff --git a/lib/cjs/providers/JiraTicketProvider.js b/lib/cjs/providers/JiraTicketProvider.js index 2d45a14..6c4a7b0 100644 --- a/lib/cjs/providers/JiraTicketProvider.js +++ b/lib/cjs/providers/JiraTicketProvider.js @@ -14,7 +14,7 @@ const models_1 = require("../models"); const JiraApi = require('jira-client'); class JiraTicketProvider { constructor(config) { - this.config = config; + this.config = JSON.parse(JSON.stringify(config)); if (!this.config.ticket.priorityMap) { this.config.ticket.priorityMap = { [models_1.ErrorPriority.P1]: 'Highest', diff --git a/lib/cjs/providers/JiraTicketProvider.js.map b/lib/cjs/providers/JiraTicketProvider.js.map index e5b4fef..84a35a2 100644 --- a/lib/cjs/providers/JiraTicketProvider.js.map +++ b/lib/cjs/providers/JiraTicketProvider.js.map @@ -1 +1 @@ -{"version":3,"file":"JiraTicketProvider.js","sourceRoot":"","sources":["../../../src/providers/JiraTicketProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,sCAA6E;AAC7E,MAAM,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AA6BvC,MAAa,kBAAkB;IAI7B,YAAmB,MAAgC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAGrB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE;YACnC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,GAAG;gBAC/B,CAAC,sBAAa,CAAC,EAAE,CAAC,EAAE,SAAS;gBAC7B,CAAC,sBAAa,CAAC,EAAE,CAAC,EAAE,MAAM;gBAC1B,CAAC,sBAAa,CAAC,EAAE,CAAC,EAAE,QAAQ;gBAC5B,CAAC,sBAAa,CAAC,EAAE,CAAC,EAAE,KAAK;gBACzB,CAAC,sBAAa,CAAC,EAAE,CAAC,EAAE,QAAQ;aAC7B,CAAC;SACH;QAED,IAAI,gBAAgB,GAAQ;YAC1B,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC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S,UAAU;gBACrD,kBAAkB,CAAC;YAErB,KAAK,MAAM,QAAQ,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,YAAY,CAAC,EAAE;gBAClE,WAAW,IAAI,GAAG,QAAQ,CAAC,IAAI,yBAAyB,QAAQ,CAAC,QAAQ,GAAG,CAAC;aAC9E;YAED,IAAI,UAAU,CAAC,SAAS,CAAC,MAAM,GAAG,EAAE,EAAE;gBACpC,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,GAAG,YAAY,CAAC,CAAC;gBAChE,WAAW,IAAI,WAAW,UAAU,6BAA6B,CAAC;aACnE;YAED,OAAO;gBACL,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,OAAO;gBACP,WAAW;gBACX,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC;gBAC7D,MAAM,EAAE,CAAC,YAAY,EAAE,SAAS,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvD,CAAA;QACH,CAAC;KAAA;IAEO,aAAa,CAAC,GAAW;QAC/B,OAAO,WAAW,IAAI,CAAC,MAAM,CAAC,IAAI,WAAW,GAAG,EAAE,CAAA;IACpD,CAAC;CACF;AAjKD,gDAiKC"} \ No newline at end of file +{"version":3,"file":"JiraTicketProvider.js","sourceRoot":"","sources":["../../../src/providers/JiraTicketProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,sCAA6E;AAC7E,MAAM,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AA6BvC,MAAa,kBAAkB;IAI7B,YAAmB,MAAgC;QACjD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QAGjD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE;YACnC,IAAI,CAAC,MAA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end of file diff --git a/lib/cjs/providers/OpsGenieAlertProvider.js b/lib/cjs/providers/OpsGenieAlertProvider.js index 9cfe253..200f3c0 100644 --- a/lib/cjs/providers/OpsGenieAlertProvider.js +++ b/lib/cjs/providers/OpsGenieAlertProvider.js @@ -14,7 +14,7 @@ const models_1 = require("../models"); const opsgenie = require('opsgenie-sdk'); class OpsGenieAlertProvider { constructor(config) { - this.config = config; + this.config = JSON.parse(JSON.stringify(config)); opsgenie.configure({ api_key: this.config.apiKey, }); diff --git a/lib/cjs/providers/OpsGenieAlertProvider.js.map b/lib/cjs/providers/OpsGenieAlertProvider.js.map index 13c18a1..a00e2d9 100644 --- a/lib/cjs/providers/OpsGenieAlertProvider.js.map +++ b/lib/cjs/providers/OpsGenieAlertProvider.js.map @@ -1 +1 @@ -{"version":3,"file":"OpsGenieAlertProvider.js","sourceRoot":"","sources":["../../../src/providers/OpsGenieAlertProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAA2E;AAE3E,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAQzC,MAAa,qBAAqB;IAGhC,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,QAAQ,CAAC,SAAS,CAAC;YACjB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;SAC5B,CAAC,CAAC;QAGH,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;YAC5B,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG;gBACxB,CAAC,sBAAa,CAAC,EAAE,CAAC,EAAE,IAAI;gBACxB,CAAC,sBAAa,CAAC,EAAE,CAAC,EAAE,IAAI;gBACxB,CAAC,sBAAa,CAAC,EAAE,CAAC,EAAE,IAAI;gBACxB,CAAC,sBAAa,CAAC,EAAE,CAAC,EAAE,IAAI;gBACxB,CAAC,sBAAa,CAAC,EAAE,CAAC,EAAE,IAAI;aACzB,CAAC;SACH;IACH,CAAC;IAEY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AE,OAAO;iBACxB,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;oBACrB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;gBACrD,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC;KAAA;IAEY,oBAAoB,CAAC,UAAsB;;;YACtD,MAAM,OAAO,GAAG,SAAS,UAAU,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YAE1D,OAAO;gBACL,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,OAAO;gBACP,WAAW,EAAE,UAAU,CAAC,IAAI;gBAC5B,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC;gBACtD,MAAM,EAAE,EAAE;gBACV,SAAS,EAAE,MAAA,UAAU,CAAC,MAAM,0CAAE,GAAG;aAClC,CAAA;;KACF;CACF;AA3FD,sDA2FC"} \ No newline at end of file diff --git a/lib/esm/providers/JiraTicketProvider.js b/lib/esm/providers/JiraTicketProvider.js index 09ebd7a..ef6160e 100644 --- a/lib/esm/providers/JiraTicketProvider.js +++ b/lib/esm/providers/JiraTicketProvider.js @@ -11,7 +11,7 @@ import { ErrorPriority } from '../models'; const JiraApi = require('jira-client'); export class JiraTicketProvider { constructor(config) { - this.config = config; + this.config = JSON.parse(JSON.stringify(config)); if (!this.config.ticket.priorityMap) { this.config.ticket.priorityMap = { [ErrorPriority.P1]: 'Highest', diff --git a/lib/esm/providers/JiraTicketProvider.js.map b/lib/esm/providers/JiraTicketProvider.js.map index 7413394..caff4ed 100644 --- a/lib/esm/providers/JiraTicketProvider.js.map +++ b/lib/esm/providers/JiraTicketProvider.js.map @@ -1 +1 @@ -{"version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,MAAM,QAAQ,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,YAAY,CAAC,EAAE;gBAClE,WAAW,IAAI,GAAG,QAAQ,CAAC,IAAI,yBAAyB,QAAQ,CAAC,QAAQ,GAAG,CAAC;aAC9E;YAED,IAAI,UAAU,CAAC,SAAS,CAAC,MAAM,GAAG,EAAE,EAAE;gBACpC,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,GAAG,YAAY,CAAC,CAAC;gBAChE,WAAW,IAAI,WAAW,UAAU,6BAA6B,CAAC;aACnE;YAED,OAAO;gBACL,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,OAAO;gBACP,WAAW;gBACX,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC;gBAC7D,MAAM,EAAE,CAAC,YAAY,EAAE,SAAS,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvD,CAAA;QACH,CAAC;KAAA;IAEO,aAAa,CAAC,GAAW;QAC/B,OAAO,WAAW,IAAI,CAAC,MAAM,CAAC,IAAI,WAAW,GAAG,EAAE,CAAA;IACpD,CAAC;CACF"} \ No newline at end of file diff --git a/lib/esm/providers/OpsGenieAlertProvider.js b/lib/esm/providers/OpsGenieAlertProvider.js index 5bf55b1..47f89af 100644 --- a/lib/esm/providers/OpsGenieAlertProvider.js +++ b/lib/esm/providers/OpsGenieAlertProvider.js @@ -11,7 +11,7 @@ import { ErrorPriority } from '../models'; const opsgenie = require('opsgenie-sdk'); export class OpsGenieAlertProvider { constructor(config) { - this.config = config; + this.config = JSON.parse(JSON.stringify(config)); opsgenie.configure({ api_key: this.config.apiKey, }); diff --git a/lib/esm/providers/OpsGenieAlertProvider.js.map b/lib/esm/providers/OpsGenieAlertProvider.js.map index 74a0c12..4a9b7cb 100644 --- a/lib/esm/providers/OpsGenieAlertProvider.js.map +++ b/lib/esm/providers/OpsGen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,GAAG,CAAC,CAAC;YAE1D,OAAO;gBACL,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,OAAO;gBACP,WAAW,EAAE,UAAU,CAAC,IAAI;gBAC5B,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC;gBACtD,MAAM,EAAE,EAAE;gBACV,SAAS,EAAE,MAAA,UAAU,CAAC,MAAM,0CAAE,GAAG;aAClC,CAAA;;KACF;CACF"} \ No newline at end of file diff --git a/package.json b/package.json index 328ee5c..9a3152b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "error-sync-lib", - "version": "0.1.6", + "version": "0.1.7", "private": "true", "scripts": { "build": "yarn build:esm && yarn build:cjs",