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

@kamkam1_0/datebook

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kamkam1_0/datebook - npm Package Compare versions

Comparing version 1.5.4 to 1.5.5

5

Classes/Calendar.js

@@ -197,5 +197,2 @@ const base = require("./base")

toText(){
//let text1 = `BEGIN:VCALENDAR;VERSION:2.0;PRODID:autoprog/kamkam;NAME:Work;X-WR-CALNAME:Work;TIMEZONE-ID:Europe/Paris;X-WR-TIMEZONE:Europe/Paris;BEGIN:VEVENT;UID:-${randomnumber};SEQUENCE:0;DTSTAMP:${new Date(Date.now())};DTSTART;TZID=Europe/Paris:${String(this.start).replaceAll("-", "").replaceAll(":", "")};DTEND;TZID=Europe/Paris:${String(this.end).replaceAll("-", "").replaceAll(":", "")}${this.title !== null ? `;SUMMARY:${this.title}` : ""}${this.location !== null ? `;LOCATION:${this.location}` : ""}${this.geo !== null ? `;GEO:${this.geo}` : ""};BEGIN:VALARM;ACTION:DISPLAY${this.description !== null ? `;DESCRIPTION:${this.description}` : ""};TRIGGER:${this.trigger};END:VALARM;STATUS:CONFIRMED;END:VEVENT;END:VCALENDAR`
if(!this.title || !this.start || !this.end) return 'Error'

@@ -234,3 +231,3 @@

let text = datas.filter(da => da.value !== null && da.value !== undefined && da.value !== "").map(da => {
if(da.name.startsWith("EXDATE")) return da.value.map(e => `${da.name}:${e}`).join("\n")
if(da.name.startsWith("EXDATE") && da.value.length > 0) return da.value.map(e => `${da.name}:${e}`).join("\n")
if(typeof da.value === "string") return `${da.name}:${da.value}`

@@ -237,0 +234,0 @@ if(typeof da.value === "object") return `${da.name}:`+ Object.entries(da.value).filter(dat => dat[1] !== null && dat[1] !== undefined && dat[1] !== "").map(dat => `${dat[0]}=${dat[1]}`).join(";")

2

package.json
{
"name": "@kamkam1_0/datebook",
"version": "1.5.4",
"version": "1.5.5",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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