react-isomorphic-tools
Advanced tools
Comparing version 3.0.0-alpha.19 to 3.0.0-alpha.20
@@ -25,4 +25,6 @@ 'use strict'; | ||
var _ = require('./'); | ||
var _qs = require('qs'); | ||
var _qs2 = _interopRequireDefault(_qs); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -97,3 +99,3 @@ | ||
return _extends({}, rest, { | ||
search: (0, _.stringifyQuery)(to.query) | ||
search: _qs2.default.stringify(to.query, { addQueryPrefix: true }) | ||
}); | ||
@@ -100,0 +102,0 @@ } |
@@ -18,2 +18,6 @@ 'use strict'; | ||
var _qs = require('qs'); | ||
var _qs2 = _interopRequireDefault(_qs); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -136,4 +140,12 @@ | ||
}; | ||
this.stringifyQuery = function (params) { | ||
return _qs2.default.stringify(params, { addQueryPrefix: true }) || ''; | ||
}; | ||
this.parseQuery = function (queryString) { | ||
return _qs2.default.parse(queryString, { ignoreQueryPrefix: true }); | ||
}; | ||
}; | ||
exports.default = AbstractResolver; |
@@ -28,4 +28,2 @@ 'use strict'; | ||
var _ = require('../'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -64,3 +62,3 @@ | ||
this.init = function (routes, store, resolved) { | ||
this.init = function (routes, store, history, resolved) { | ||
if (!resolved) { | ||
@@ -70,5 +68,7 @@ _this2.routes = routes; | ||
_this2.resolved = []; | ||
_this2.history = history; | ||
} else { | ||
ReduxResolver.prototype.routes = routes; | ||
ReduxResolver.prototype.store = store; | ||
ReduxResolver.prototype.history = history; | ||
ReduxResolver.prototype.resolved = resolved; | ||
@@ -125,3 +125,3 @@ } | ||
params: params, | ||
location: _extends({}, location, { query: (0, _.parseQuery)(search) }), | ||
location: _extends({}, location, { query: _this2.parseQuery(search) }), | ||
fetcher: fetcher, | ||
@@ -128,0 +128,0 @@ fetchToState: function fetchToState() { |
{ | ||
"name": "react-isomorphic-tools", | ||
"version": "3.0.0-alpha.19", | ||
"version": "3.0.0-alpha.20", | ||
"description": "Authorization, Fetcher, Preload. Tools for ServerSide rendering", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137492
1339