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

@ledgerhq/connect-kit-loader

Package Overview
Dependencies
Maintainers
21
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/connect-kit-loader - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1-beta.0

5

CHANGELOG.md

@@ -10,2 +10,7 @@ # Changelog

## 1.1.1-beta.0 - 2023-08-01
### Changed
- Expose chainId in the EthereumProvider type.
- Remove unfinished Solana support.
## 1.1.0 - 2023-06-22

@@ -12,0 +17,0 @@ Connect Kit now supports WalletConnect v2.

13

dist/esm/index.d.ts

@@ -41,2 +41,3 @@ export declare enum SupportedProviderImplementations {

session?: unknown;
chainId: string | number;
request<T = unknown>(args: EthereumRequestPayload): Promise<T>;

@@ -49,14 +50,6 @@ disconnect?: {

}
export interface SolanaProvider {
signTransaction(...args: unknown[]): Promise<unknown>;
signAllTransactions(...args: unknown[]): Promise<unknown>;
signAndSendTransaction(...args: unknown[]): Promise<unknown>;
connect(): Promise<void>;
disconnect(): Promise<void>;
}
export declare enum SupportedProviders {
Ethereum = "Ethereum",
Solana = "Solana"
Ethereum = "Ethereum"
}
export type ProviderResult = EthereumProvider | SolanaProvider;
export type ProviderResult = EthereumProvider;
export type GetProviderFunction = () => Promise<ProviderResult>;

@@ -63,0 +56,0 @@ export interface LedgerConnectKit {

@@ -1,1 +0,1 @@

function e(e,n,t,r){return new(t||(t=Promise))((function(o,c){function i(e){try{a(r.next(e))}catch(e){c(e)}}function u(e){try{a(r.throw(e))}catch(e){c(e)}}function a(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,u)}a((r=r.apply(e,n||[])).next())}))}function n(e,n){var t,r,o,c,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return c={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function u(u){return function(a){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(i=0)),i;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(e){u=[6,e],r=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}var t,r;function o(){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){return"https://cdn.jsdelivr.net/npm/@ledgerhq/connect-kit@1",e="ledgerConnectKit",[2,new Promise((function(n,t){var r="ledger-ck-script-".concat(e);if("undefined"!=typeof document)if(document.getElementById(r))n(window[e]);else{var o=document.createElement("script");o.src="https://cdn.jsdelivr.net/npm/@ledgerhq/connect-kit@1",o.id=r,o.addEventListener("load",(function(){n(window[e])})),o.addEventListener("error",(function(e){t(e.error)})),document.head.appendChild(o)}else t("Connect Kit does not support server side")}))]}))}))}!function(e){e.LedgerConnect="LedgerConnect",e.WalletConnect="WalletConnect"}(t||(t={})),function(e){e.Ethereum="Ethereum",e.Solana="Solana"}(r||(r={}));export{t as SupportedProviderImplementations,r as SupportedProviders,o as loadConnectKit};
function e(e,n,t,r){return new(t||(t=Promise))((function(o,c){function i(e){try{l(r.next(e))}catch(e){c(e)}}function u(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,u)}l((r=r.apply(e,n||[])).next())}))}function n(e,n){var t,r,o,c,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return c={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function u(u){return function(l){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(i=0)),i;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(e){u=[6,e],r=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}}var t,r;function o(){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){return"https://cdn.jsdelivr.net/npm/@ledgerhq/connect-kit@1",e="ledgerConnectKit",[2,new Promise((function(n,t){var r="ledger-ck-script-".concat(e);if("undefined"!=typeof document)if(document.getElementById(r))n(window[e]);else{var o=document.createElement("script");o.src="https://cdn.jsdelivr.net/npm/@ledgerhq/connect-kit@1",o.id=r,o.addEventListener("load",(function(){n(window[e])})),o.addEventListener("error",(function(e){t(e.error)})),document.head.appendChild(o)}else t("Connect Kit does not support server side")}))]}))}))}"function"==typeof SuppressedError&&SuppressedError,function(e){e.LedgerConnect="LedgerConnect",e.WalletConnect="WalletConnect"}(t||(t={})),function(e){e.Ethereum="Ethereum"}(r||(r={}));export{t as SupportedProviderImplementations,r as SupportedProviders,o as loadConnectKit};
{
"name": "@ledgerhq/connect-kit-loader",
"version": "1.1.0",
"version": "1.1.1-beta.0",
"description": "Load Ledger Connect Kit at runtime, a library for dApps to integrate with the Ledger Extension and Ledger Live",

@@ -5,0 +5,0 @@ "author": "Ledger SAS <ledger.com>",

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