Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

organism-react-ajax

Package Overview
Dependencies
Maintainers
1
Versions
302
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

organism-react-ajax - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

22

build/src/stores/ajaxStore.js

@@ -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 @@ }

2

package.json
{
"name": "organism-react-ajax",
"version": "0.0.8",
"version": "0.0.9",
"description": "React Ajax",

@@ -5,0 +5,0 @@ "main": "./build/src/index.js",

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