@ckb-lumos/rpc
Advanced tools
Comparing version 0.0.0-canary-ddb4d5e-20231128095921 to 0.0.0-canary-e34daa1-20240229110147
@@ -100,3 +100,3 @@ import { CKBComponents } from "../types/api"; | ||
getLiveCell: (outPoint: CKBComponents.OutPoint, withData: boolean) => Promise<{ | ||
cell: CKBComponents.LiveCell; | ||
cell: Option<CKBComponents.LiveCell>; | ||
status: CKBComponents.CellStatus; | ||
@@ -404,3 +404,4 @@ }>; | ||
} | ||
export type Option<T> = T | null; | ||
export {}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -13,3 +13,3 @@ "use strict"; | ||
var _crossFetch = _interopRequireDefault(require("cross-fetch")); | ||
var _abortController = require("abort-controller"); | ||
var _abortController = _interopRequireDefault(require("abort-controller")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -121,3 +121,3 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
}); | ||
const controller = new _abortController.AbortController(); | ||
const controller = new _abortController.default(); | ||
const signal = controller.signal; | ||
@@ -131,3 +131,3 @@ const timeout = setTimeout(() => controller.abort(), _classPrivateFieldGet(ctx, _config).timeout); | ||
body: JSON.stringify(payload), | ||
signal: signal | ||
signal | ||
}).then(res => res.json()); | ||
@@ -134,0 +134,0 @@ clearTimeout(timeout); |
@@ -8,3 +8,3 @@ "use strict"; | ||
var _exceptions = require("./exceptions"); | ||
var _abortController = require("abort-controller"); | ||
var _abortController = _interopRequireDefault(require("abort-controller")); | ||
var _crossFetch = _interopRequireDefault(require("cross-fetch")); | ||
@@ -55,3 +55,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const payload = this.getPayload(...params); | ||
const controller = new _abortController.AbortController(); | ||
const controller = new _abortController.default(); | ||
const signal = controller.signal; | ||
@@ -58,0 +58,0 @@ const timeout = setTimeout(() => controller.abort(), _classPrivateFieldGet(this, _config).timeout); |
{ | ||
"name": "@ckb-lumos/rpc", | ||
"version": "0.0.0-canary-ddb4d5e-20231128095921", | ||
"version": "0.0.0-canary-e34daa1-20240229110147", | ||
"description": "RPC module for CKB", | ||
@@ -29,4 +29,4 @@ "homepage": "https://github.com/ckb-js/lumos#readme", | ||
"dependencies": { | ||
"@ckb-lumos/base": "0.0.0-canary-ddb4d5e-20231128095921", | ||
"@ckb-lumos/bi": "0.0.0-canary-ddb4d5e-20231128095921", | ||
"@ckb-lumos/base": "0.0.0-canary-e34daa1-20240229110147", | ||
"@ckb-lumos/bi": "0.0.0-canary-e34daa1-20240229110147", | ||
"abort-controller": "^3.0.0", | ||
@@ -33,0 +33,0 @@ "cross-fetch": "^3.1.5" |
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
344984
3489
+ Added@ckb-lumos/base@0.0.0-canary-e34daa1-20240229110147(transitive)
+ Added@ckb-lumos/bi@0.0.0-canary-e34daa1-20240229110147(transitive)
+ Added@ckb-lumos/codec@0.0.0-canary-e34daa1-20240229110147(transitive)
+ Added@ckb-lumos/toolkit@0.0.0-canary-e34daa1-20240229110147(transitive)
- Removed@ckb-lumos/base@0.0.0-canary-ddb4d5e-20231128095921(transitive)
- Removed@ckb-lumos/bi@0.0.0-canary-ddb4d5e-20231128095921(transitive)
- Removed@ckb-lumos/codec@0.0.0-canary-ddb4d5e-20231128095921(transitive)
- Removed@ckb-lumos/toolkit@0.0.0-canary-ddb4d5e-20231128095921(transitive)