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.16.4 to 0.16.5

61

build/cjs/src/index.js

@@ -7,56 +7,25 @@ "use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "AjaxForm", {
enumerable: true,
get: function get() {
return _AjaxForm["default"];
}
});
Object.defineProperty(exports, "AjaxLink", {
enumerable: true,
get: function get() {
return _AjaxLink["default"];
}
});
Object.defineProperty(exports, "AjaxPage", {
enumerable: true,
get: function get() {
return _AjaxPage["default"];
}
});
Object.defineProperty(exports, "ajaxDispatch", {
enumerable: true,
get: function get() {
return _ajaxStore.ajaxDispatch;
}
});
Object.defineProperty(exports, "ajaxStore", {
enumerable: true,
get: function get() {
return _ajaxStore["default"];
}
});
Object.defineProperty(exports, "formSerialize", {
enumerable: true,
get: function get() {
return _formSerializeJs["default"];
}
});
Object.defineProperty(exports, "initAjaxWorkerEvent", {
enumerable: true,
get: function get() {
return _ajaxStore.initAjaxWorkerEvent;
}
});
exports.__esModule = true;
exports.initAjaxWorkerEvent = exports.formSerialize = exports.ajaxStore = exports.ajaxDispatch = exports.AjaxPage = exports.AjaxLink = exports.AjaxForm = void 0;
var _AjaxLink = _interopRequireDefault(require("../ui/organisms/AjaxLink"));
exports.AjaxLink = _AjaxLink["default"];
var _AjaxPage = _interopRequireDefault(require("../ui/organisms/AjaxPage"));
exports.AjaxPage = _AjaxPage["default"];
var _AjaxForm = _interopRequireDefault(require("../ui/organisms/AjaxForm"));
exports.AjaxForm = _AjaxForm["default"];
var _ajaxStore = _interopRequireWildcard(require("./stores/ajaxStore"));
var _formSerializeJs = _interopRequireDefault(require("form-serialize-js"));
exports.ajaxStore = _ajaxStore["default"];
exports.ajaxDispatch = _ajaxStore.ajaxDispatch;
exports.initAjaxWorkerEvent = _ajaxStore.initAjaxWorkerEvent;
var _formSerializeJs = _interopRequireDefault(require("form-serialize-js"));
exports.formSerialize = _formSerializeJs["default"];

@@ -5,5 +5,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports["default"] = void 0;

@@ -10,0 +8,0 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports["default"] = void 0;
require("core-js/modules/es.function.name.js");
require("core-js/modules/es.date.to-json.js");
require("core-js/modules/web.url.to-json.js");
require("core-js/modules/es.date.to-string.js");
require("core-js/modules/es.array.is-array.js");
// dlog 0.1.1

@@ -9,0 +17,0 @@ // http://ddo.github.io/dlog

@@ -7,13 +7,23 @@ "use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.initAjaxWorkerEvent = exports.getRawUrl = exports["default"] = exports.ajaxDispatch = void 0;
var _slicedToArray2 = _interopRequireDefault(require("reshow-runtime/helpers/slicedToArray"));
require("core-js/modules/es.object.to-string.js");
var _classCallCheck2 = _interopRequireDefault(require("reshow-runtime/helpers/classCallCheck"));
require("core-js/modules/es.promise.js");
var _createClass2 = _interopRequireDefault(require("reshow-runtime/helpers/createClass"));
require("core-js/modules/es.array.for-each.js");
require("core-js/modules/web.dom-collections.for-each.js");
require("core-js/modules/es.regexp.exec.js");
require("core-js/modules/es.string.split.js");
require("core-js/modules/web.immediate.js");
require("core-js/modules/web.timers.js");
require("core-js/modules/es.string.replace.js");
var _defineProperty2 = _interopRequireDefault(require("reshow-runtime/helpers/defineProperty"));

@@ -155,4 +165,4 @@

var getRawUrl = function getRawUrl() {
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
var getRawUrl = function getRawUrl(_temp) {
var _ref = _temp === void 0 ? {} : _temp,
url = _ref.url,

@@ -208,255 +218,243 @@ path = _ref.path,

function handleAjax() {
(0, _classCallCheck2["default"])(this, handleAjax);
(0, _defineProperty2["default"])(this, "queue", []);
}
(0, _createClass2["default"])(handleAjax, [{
key: "worker",
value: function worker(data) {
var _this = this;
var _proto = handleAjax.prototype;
if (isWorkerReady && fakeWorker) {
setImmediate(function () {
var disableWebWorker = (0, _getObjectValue["default"])(data, ["action", "params", "disableWebWorker"]);
var run = disableWebWorker ? fakeWorker : gWorker;
run.postMessage(data);
_proto.worker = function worker(data) {
var _this = this;
if (isWorkerReady && fakeWorker) {
setImmediate(function () {
var disableWebWorker = (0, _getObjectValue["default"])(data, ["action", "params", "disableWebWorker"]);
var run = disableWebWorker ? fakeWorker : gWorker;
run.postMessage(data);
});
} else {
if (false === fakeWorker) {
initFakeWorker(function () {
_this.queue.forEach(function (d) {
return _this.worker(d);
});
});
} else {
if (false === fakeWorker) {
initFakeWorker(function () {
_this.queue.forEach(function (d) {
return _this.worker(d);
});
});
fakeWorker = null;
}
fakeWorker = null;
}
this.queue.push(data);
}
this.queue.push(data);
}
}, {
key: "start",
value: function start(state) {
return state.set("isRunning", 1);
}
}, {
key: "done",
value: function done() {
// update progress should run very end.
setTimeout(function () {
return ajaxDispatch({
isRunning: 0
});
}, 500);
}
}, {
key: "storeCallback",
value: function storeCallback(action) {
var cb = (0, _getObjectValue["default"])(action, ["params", "callback"]);
};
if (cb) {
var cbKey = (0, _getRandomId.getSN)("cb");
Callbacks[cbKey] = cb;
action.params.callback = cbKey;
}
_proto.start = function start(state) {
return state.set("isRunning", 1);
};
var err = (0, _getObjectValue["default"])(action, ["params", "errorCallback"]);
_proto.done = function done() {
// update progress should run very end.
setTimeout(function () {
return ajaxDispatch({
isRunning: 0
});
}, 500);
};
if (err) {
var errCbKey = (0, _getRandomId.getSN)("err");
Callbacks[errCbKey] = err;
action.params.errorCallback = errCbKey;
}
_proto.storeCallback = function storeCallback(action) {
var cb = (0, _getObjectValue["default"])(action, ["params", "callback"]);
var wcb = (0, _getObjectValue["default"])(action, ["params", "workerCallback"]);
if (cb) {
var cbKey = (0, _getRandomId.getSN)("cb");
Callbacks[cbKey] = cb;
action.params.callback = cbKey;
}
if (wcb) {
action.params.workerCallback = wcb + "";
}
var err = (0, _getObjectValue["default"])(action, ["params", "errorCallback"]);
return action;
if (err) {
var errCbKey = (0, _getRandomId.getSN)("err");
Callbacks[errCbKey] = err;
action.params.errorCallback = errCbKey;
}
}, {
key: "setWsAuth",
value: function setWsAuth(key, data) {
wsAuth = wsAuth.set(key, data);
var wcb = (0, _getObjectValue["default"])(action, ["params", "workerCallback"]);
if (wcb) {
action.params.workerCallback = wcb + "";
}
}, {
key: "getWsAuth",
value: function getWsAuth(key) {
if (!key) {
return wsAuth.toJS();
} else {
return wsAuth.get(key).toJS();
}
}
}, {
key: "initWs",
value: function initWs(state, action) {
var params = (0, _getObjectValue["default"])(action, ["params"], {});
var url = params.url;
if (url) {
this.worker({
params: params,
ws: url,
type: "initWs"
});
}
return action;
};
return state;
_proto.setWsAuth = function setWsAuth(key, data) {
wsAuth = wsAuth.set(key, data);
};
_proto.getWsAuth = function getWsAuth(key) {
if (!key) {
return wsAuth.toJS();
} else {
return wsAuth.get(key).toJS();
}
}, {
key: "closeWs",
value: function closeWs(state, action) {
var url = (0, _getObjectValue["default"])(action, ["params", "url"]);
};
if (url) {
this.worker({
ws: url,
type: "closeWs"
});
}
_proto.initWs = function initWs(state, action) {
var params = (0, _getObjectValue["default"])(action, ["params"], {});
var url = params.url;
return state;
if (url) {
this.worker({
params: params,
ws: url,
type: "initWs"
});
}
}, {
key: "ajaxGet",
value: function ajaxGet(state, action) {
var _this2 = this;
var params = action.params;
var rawUrl = getRawUrl(params);
return state;
};
if (params.updateUrl && store.urlDispatch && rawUrl !== document.URL) {
store.urlDispatch({
type: "url",
url: rawUrl
});
}
_proto.closeWs = function closeWs(state, action) {
var url = (0, _getObjectValue["default"])(action, ["params", "url"]);
if (params.disableAjax) {
return this.applyCallback(state, {
params: {
json: handleUseNewUrl(state, action, rawUrl),
disableAjax: params.disableAjax
}
});
}
if (url) {
this.worker({
ws: url,
type: "closeWs"
});
}
if (!params.disableProgress) {
state = this.start(state);
}
return state;
};
setImmediate(function () {
var ajaxUrl = cookAjaxUrl(params, rawUrl, state.get("globalHeaders"));
_proto.ajaxGet = function ajaxGet(state, action) {
var _this2 = this;
if (!params.query) {
params.query = {};
}
var params = action.params;
var rawUrl = getRawUrl(params);
if (!params.disableCacheBusting) {
params.query["--r"] = params.randomCacheBusting ? (0, _getRandomId["default"])() : Math.floor((0, _getRandomId.getTimestamp)() / 60000);
} else {
params.query["--r"] = state.get("staticVersion");
if (params.updateUrl && store.urlDispatch && rawUrl !== document.URL) {
store.urlDispatch({
type: "url",
url: rawUrl
});
}
if (params.disableAjax) {
return this.applyCallback(state, {
params: {
json: handleUseNewUrl(state, action, rawUrl),
disableAjax: params.disableAjax
}
_this2.worker({
type: "ajaxGet",
url: ajaxUrl,
action: _this2.storeCallback(action)
});
});
return state;
}
}, {
key: "ajaxPost",
value: function ajaxPost(state, action) {
var params = action.params;
if (!params.disableProgress) {
state = this.start(state);
if (!params.disableProgress) {
state = this.start(state);
}
setImmediate(function () {
var ajaxUrl = cookAjaxUrl(params, rawUrl, state.get("globalHeaders"));
if (!params.query) {
params.query = {};
}
var rawUrl = getRawUrl(params);
var ajaxUrl = cookAjaxUrl(params, rawUrl, state.get("globalHeaders"));
this.worker({
type: "ajaxPost",
if (!params.disableCacheBusting) {
params.query["--r"] = params.randomCacheBusting ? (0, _getRandomId["default"])() : Math.floor((0, _getRandomId.getTimestamp)() / 60000);
} else {
params.query["--r"] = state.get("staticVersion");
}
_this2.worker({
type: "ajaxGet",
url: ajaxUrl,
action: this.storeCallback(action)
action: _this2.storeCallback(action)
});
return state;
});
return state;
};
_proto.ajaxPost = function ajaxPost(state, action) {
var params = action.params;
if (!params.disableProgress) {
state = this.start(state);
}
}, {
key: "applyCallback",
value: function applyCallback(state, action) {
var sourceType = (0, _getObjectValue["default"])(action, ["sourceType"]);
var params = (0, _getObjectValue["default"])(action, ["params"], {});
if (!params.disableProgress) {
this.done();
}
var rawUrl = getRawUrl(params);
var ajaxUrl = cookAjaxUrl(params, rawUrl, state.get("globalHeaders"));
this.worker({
type: "ajaxPost",
url: ajaxUrl,
action: this.storeCallback(action)
});
return state;
};
var response = (0, _getObjectValue["default"])(params, ["response"]);
var text = (0, _getObjectValue["default"])(params, ["text"]);
var json = (0, _getObjectValue["default"])(params, ["json"], {});
var callback = getCallback(state, action, json, response);
var url = (0, _getObjectValue["default"])(params, ["url"]);
var isRedirect = null;
_proto.applyCallback = function applyCallback(state, action) {
var sourceType = (0, _getObjectValue["default"])(action, ["sourceType"]);
var params = (0, _getObjectValue["default"])(action, ["params"], {});
switch (json.type) {
case "ws-auth":
this.setWsAuth(url, json);
break;
if (!params.disableProgress) {
this.done();
}
default:
if ("ws" === sourceType) {
json[_reshowConstant.REAL_TIME_URL] = url;
json[_reshowConstant.REAL_TIME_DATA_KEY] = json;
}
var response = (0, _getObjectValue["default"])(params, ["response"]);
var text = (0, _getObjectValue["default"])(params, ["text"]);
var json = (0, _getObjectValue["default"])(params, ["json"], {});
var callback = getCallback(state, action, json, response);
var url = (0, _getObjectValue["default"])(params, ["url"]);
var isRedirect = null;
isRedirect = (0, _callFunc["default"])(callback, [json, text, response]);
break;
}
switch (json.type) {
case "ws-auth":
this.setWsAuth(url, json);
break;
if (false !== isRedirect) {
var loc = json.clientRedirectTo;
default:
if ("ws" === sourceType) {
json[_reshowConstant.REAL_TIME_URL] = url;
json[_reshowConstant.REAL_TIME_DATA_KEY] = json;
}
if (loc) {
switch (json.clientRedirectType) {
case "href":
location.href = loc;
break;
isRedirect = (0, _callFunc["default"])(callback, [json, text, response]);
break;
}
case "replace":
default:
location.replace(loc);
break;
}
if (false !== isRedirect) {
var loc = json.clientRedirectTo;
if (loc) {
switch (json.clientRedirectType) {
case "href":
location.href = loc;
break;
case "replace":
default:
location.replace(loc);
break;
}
}
}
if (params.disableAjax && false !== params.scrollBack || params.updateUrl && false !== params.scrollBack || params.scrollBack) {
(0, _smoothScrollTo["default"])(0);
if (params.disableAjax && false !== params.scrollBack || params.updateUrl && false !== params.scrollBack || params.scrollBack) {
(0, _smoothScrollTo["default"])(0);
}
return state.set("currentLocation", json.currentLocation);
};
_proto.handleUrlChange = function handleUrlChange(state, action) {
var url = (0, _getObjectValue["default"])(action, ["params", "url"], document.URL);
/**
* "!! Important !!" don't modify states of toggleBfChange and bfApplyUrl in other way,
* such as ajaxGet.
* Because this state should only trigger with bfchange.
*/
return this.applyCallback(state.set("toggleBfChange", !state.get("toggleBfChange")).set("bfApplyUrl", url), {
params: {
json: handleUseNewUrl(state, action, url)
}
});
};
return state.set("currentLocation", json.currentLocation);
}
}, {
key: "handleUrlChange",
value: function handleUrlChange(state, action) {
var url = (0, _getObjectValue["default"])(action, ["params", "url"], document.URL);
/**
* "!! Important !!" don't modify states of toggleBfChange and bfApplyUrl in other way,
* such as ajaxGet.
* Because this state should only trigger with bfchange.
*/
return this.applyCallback(state.set("toggleBfChange", !state.get("toggleBfChange")).set("bfApplyUrl", url), {
params: {
json: handleUseNewUrl(state, action, url)
}
});
}
}]);
return handleAjax;

@@ -518,5 +516,4 @@ }();

}),
_ImmutableStore2 = (0, _slicedToArray2["default"])(_ImmutableStore, 2),
store = _ImmutableStore2[0],
ajaxDispatch = _ImmutableStore2[1];
store = _ImmutableStore[0],
ajaxDispatch = _ImmutableStore[1];

@@ -523,0 +520,0 @@ exports.ajaxDispatch = ajaxDispatch;

@@ -7,17 +7,19 @@ "use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("reshow-runtime/helpers/classCallCheck"));
var _defineProperty2 = _interopRequireDefault(require("reshow-runtime/helpers/defineProperty"));
var _createClass2 = _interopRequireDefault(require("reshow-runtime/helpers/createClass"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("reshow-runtime/helpers/objectWithoutPropertiesLoose"));
var _defineProperty2 = _interopRequireDefault(require("reshow-runtime/helpers/defineProperty"));
require("core-js/modules/es.array.for-each.js");
var _typeof2 = _interopRequireDefault(require("reshow-runtime/helpers/typeof"));
require("core-js/modules/es.object.to-string.js");
var _objectWithoutProperties2 = _interopRequireDefault(require("reshow-runtime/helpers/objectWithoutProperties"));
require("core-js/modules/web.dom-collections.for-each.js");
require("core-js/modules/es.array.every.js");
require("core-js/modules/web.timers.js");
var _objectSpread2 = _interopRequireDefault(require("reshow-runtime/helpers/objectSpread2"));

@@ -145,3 +147,3 @@

xhr = res.xhr,
response = (0, _objectWithoutProperties2["default"])(res, _excluded);
response = (0, _objectWithoutPropertiesLoose2["default"])(res, _excluded);
action.params = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, action.params), {}, {

@@ -189,3 +191,3 @@ text: text,

responseType = _cookParams2.responseType,
params = (0, _objectWithoutProperties2["default"])(_cookParams2, _excluded2);
params = (0, _objectWithoutPropertiesLoose2["default"])(_cookParams2, _excluded2);

@@ -199,3 +201,3 @@ var isSend = false;

(0, _reshowConstant.KEYS)(query).every(function (key) {
if ("object" !== (0, _typeof2["default"])(query[key])) {
if ("object" !== typeof query[key]) {
return true;

@@ -224,3 +226,3 @@ }

xhr = res.xhr,
response = (0, _objectWithoutProperties2["default"])(res, _excluded3);
response = (0, _objectWithoutPropertiesLoose2["default"])(res, _excluded3);
action.params = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, action.params), {}, {

@@ -246,3 +248,2 @@ text: text,

function WebSocketHelper(url, params) {
(0, _classCallCheck2["default"])(this, WebSocketHelper);
(0, _defineProperty2["default"])(this, "isWsConnect", false);

@@ -256,99 +257,96 @@ this.ws = null;

(0, _createClass2["default"])(WebSocketHelper, [{
key: "open",
value: function open() {
var _this2 = this;
var _proto = WebSocketHelper.prototype;
if (this.isWsConnect) {
return;
}
_proto.open = function open() {
var _this2 = this;
var url = this.url;
var params = this.params;
/**
* Can't try catch
* WebSocket connection to 'xxx' failed
* use onerror instead.
*/
if (this.isWsConnect) {
return;
}
var ws = new WebSocket(url);
this.ws = ws;
var url = this.url;
var params = this.params;
/**
* Can't try catch
* WebSocket connection to 'xxx' failed
* use onerror instead.
*/
ws.onopen = function (e) {
_this2.isWsConnect = true;
var ws = new WebSocket(url);
this.ws = ws;
_this2.ping();
ws.onopen = function (e) {
_this2.isWsConnect = true;
var messages = params.messages;
_this2.ping();
if ((0, _getObjectValue["default"])(messages, ["length"])) {
messages.forEach(function (m) {
return ws.send(JSON.stringify(m));
});
}
};
var messages = params.messages;
ws.onerror = function (e) {
_this2.isWsConnect = false;
if ((0, _getObjectValue["default"])(messages, ["length"])) {
messages.forEach(function (m) {
return ws.send(JSON.stringify(m));
});
}
};
_this2.ping();
};
ws.onerror = function (e) {
_this2.isWsConnect = false;
ws.onmessage = function (e) {
switch (e.data) {
case "pong":
break;
_this2.ping();
};
default:
post({
type: "ws",
params: {
text: e.data,
url: url
}
});
break;
}
};
ws.onmessage = function (e) {
switch (e.data) {
case "pong":
break;
ws.onclose = function (e) {
_this2.isWsConnect = false;
console.warn("WS close.", url);
};
}
}, {
key: "close",
value: function close() {
this.ws.close();
this.clearPing();
}
}, {
key: "clearPing",
value: function clearPing() {
if (this.pingTimeout) {
clearTimeout(this.pingTimeout);
this.pingTimeout = null;
default:
post({
type: "ws",
params: {
text: e.data,
url: url
}
});
break;
}
};
ws.onclose = function (e) {
_this2.isWsConnect = false;
console.warn("WS close.", url);
};
};
_proto.close = function close() {
this.ws.close();
this.clearPing();
};
_proto.clearPing = function clearPing() {
if (this.pingTimeout) {
clearTimeout(this.pingTimeout);
this.pingTimeout = null;
}
}, {
key: "ping",
value: function ping() {
var _this3 = this;
};
this.clearPing();
this.pingTimeout = setTimeout(function () {
if (!_this3.isWsConnect) {
console.warn("Try restore ws connection.", _this3.url);
_proto.ping = function ping() {
var _this3 = this;
_this3.open();
} else {
_this3.ws.send(JSON.stringify({
type: "ping"
}));
}
this.clearPing();
this.pingTimeout = setTimeout(function () {
if (!_this3.isWsConnect) {
console.warn("Try restore ws connection.", _this3.url);
_this3.ping();
}, 15000);
}
}]);
_this3.open();
} else {
_this3.ws.send(JSON.stringify({
type: "ping"
}));
}
_this3.ping();
}, 15000);
};
return WebSocketHelper;

@@ -355,0 +353,0 @@ }();

@@ -7,5 +7,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports["default"] = void 0;

@@ -15,6 +13,4 @@

var _slicedToArray2 = _interopRequireDefault(require("reshow-runtime/helpers/slicedToArray"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("reshow-runtime/helpers/objectWithoutPropertiesLoose"));
var _objectWithoutProperties2 = _interopRequireDefault(require("reshow-runtime/helpers/objectWithoutProperties"));
var _react = _interopRequireWildcard(require("react"));

@@ -69,8 +65,7 @@

path = props.path,
rest = (0, _objectWithoutProperties2["default"])(props, _excluded);
rest = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
var _useState = (0, _react.useState)(propsAction),
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
action = _useState2[0],
setAction = _useState2[1];
action = _useState[0],
setAction = _useState[1];

@@ -77,0 +72,0 @@ (0, _react.useEffect)(function () {

@@ -7,5 +7,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports["default"] = void 0;

@@ -15,6 +13,4 @@

var _slicedToArray2 = _interopRequireDefault(require("reshow-runtime/helpers/slicedToArray"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("reshow-runtime/helpers/objectWithoutPropertiesLoose"));
var _objectWithoutProperties2 = _interopRequireDefault(require("reshow-runtime/helpers/objectWithoutProperties"));
var _react = _interopRequireWildcard(require("react"));

@@ -67,9 +63,8 @@

onTouchStart = props.onTouchStart,
rest = (0, _objectWithoutProperties2["default"])(props, _excluded);
rest = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
var isAlreadyTouchStart = (0, _react.useRef)(false);
var _useState = (0, _react.useState)(propsHref),
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
href = _useState2[0],
setHref = _useState2[1];
href = _useState[0],
setHref = _useState[1];

@@ -76,0 +71,0 @@ (0, _react.useEffect)(function () {

@@ -7,5 +7,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports["default"] = void 0;

@@ -12,0 +10,0 @@

{
"version": "0.16.4",
"version": "0.16.5",
"name": "organism-react-ajax",

@@ -4,0 +4,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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