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

metalsmith-react-templates

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-react-templates - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

7

lib/renderReactTemplates.js

@@ -26,8 +26,3 @@ 'use strict';

// i.e. React Server side rendering style
var staticConst = void 0 !== options.isStatic ? options.isStatic : true;
if (void 0 !== options.nonStatic) {
staticConst = !options.nonStatic;
console.warn('option: isStatic should be used instead of nonStatic.');
}
var isStatic = staticConst;
var isStatic = options.isStatic !== void 0 ? options.isStatic : true;

@@ -34,0 +29,0 @@ // Initialize the template as a factory

4

package.json
{
"name": "metalsmith-react-templates",
"version": "1.1.0",
"version": "2.0.0",
"description": "A metalsmith plugin to render files using ReactJS based templates",

@@ -8,2 +8,3 @@ "main": "lib/index.js",

"build": "babel ./src --out-dir ./lib",
"clean": "rm -rf ./lib",
"prepublish": "npm run build",

@@ -34,3 +35,2 @@ "pretest": "npm run build",

"devDependencies": {
"assert-dir-equal": "^1.0.1",
"babel": "^5.6.7",

@@ -37,0 +37,0 @@ "eslint": "^0.21.1",

@@ -98,7 +98,2 @@ # metalsmith-react-templates

#### `nonStatic` (optional) - Deprecated
default: `false`
Use `isStatic`; `nonStatic` is only included for backwards compatibility.
#### `directory` (optional)

@@ -105,0 +100,0 @@ default: `templates`

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