organism-react-ajax
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -17,6 +17,2 @@ 'use strict'; | ||
var _path = require('path'); | ||
var _path2 = _interopRequireDefault(_path); | ||
var _ajaxDispatcher = require('../actions/ajaxDispatcher'); | ||
@@ -34,4 +30,2 @@ | ||
var AjaxState = _immutable2.default.Map(); | ||
var empty = function empty() {}; | ||
@@ -51,21 +45,7 @@ | ||
value: function getInitialState() { | ||
return AjaxState; | ||
return _immutable2.default.Map(); | ||
} | ||
}, { | ||
key: 'baseName', | ||
value: function baseName(s) { | ||
return _path2.default.basename(s); | ||
} | ||
}, { | ||
key: 'cookAjaxUrl', | ||
value: function cookAjaxUrl(state, ajaxUrl) { | ||
var json = state.get('jsonBaseName'); | ||
if (json) { | ||
if ('/' !== ajaxUrl.substr(-1)) { | ||
var index = baseName(ajaxUrl); | ||
ajaxUrl = ajaxUrl.replace(index, json); | ||
} else { | ||
ajaxUrl += json; | ||
} | ||
} | ||
return ajaxUrl; | ||
@@ -72,0 +52,0 @@ } |
{ | ||
"name": "organism-react-ajax", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "React Ajax", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/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
26421
541