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

open-props

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open-props - npm Package Compare versions

Comparing version 1.3.12 to 1.3.13

22

build/to-stylesheet.js

@@ -17,5 +17,2 @@ import fs from 'fs'

if (prefix && prefix !== "''")
prop = `--${prefix}-` + prop.slice(2)
if (prop.includes('animation')) {

@@ -26,2 +23,8 @@ let keyframes = props[`${prop}-@`]

if (prefix && prefix !== "''") {
prop = `--${prefix}-` + prop.slice(2)
if (typeof(val) == "string" && val.includes("var(--"))
val = val.replace(/var\(--/g, `var(--${prefix}-`)
}
file.write(` ${prop}: ${val};\n`)

@@ -31,5 +34,15 @@ })

if (filename.includes('shadows')) {
appendedMeta += `
if (prefix && prefix !== "''") {
appendedMeta += `
@media (--OSdark) {
:where(html) {
--${prefix}-shadow-strength: 25%;
--${prefix}-shadow-color: 220 40% 2%;
}
}`
}
else {
appendedMeta += `
@media (--OSdark) {
:where(html) {
--shadow-strength: 25%;

@@ -39,2 +52,3 @@ --shadow-color: 220 40% 2%;

}`
}
}

@@ -41,0 +55,0 @@

4

package.json

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "1.3.12",
"version": "1.3.13",
"repository": {

@@ -101,3 +101,3 @@ "type": "git",

"gen:nowhere": "cd build && node props.js '' false",
"gen:prefixed": "cd build && node props.js 'op'",
"gen:prefixed": "cd build && node props.js 'op' true",
"lib:js": "npm run bundle:pre-edit && microbundle --no-sourcemap && npm run bundle:post-edit",

@@ -104,0 +104,0 @@ "lib:all": "postcss src/index.css -o open-props.min.css",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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