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

reshow

Package Overview
Dependencies
Maintainers
1
Versions
281
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reshow - npm Package Compare versions

Comparing version 0.0.13 to 0.0.20

6

build/src/actions/dispatcher.js

@@ -10,3 +10,3 @@ 'use strict';

var instance = new _flux.Dispatcher();
var dispatchServer = new _flux.Dispatcher();

@@ -16,3 +16,3 @@ // dispatch server

// const instance = new PageStore(dispatchServer);
exports.default = instance;
exports.default = dispatchServer;

@@ -23,2 +23,2 @@ // dispatch notify

var dispatch = exports.dispatch = instance.dispatch.bind(instance);
var dispatch = exports.dispatch = dispatchServer.dispatch.bind(dispatchServer);

@@ -42,12 +42,4 @@ 'use strict';

}, {
key: 'updateUrl',
value: function updateUrl(url) {
history.pushState('', '', url);
}
}, {
key: 'reduce',
value: function reduce(state, action) {
if (action.url) {
this.updateUrl(action.url);
}
switch (action.type) {

@@ -54,0 +46,0 @@ case 'config/set':

@@ -17,2 +17,4 @@ 'use strict';

var _organismReactAjax = require('organism-react-ajax');
var _reshow = require('../organisms/reshow');

@@ -24,2 +26,4 @@

var _dispatcher = require('../../src/actions/dispatcher');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -70,10 +74,10 @@

setTimeout(function () {
self.setState({
updateWithUrl: updateWithUrl
(0, _organismReactAjax.ajaxDispatch)({
type: 'config/set',
params: {
updateWithUrl: updateWithUrl
}
});
updateWithUrl(curUrl);
});
window.onpopstate = function (e) {
updateWithUrl(document.URL);
};
}

@@ -80,0 +84,0 @@ }]);

@@ -40,3 +40,4 @@ 'use strict';

return {
themePath: _index.global.path
themePath: _index.global.path,
baseUrl: pageState.get('baseUrl')
};

@@ -74,7 +75,8 @@ }

var state = this.state;
return _jsx(_index.AjaxPage, {
return _jsx(_index.AjaxPage
/*State*/
, {
themePath: state.themePath,
baseUrl: state.baseUrl,
themes: props.themes,
themePath: state.themePath,
baseUrl: props.baseUrl,
updateWithUrl: state.updateWithUrl,
ajax: props.ajax,

@@ -81,0 +83,0 @@ callback: function callback(json) {

{
"name": "reshow",
"version": "0.0.13",
"version": "0.0.20",
"description": "Flux Reducer Present Library",

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

"dependencies": {
"flux": "^2.1.1",
"immutable": "^3.7.4",
"organism-react-ajax": "^0.0.4"
"flux": "^2.1.1",
"immutable": "^3.7.4",
"organism-react-ajax": ">=0.0.8"
},

@@ -23,5 +23,5 @@ "devDependencies": {

"babel-plugin-add-module-exports": "^0.1.2",
"babel-plugin-transform-object-assign": "^6.8.0",
"babel-plugin-transform-react-constant-elements": "^6.9.1",
"babel-plugin-transform-react-inline-elements": "^6.8.0",
"babel-plugin-transform-react-constant-elements": "^6.9.1",
"babel-plugin-transform-object-assign": "^6.8.0",
"babel-preset-es2015": "^6.6.0",

@@ -28,0 +28,0 @@ "babel-preset-react": "^6.5.0",

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