Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Commit

Permalink
Merge pull request #45 from samsel/working_master
Browse files Browse the repository at this point in the history
bumped version
  • Loading branch information
samsel committed Jun 22, 2015
2 parents e142193 + 0313894 commit 1519010
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.7.0 (June 22, 2015)

* Windows path fix (https://github.com/paypal/react-engine/pull/41)

## 1.6.0 (May 13, 2015)

* expose state/data on the client side using additional function called data. Helps in flux implementations, which need data even before booting.
Expand Down
6 changes: 3 additions & 3 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

'use strict';

var path = require('path');
var util = require('./util');
var assert = require('assert');
var Config = require('./config');
Expand All @@ -34,9 +35,6 @@ var TEMPLATE = ['<script id="%s" type="application/javascript">var ',
' = %s;</script>'
].join('');

// path utility to make path string compatible in different os
var path = require('path');

exports.create = function create(createOptions) {

createOptions = createOptions || {};
Expand Down Expand Up @@ -104,6 +102,8 @@ exports.create = function create(createOptions) {
});
}
else {
// path utility to make path string compatible in different OS
// ------------------------------------------------------------
// use `path.normalize()` to normalzie absolute view file path and absolute base directory path
// to prevent path strings like `/folder1/folder2/../../folder3/exampleFile`
// then, derive relative view file path
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-engine",
"version": "1.6.0",
"version": "1.7.0",
"description": "a composite render engine for express apps to render both plain react views and react-router views",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 1519010

Please sign in to comment.