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

@cosmicjs/blocks

Package Overview
Dependencies
Maintainers
3
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cosmicjs/blocks - npm Package Compare versions

Comparing version 0.0.81 to 0.0.82

10

index.js

@@ -115,10 +115,8 @@ #!/usr/bin/env node

const endTime = performance.now()
const speed = ((endTime - startTime) / 1000).toFixed(2)
console.log(
chalk.greenBright(
`ϟ Executed superfast in ${((endTime - startTime) / 1000).toFixed(
2
)} seconds!`
if (speed < 10)
console.log(
chalk.greenBright(`ϟ Executed superfast in ${speed} seconds!`)
)
)

@@ -125,0 +123,0 @@ console.log(

2

package.json

@@ -7,3 +7,3 @@ {

},
"version": "0.0.81",
"version": "0.0.82",
"description": "Cosmic blocks setup",

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

@@ -176,8 +176,2 @@ import fs from "fs"

updateTailwindConfig(tailwindConfigTSPath, cosmicTailwindPath)
} else {
console.log(
chalk.red(
"✗ Error locating tailwind config file. Please add cosmic folder to your content path manually."
)
)
}

@@ -189,8 +183,9 @@ }

const regex = /content:\s*\[["'].*["']\]/g
const regex = /content:\s*\[\s*[\s\S]*?\s*\]/g
const match = content.match(regex)
if (match.length > 0) {
if (match?.length > 0) {
let arrayString = match[0].replace("content: ", "")
arrayString = arrayString.replace(/'/g, '"')
arrayString = arrayString.replace(/'/g, '"').replace(/,(?=[^,]*$)/, "")
let parsedArray = JSON.parse(arrayString)

@@ -214,2 +209,8 @@ const hasCosmicPath = parsedArray.includes(cosmicPath)

}
} else {
console.log(
chalk.red(
"✗ Error locating tailwind config file. Please add cosmic folder to your content path manually."
)
)
}

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