UNPKG

@etherspot/remote-signer

Version:

Etherspot Permissioned Signer SDK - signs the UserOp with SessionKey and sends it to the Bundler

1 lines 1.45 kB
{"version":3,"sources":["../../node_modules/ws/index.js","../../src/node-polyfill.ts"],"sourcesContent":["'use strict';\n\nconst WebSocket = require('./lib/websocket');\n\nWebSocket.createWebSocketStream = require('./lib/stream');\nWebSocket.Server = require('./lib/websocket-server');\nWebSocket.Receiver = require('./lib/receiver');\nWebSocket.Sender = require('./lib/sender');\n\nWebSocket.WebSocket = WebSocket;\nWebSocket.WebSocketServer = WebSocket.Server;\n\nmodule.exports = WebSocket;\n","/**\n * @ignore\n */\nlet WebSocketConstructor: { new (endpoint: string): WebSocket } = null;\n\ntry {\n if (typeof WebSocket !== 'undefined') {\n WebSocketConstructor = WebSocket;\n } else {\n WebSocketConstructor = require('ws');\n }\n} catch (err) {\n throw new Error('WebSocket not found. Please install `ws` for node.js');\n}\n\n// browsers don't have the `global` and WebSocket is available in window.WebSocket\nif (global) {\n (global as any).WebSocket = WebSocketConstructor;\n}\n"],"mappings":";;;;;;;;;;;;AAAA;AAAA;AAAA;AAEA,QAAMA,aAAY;AAElB,IAAAA,WAAU,wBAAwB;AAClC,IAAAA,WAAU,SAAS;AACnB,IAAAA,WAAU,WAAW;AACrB,IAAAA,WAAU,SAAS;AAEnB,IAAAA,WAAU,YAAYA;AACtB,IAAAA,WAAU,kBAAkBA,WAAU;AAEtC,WAAO,UAAUA;AAAA;AAAA;;;ACTjB,IAAI,uBAA8D;AAElE,IAAI;AACF,MAAI,OAAO,cAAc,aAAa;AACpC,2BAAuB;AAAA,EACzB,OAAO;AACL,2BAAuB;AAAA,EACzB;AACF,SAAS,KAAK;AACZ,QAAM,IAAI,MAAM,sDAAsD;AACxE;AAGA,IAAI,QAAQ;AACV,EAAC,OAAe,YAAY;AAC9B;","names":["WebSocket"]}