@modus/gimbal-plugin-last-value
Advanced tools
Comparing version 1.1.14 to 1.2.0
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -40,3 +41,2 @@ }); | ||
}; | ||
var _this = this; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -62,3 +62,3 @@ var deepmerge_1 = __importDefault(require("deepmerge")); | ||
}; | ||
var LastValue = function (pluginOptions, config) { return __awaiter(_this, void 0, void 0, function () { | ||
var LastValue = function (pluginOptions, config) { return __awaiter(void 0, void 0, void 0, function () { | ||
var bus, pluginConfig, event, program; | ||
@@ -65,0 +65,0 @@ return __generator(this, function (_a) { |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -40,3 +41,2 @@ }); | ||
}; | ||
var _this = this; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -65,3 +65,3 @@ var bytes_1 = __importDefault(require("bytes")); | ||
}; | ||
exports.createRenderer = function (pluginOptions, config) { return function (lastValue, item) { return __awaiter(_this, void 0, void 0, function () { | ||
exports.createRenderer = function (pluginOptions, config) { return function (lastValue, item) { return __awaiter(void 0, void 0, void 0, function () { | ||
var failure; | ||
@@ -68,0 +68,0 @@ return __generator(this, function (_a) { |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -40,9 +41,7 @@ }); | ||
}; | ||
var _this = this; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Queue_1 = __importDefault(require("@modus/gimbal-core/lib/utils/Queue")); | ||
var util_1 = require("./util"); | ||
var applyRow = function (archiveItem, config, report, pluginOptions) { return __awaiter(_this, void 0, void 0, function () { | ||
var applyRow = function (archiveItem, config, report, pluginOptions) { return __awaiter(void 0, void 0, void 0, function () { | ||
var failOnBreach, parent, success_1; | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
@@ -55,3 +54,3 @@ switch (_a.label) { | ||
success_1 = parent.success; | ||
return [4 /*yield*/, Promise.all(parent.data.map(function (item) { return __awaiter(_this, void 0, void 0, function () { | ||
return [4 /*yield*/, Promise.all(parent.data.map(function (item) { return __awaiter(void 0, void 0, void 0, function () { | ||
var match, diffInfo, itemFail; | ||
@@ -104,3 +103,3 @@ return __generator(this, function (_a) { | ||
}); }; | ||
exports.getLastReport = function (eventName, pluginOptions, config, report, EventEmitter) { return __awaiter(_this, void 0, void 0, function () { | ||
exports.getLastReport = function (eventName, pluginOptions, config, report, EventEmitter) { return __awaiter(void 0, void 0, void 0, function () { | ||
var _a, command, getEvent, row, archived, queue_1; | ||
@@ -133,3 +132,3 @@ return __generator(this, function (_b) { | ||
}); }; | ||
exports.saveReport = function (eventName, config, report, EventEmitter) { return __awaiter(_this, void 0, void 0, function () { | ||
exports.saveReport = function (eventName, config, report, EventEmitter) { return __awaiter(void 0, void 0, void 0, function () { | ||
var _a, command, saveEvent; | ||
@@ -136,0 +135,0 @@ return __generator(this, function (_b) { |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -44,3 +45,2 @@ }); | ||
}; | ||
var _this = this; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -92,3 +92,3 @@ var threshold_1 = __importStar(require("@modus/gimbal-core/lib/utils/threshold")); | ||
}; | ||
var getThresholdType = function (item, pluginOptions) { return __awaiter(_this, void 0, void 0, function () { | ||
var getThresholdType = function (item, pluginOptions) { return __awaiter(void 0, void 0, void 0, function () { | ||
var bus, getMeta, meta, thresholdType, thresholdTypes; | ||
@@ -115,3 +115,3 @@ return __generator(this, function (_a) { | ||
}); }; | ||
exports.getItemDiff = function (item, pluginOptions) { return __awaiter(_this, void 0, void 0, function () { | ||
exports.getItemDiff = function (item, pluginOptions) { return __awaiter(void 0, void 0, void 0, function () { | ||
var thresholdType; | ||
@@ -138,3 +138,3 @@ return __generator(this, function (_a) { | ||
/* eslint-disable-next-line import/prefer-default-export */ | ||
exports.doesItemFail = function (item, config, pluginOptions) { return __awaiter(_this, void 0, void 0, function () { | ||
exports.doesItemFail = function (item, config, pluginOptions) { return __awaiter(void 0, void 0, void 0, function () { | ||
var bus, getMeta, meta, thresholdType; | ||
@@ -141,0 +141,0 @@ return __generator(this, function (_a) { |
{ | ||
"name": "@modus/gimbal-plugin-last-value", | ||
"version": "1.1.14", | ||
"version": "1.2.0", | ||
"description": "Track last value for Gimbal audits", | ||
@@ -35,3 +35,3 @@ "homepage": "https://github.com/ModusCreateOrg/gimbal#readme", | ||
"dependencies": { | ||
"@modus/gimbal-core": "1.1.14", | ||
"@modus/gimbal-core": "1.2.0", | ||
"bytes": "3.1.0", | ||
@@ -43,3 +43,3 @@ "deepmerge": "4.0.0" | ||
}, | ||
"gitHead": "8876976e3dcd8411a066e3877b73f308e74322cb" | ||
"gitHead": "8566f48ab0b598fcc877dadd4c99f3fc2861873a" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37565
530
+ Added@modus/gimbal-core@1.2.0(transitive)
+ Addedcommander@3.0.1(transitive)
+ Addedspinnies@0.5.0(transitive)
- Removed@modus/gimbal-core@1.1.14(transitive)
- Removedcommander@2.20.0(transitive)
- Removedspinnies@0.4.3(transitive)
Updated@modus/gimbal-core@1.2.0