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

nixy

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nixy - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

24

compiler.js

@@ -20,5 +20,9 @@ const path = require('path');

function isGlobalRef(refName) {
return refName.startsWith('$') || refName.startsWith('global_');
}
function hashRef(file, refName) {
let strToHash;
if (refName.startsWith('$') || refName.startsWith('global_')) {
if (isGlobalRef(refName)) {
strToHash = refName;

@@ -913,5 +917,10 @@ }

const str = [...matchedRefs].map((key) => {
const val = refs[key];
let val = refs[key];
if (!val) {
throw new Error(`ref ${key} not found in ${options.file} but referenced in JS`);
if (isGlobalRef(key)) {
val = addRef([], key);
}
else {
throw new Error(`ref ${key} not found in ${options.file} but referenced in JS`);
}
}

@@ -928,5 +937,10 @@ return `${key}: $selectByClass('${val}')`;

.replace(/\bref:([a-zA-Z0-9$_]+)\b/g, (match, g1) => {
const val = refs[g1];
let val = refs[g1];
if (!val) {
throw new Error(`ref ${g1} not found in ${options.file} but referenced in CSS`);
if (isGlobalRef(g1)) {
val = addRef([], g1);
}
else {
throw new Error(`ref ${g1} not found in ${options.file} but referenced in CSS`);
}
}

@@ -933,0 +947,0 @@ return `.${val}`;

{
"name": "nixy",
"version": "0.0.21",
"version": "0.0.22",
"description": "HTML templating framework focused on SSR and performance",

@@ -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