New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

skydiet-lib-node

Package Overview
Dependencies
Maintainers
0
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

skydiet-lib-node - npm Package Compare versions

Comparing version 1.0.52 to 1.0.53

9

dist/v2.js

@@ -163,5 +163,8 @@ "use strict";

const answerv2 = (questionAnswered, bankQuestions, attendanceMetActivities) => {
const question = bankQuestions.find((q) => q._id === questionAnswered._id);
if (!question) {
throw new Error("invalid question");
const question = questionAnswered;
if (questionAnswered._id) {
const question = bankQuestions.find((q) => q._id === questionAnswered._id);
if (!question) {
throw new Error("invalid question");
}
}

@@ -168,0 +171,0 @@ if (question.typeQuestion === IQuestion_1.TYPE_QUESTION.NO_AUTO_ANSWER) {

{
"name": "skydiet-lib-node",
"version": "1.0.52",
"version": "1.0.53",
"description": "Biblioteca para funções skydiet",

@@ -5,0 +5,0 @@ "author": "Daniel Cabral <cabralconsultoriaemsoftware@gmail.com>",

@@ -144,3 +144,3 @@ import { isEmpty, isNotEmpty } from "c2-util-front";

}
aq.childs = items.filter((item: IAttendanceQuestion) => item.category.includes(category) && item.questionOrigin && item.questionParent === aq.questionOrigin)

@@ -185,5 +185,10 @@ })

export const answerv2 = (questionAnswered: IAttendanceQuestion, bankQuestions: IAttendanceQuestion[], attendanceMetActivities: IAttendanceMetActivity[]): { questions: IAttendanceQuestion[], autoAnswers: IAttendanceQuestion[] } => {
const question = bankQuestions.find((q: IAttendanceQuestion) => q._id === questionAnswered._id)
if (!question) {
throw new Error("invalid question")
const question = questionAnswered;
if (questionAnswered._id) {
const question = bankQuestions.find((q) => q._id === questionAnswered._id);
if (!question) {
throw new Error("invalid question");
}
}

@@ -190,0 +195,0 @@

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