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

@modus/gimbal-plugin-last-value

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modus/gimbal-plugin-last-value - npm Package Compare versions

Comparing version 1.1.14 to 1.2.0

6

lib/plugin-last-value/src/index.js
"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"
}
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