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

nest-jsx-template-engine

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nest-jsx-template-engine - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"name": "nest-jsx-template-engine",
"version": "0.2.0",
"version": "0.2.1",
"description": "JSX-based + typescript template engine for NestJS applications",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -10,11 +10,10 @@ function stringifyChildren(child: any): string {

stringifiedChild = child.join('\n')
}
// there's a value that exposes a `toString` coercion method
if (child && typeof child.toString === 'function') {
} else if (child && typeof child.toString === 'function') {
// there's a value that exposes a `toString` coercion method
stringifiedChild = child.toString();
}
// coerce a number of falsey varietes to a string
if (!child) {
// coerce a number of falsey varietes to a string, but exclude null,
// which is the standard behavior of React's JSX engine
if (!child && child !== null) {
stringifiedChild = `${child}`;

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