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

ririio-ssg

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ririio-ssg - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "ririio-ssg",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

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

@@ -10,3 +10,3 @@ const fs = require('fs')

// Used to check if the 2nd and 3rd index contains a value to determine whether the first line is a title
if (!lines[1].trim().length && !lines[2].trim()) {
if (!lines[1]?.trim().length && !lines[2]?.trim()) {
;[storyTitle] = lines

@@ -28,8 +28,8 @@ lines[0] = `<h1>${lines[0]}</h1>`

for (i; i < lines.length; ++i) {
if (lines[i].trim().length) {
if (lines[i]?.trim().length) {
lines[i] = `<p>${lines[i]}`
// Keep looping until the value of the line after the current one is empty
while (lines[i].trim().length) {
if (lines[i + 1].trim().length === 0) {
while (lines[i]?.trim().length) {
if (lines[i + 1]?.trim().length === 0) {
lines[i] = `${lines[i]}</p>`

@@ -36,0 +36,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