@vrbo/catalyst-render
Advanced tools
Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "@vrbo/catalyst-render", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "A Hapi.js plugin to aid in server-side rendering using Handlebars and React.", | ||
@@ -30,2 +30,9 @@ "main": "lib/index.js", | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/homeaway/catalyst-render/issues" | ||
}, | ||
"engines": { | ||
"node": ">=8.0.0", | ||
"npm": ">=5.0.0" | ||
}, | ||
"keywords": [ | ||
@@ -32,0 +39,0 @@ "catalyst-render", |
@@ -1,2 +0,6 @@ | ||
# catalyst-render | ||
# @vrbo/catalyst-render | ||
[![NPM Version](https://img.shields.io/npm/v/@vrbo/catalyst-render.svg?style=flat-square)](https://www.npmjs.com/package/@vrbo/catalyst-render) | ||
[![Build Status](https://travis-ci.org/homeaway/catalyst-render.svg?branch=master)](https://travis-ci.org/homeaway/catalyst-render) | ||
[![Dependency Status](https://david-dm.org/homeaway/catalyst-render.svg?theme=shields.io)](https://david-dm.org/homeaway/catalyst-render) | ||
[![NPM Downloads](https://img.shields.io/npm/dm/@vrbo/catalyst-render.svg?style=flat-square)](https://npm-stat.com/charts.html?package=@vrbo/catalyst-render) | ||
@@ -26,7 +30,9 @@ * [Introduction](#introduction) | ||
"plugin": "require:@vrbo/catalyst-render", | ||
"routes": [{ | ||
"route": "require:./routes/application.js", | ||
"component": "require:../components/App/server.js", | ||
"template": "./templates/welcome.hbs" | ||
}] | ||
"options": { | ||
"routes": [{ | ||
"route": "require:./routes/application.js", | ||
"component": "require:../components/App/server.js", | ||
"template": "./templates/welcome.hbs" | ||
}] | ||
} | ||
} | ||
@@ -48,3 +54,3 @@ } | ||
const body = ReactDOMServer.renderToString(<Component/>); | ||
h.view(template, { body }) | ||
return h.view(template, { body }) | ||
}, | ||
@@ -86,2 +92,2 @@ id: 'root' | ||
* [Contributing](CONTRIBUTING.md) | ||
* [Changelog](CHANGELOG.md) | ||
* [Changelog](CHANGELOG.md) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
27697
0
91
1