New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@civic/common-gateway-react

Package Overview
Dependencies
Maintainers
13
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@civic/common-gateway-react - npm Package Compare versions

Comparing version 0.13.0 to 0.13.1-beta.0

./dist/cjs/index.js

3

dist/cjs/gateway/GatewayContext.js

@@ -128,6 +128,7 @@ "use strict";

payer,
gatekeeperSendsTransaction,
inputExpiryMarginSeconds: expiryMarginSeconds,
partnerAppId,
});
}, [redirectUrl, expiryMarginSeconds, partnerAppId, payer]);
}, [redirectUrl, expiryMarginSeconds, partnerAppId, payer, gatekeeperSendsTransaction]);
const { network } = (chainImplementation === null || chainImplementation === void 0 ? void 0 : chainImplementation.httpConfig.queryParams) || {};

@@ -134,0 +135,0 @@ const { headers } = (chainImplementation === null || chainImplementation === void 0 ? void 0 : chainImplementation.httpConfig) || {};

@@ -12,2 +12,4 @@ import type { Action } from '../useReducer';

} | {
type: 'tokenListenerRemoved';
} | {
type: 'tokenExpectedTimerAdded';

@@ -14,0 +16,0 @@ listenerId: number;

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

return Object.assign(Object.assign({}, state), { tokenCreatedOrChangedListenerId: action.listenerId });
case 'tokenListenerRemoved':
return Object.assign(Object.assign({}, state), { tokenCreatedOrChangedListenerId: undefined });
case 'tokenOnChainFound':

@@ -34,2 +36,5 @@ return Object.assign(Object.assign({}, state), { fetchOnChainStatus: types_1.FetchStatus.COMPLETE });

const { gatekeeperRecordState, tokenCreatedOrChangedListenerId, gatekeeperNetworkAddress } = state;
const dispatchListenerRemoved = () => {
dispatch({ type: 'tokenListenerRemoved' });
};
const removeOnChainListener = (0, react_1.useCallback)((listenerId) => {

@@ -39,2 +44,3 @@ try {

logDebug('Removing onChainListener with id: ', listenerId);
dispatchListenerRemoved();
chainImplementation.removeOnGatewayTokenChangeListener(listenerId);

@@ -41,0 +47,0 @@ }

@@ -39,2 +39,3 @@ import { ChainType, GatewayToken, PendingPayload } from '../types';

partnerAppId: string | undefined;
gatekeeperSendsTransaction: boolean;
} | {

@@ -41,0 +42,0 @@ type: 'resetStateWithProps';

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

logDebug('updateStateWithProps', action);
return Object.assign(Object.assign({}, state), { renderIframe: false, redirectUrl: action.redirectUrl, payer: action.payer, inputExpiryMarginSeconds: action.inputExpiryMarginSeconds, partnerAppId: action.partnerAppId });
return Object.assign(Object.assign({}, state), { renderIframe: false, redirectUrl: action.redirectUrl, payer: action.payer, inputExpiryMarginSeconds: action.inputExpiryMarginSeconds, partnerAppId: action.partnerAppId, gatekeeperSendsTransaction: action.gatekeeperSendsTransaction });
case 'resetStateWithProps':

@@ -68,0 +68,0 @@ logDebug('resetStateWithProps', action);

@@ -99,6 +99,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";

payer,
gatekeeperSendsTransaction,
inputExpiryMarginSeconds: expiryMarginSeconds,
partnerAppId,
});
}, [redirectUrl, expiryMarginSeconds, partnerAppId, payer]);
}, [redirectUrl, expiryMarginSeconds, partnerAppId, payer, gatekeeperSendsTransaction]);
const { network } = (chainImplementation === null || chainImplementation === void 0 ? void 0 : chainImplementation.httpConfig.queryParams) || {};

@@ -105,0 +106,0 @@ const { headers } = (chainImplementation === null || chainImplementation === void 0 ? void 0 : chainImplementation.httpConfig) || {};

@@ -12,2 +12,4 @@ import type { Action } from '../useReducer';

} | {
type: 'tokenListenerRemoved';
} | {
type: 'tokenExpectedTimerAdded';

@@ -14,0 +16,0 @@ listenerId: number;

@@ -14,2 +14,4 @@ import { useCallback, useEffect } from 'react';

return Object.assign(Object.assign({}, state), { tokenCreatedOrChangedListenerId: action.listenerId });
case 'tokenListenerRemoved':
return Object.assign(Object.assign({}, state), { tokenCreatedOrChangedListenerId: undefined });
case 'tokenOnChainFound':

@@ -30,2 +32,5 @@ return Object.assign(Object.assign({}, state), { fetchOnChainStatus: FetchStatus.COMPLETE });

const { gatekeeperRecordState, tokenCreatedOrChangedListenerId, gatekeeperNetworkAddress } = state;
const dispatchListenerRemoved = () => {
dispatch({ type: 'tokenListenerRemoved' });
};
const removeOnChainListener = useCallback((listenerId) => {

@@ -35,2 +40,3 @@ try {

logDebug('Removing onChainListener with id: ', listenerId);
dispatchListenerRemoved();
chainImplementation.removeOnGatewayTokenChangeListener(listenerId);

@@ -37,0 +43,0 @@ }

@@ -39,2 +39,3 @@ import { ChainType, GatewayToken, PendingPayload } from '../types';

partnerAppId: string | undefined;
gatekeeperSendsTransaction: boolean;
} | {

@@ -41,0 +42,0 @@ type: 'resetStateWithProps';

@@ -61,3 +61,3 @@ import { prefixLogger } from '../logger';

logDebug('updateStateWithProps', action);
return Object.assign(Object.assign({}, state), { renderIframe: false, redirectUrl: action.redirectUrl, payer: action.payer, inputExpiryMarginSeconds: action.inputExpiryMarginSeconds, partnerAppId: action.partnerAppId });
return Object.assign(Object.assign({}, state), { renderIframe: false, redirectUrl: action.redirectUrl, payer: action.payer, inputExpiryMarginSeconds: action.inputExpiryMarginSeconds, partnerAppId: action.partnerAppId, gatekeeperSendsTransaction: action.gatekeeperSendsTransaction });
case 'resetStateWithProps':

@@ -64,0 +64,0 @@ logDebug('resetStateWithProps', action);

{
"name": "@civic/common-gateway-react",
"version": "0.13.0",
"version": "0.13.1-beta.0",
"main": "./dist/cjs/index.js",

@@ -36,3 +36,4 @@ "module": "./dist/esm/index.js",

"typescript": "^4.6.4"
}
},
"gitHead": "9731cbd6447aaded66ea9383907e502cc1cba993"
}
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