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.6 to 0.0.8

8

build/src/stores/ajaxStore.js

@@ -138,7 +138,7 @@ 'use strict';

}
var updateWithUrl = state.get('updateWithUrl');
if (updateWithUrl) {
updateWithUrl(rawUrl);
}
if (!state.get('ajax')) {
var updateWithUrl = state.get('updateWithUrl');
if (updateWithUrl) {
updateWithUrl(rawUrl);
}
return state;

@@ -145,0 +145,0 @@ }

@@ -45,5 +45,4 @@ 'use strict';

value: function componentDidMount() {
window.onpopstate = function (e) {
var updateWithUrl = function updateWithUrl(url) {
var pageState = _ajaxStore2.default.getState();
var url = document.URL;
if (pageState.get('url') !== url) {

@@ -58,2 +57,15 @@ (0, _ajaxDispatcher.ajaxDispatch)({

};
setTimeout(function () {
(0, _ajaxDispatcher.ajaxDispatch)({
type: 'config/set',
params: {
updateWithUrl: updateWithUrl
}
});
});
window.onpopstate = function (e) {
var pageState = _ajaxStore2.default.getState();
var updateWithUrl = pageState.get('updateWithUrl');
updateWithUrl(document.URL);
};
}

@@ -60,0 +72,0 @@ }, {

{
"name": "organism-react-ajax",
"version": "0.0.6",
"version": "0.0.8",
"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