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

tempura

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tempura - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

11

dist/index.js

@@ -9,2 +9,3 @@ const ESCAPE = /[&"<]/g, CHARS = {

const CURLY = /{{{?\s*([\s\S]*?)\s*}}}?/g;
const VAR = /(?:^|[-*+^|%/&=\s])([a-zA-Z$_][\w$]*)(?:(?=$|[-*+^|%/&=\s]))/g;
const ARGS = /([a-zA-Z$_][^\s=]*)\s*=\s*((["`'])(?:(?=(\\?))\4.)*?\3|{[^}]*}|\[[^\]]*]|\S+)/g;

@@ -93,6 +94,10 @@

else throw new Error(`Expected to close "${inner}" block; closed "${action}" instead`);
} else if (match[0].charAt(2) === '{') {
wip += '${' + inner + '}'; // {{{ raw }}}
} else {
wip += '${$$1(' + inner + ')}';
if (match[0].charAt(2) === '{') wip += '${' + inner + '}'; // {{{ raw }}}
else wip += '${$$1(' + inner + ')}';
if (options.loose) {
while (tmp = VAR.exec(inner)) {
initials.add(tmp[1]);
}
}
}

@@ -99,0 +104,0 @@ }

@@ -6,2 +6,3 @@ export type Args = Record<string, any>;

export interface Options {
loose?: boolean;
props?: string[];

@@ -8,0 +9,0 @@ blocks?: Blocks;

{
"name": "tempura",
"version": "0.2.0",
"version": "0.3.0",
"repository": "lukeed/tempura",

@@ -5,0 +5,0 @@ "description": "A light, crispy, and delicious template engine",

@@ -25,3 +25,3 @@ <div align="center">

* **Extremely lightweight**<br>
_Everything is `1.22 kB` (gzip) – even less with tree-shaking!_
_Everything is `1.23 kB` (gzip) – even less with tree-shaking!_

@@ -28,0 +28,0 @@ * **Super Performant**<br>

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