Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@al/aecoral

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@al/aecoral - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

2

dist/commonjs/al-coral-client.js

@@ -142,3 +142,3 @@ "use strict";

switch (_a.label) {
case 0: return [4 /*yield*/, client_1.ALClient.post({
case 0: return [4 /*yield*/, client_1.ALClient.put({
service_name: this.serviceName,

@@ -145,0 +145,0 @@ account_id: accountId,

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.coralClient=t():e.coralClient=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=require("@al/common")},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(3),c=function(){function e(){this.serviceName="aecoral"}return e.prototype.createCorrelationRule=function(e,t){return r(this,void 0,void 0,(function(){var n;return o(this,(function(r){switch(r.label){case 0:return[4,a.ALClient.post({service_name:this.serviceName,account_id:e,path:"/correlations",data:t})];case 1:if(!(n=r.sent()).hasOwnProperty("correlation_rule_id"))throw new i.AlResponseValidationError("Service returned unexpected result; missing 'correlation_rule_id' property.");return[2,n.correlation_rule_id]}}))}))},e.prototype.removeCorrelationRule=function(e,t){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,a.ALClient.delete({service_name:this.serviceName,account_id:e,path:"/correlations/"+t})];case 1:return[2,n.sent()]}}))}))},e.prototype.getCorrelationRule=function(e,t){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,a.ALClient.get({service_name:this.serviceName,account_id:e,path:"/correlations/"+t})];case 1:return[2,n.sent()]}}))}))},e.prototype.getAllCorrelations=function(e,t){return void 0===t&&(t={}),r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,a.ALClient.get({service_name:this.serviceName,account_id:e,path:"/correlations",params:t})];case 1:return[2,n.sent()]}}))}))},e.prototype.updateCorrelationRule=function(e,t,n){return r(this,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return[4,a.ALClient.post({service_name:this.serviceName,account_id:e,path:"/correlations/"+t,data:n})];case 1:if(!(r=o.sent()).hasOwnProperty("correlation_rule_id"))throw new i.AlResponseValidationError("Service returned unexpected result; missing 'correlation_rule_id' property.");return[2,r.correlation_rule_id]}}))}))},e.prototype.validateCorrelationPolicy=function(e,t){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,a.ALClient.post({service_name:this.serviceName,account_id:e,path:"/validations/correlations",data:t})];case 1:return[2,n.sent()]}}))}))},e.prototype.getIncidentSpecifications=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,a.ALClient.get({service_name:this.serviceName,path:"/incident_spec"})];case 1:return[2,e.sent()]}}))}))},e}();t.AlCoralClientInstance=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(1);!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(1)),t.AlCoralClient=r.AlGlobalizer.instantiate("AlCoralClient",(function(){return new o.AlCoralClientInstance}))},function(e,t){e.exports=require("@al/client")}])}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.coralClient=t():e.coralClient=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=require("@al/common")},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(3),c=function(){function e(){this.serviceName="aecoral"}return e.prototype.createCorrelationRule=function(e,t){return r(this,void 0,void 0,(function(){var n;return o(this,(function(r){switch(r.label){case 0:return[4,a.ALClient.post({service_name:this.serviceName,account_id:e,path:"/correlations",data:t})];case 1:if(!(n=r.sent()).hasOwnProperty("correlation_rule_id"))throw new i.AlResponseValidationError("Service returned unexpected result; missing 'correlation_rule_id' property.");return[2,n.correlation_rule_id]}}))}))},e.prototype.removeCorrelationRule=function(e,t){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,a.ALClient.delete({service_name:this.serviceName,account_id:e,path:"/correlations/"+t})];case 1:return[2,n.sent()]}}))}))},e.prototype.getCorrelationRule=function(e,t){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,a.ALClient.get({service_name:this.serviceName,account_id:e,path:"/correlations/"+t})];case 1:return[2,n.sent()]}}))}))},e.prototype.getAllCorrelations=function(e,t){return void 0===t&&(t={}),r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,a.ALClient.get({service_name:this.serviceName,account_id:e,path:"/correlations",params:t})];case 1:return[2,n.sent()]}}))}))},e.prototype.updateCorrelationRule=function(e,t,n){return r(this,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return[4,a.ALClient.put({service_name:this.serviceName,account_id:e,path:"/correlations/"+t,data:n})];case 1:if(!(r=o.sent()).hasOwnProperty("correlation_rule_id"))throw new i.AlResponseValidationError("Service returned unexpected result; missing 'correlation_rule_id' property.");return[2,r.correlation_rule_id]}}))}))},e.prototype.validateCorrelationPolicy=function(e,t){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,a.ALClient.post({service_name:this.serviceName,account_id:e,path:"/validations/correlations",data:t})];case 1:return[2,n.sent()]}}))}))},e.prototype.getIncidentSpecifications=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,a.ALClient.get({service_name:this.serviceName,path:"/incident_spec"})];case 1:return[2,e.sent()]}}))}))},e}();t.AlCoralClientInstance=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(1);!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(1)),t.AlCoralClient=r.AlGlobalizer.instantiate("AlCoralClient",(function(){return new o.AlCoralClientInstance}))},function(e,t){e.exports=require("@al/client")}])}));
{
"name": "@al/aecoral",
"version": "1.0.8",
"version": "1.0.9",
"license": "MIT",

@@ -44,5 +44,5 @@ "description": "A client for interacting with the Alert Logic Analytics Engine Correlations Public API",

"devDependencies": {
"@types/chai": "^4.1.7",
"@types/chai": "^4.2.6",
"@types/mocha": "^5.2.6",
"@types/sinon": "^7.0.11",
"@types/sinon": "^7.5.1",
"chai": "^4.2.0",

@@ -65,3 +65,3 @@ "karma": "^4.0.1",

"dependencies": {
"@al/client": "^1.1.9"
"@al/client": "^1.1.12"
},

@@ -68,0 +68,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc