@metamask/json-rpc-engine
Advanced tools
Comparing version 8.0.1 to 8.0.2
@@ -10,2 +10,8 @@ # Changelog | ||
## [8.0.2] | ||
### Changed | ||
- Bump TypeScript version to `~4.9.5` ([#4084](https://github.com/MetaMask/core/pull/4084)) | ||
## [8.0.1] | ||
@@ -154,3 +160,4 @@ | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@8.0.1...HEAD | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@8.0.2...HEAD | ||
[8.0.2]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@8.0.1...@metamask/json-rpc-engine@8.0.2 | ||
[8.0.1]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@8.0.0...@metamask/json-rpc-engine@8.0.1 | ||
@@ -157,0 +164,0 @@ [8.0.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@7.3.3...@metamask/json-rpc-engine@8.0.0 |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkENMR2SJCjs = require('./chunk-ENMR2SJC.js'); | ||
var _chunkZYXL5TCSjs = require('./chunk-ZYXL5TCS.js'); | ||
require('./chunk-Z4BLTVTB.js'); | ||
exports.createAsyncMiddleware = _chunkENMR2SJCjs.createAsyncMiddleware; | ||
exports.createAsyncMiddleware = _chunkZYXL5TCSjs.createAsyncMiddleware; | ||
//# sourceMappingURL=createAsyncMiddleware.js.map |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkENMR2SJCjs = require('./chunk-ENMR2SJC.js'); | ||
var _chunkZYXL5TCSjs = require('./chunk-ZYXL5TCS.js'); | ||
@@ -15,6 +15,6 @@ | ||
var _chunkI2BVUFWRjs = require('./chunk-I2BVUFWR.js'); | ||
var _chunkVK4MHWJVjs = require('./chunk-VK4MHWJV.js'); | ||
var _chunkIPW2SZMYjs = require('./chunk-IPW2SZMY.js'); | ||
var _chunk2LXAFMJDjs = require('./chunk-2LXAFMJD.js'); | ||
require('./chunk-Z4BLTVTB.js'); | ||
@@ -28,3 +28,3 @@ | ||
exports.JsonRpcEngine = _chunkIPW2SZMYjs.JsonRpcEngine; exports.createAsyncMiddleware = _chunkENMR2SJCjs.createAsyncMiddleware; exports.createIdRemapMiddleware = _chunkPBQXMZM5js.createIdRemapMiddleware; exports.createScaffoldMiddleware = _chunk3AC2MINDjs.createScaffoldMiddleware; exports.getUniqueId = _chunkXDGWQHNYjs.getUniqueId; exports.mergeMiddleware = _chunkI2BVUFWRjs.mergeMiddleware; | ||
exports.JsonRpcEngine = _chunk2LXAFMJDjs.JsonRpcEngine; exports.createAsyncMiddleware = _chunkZYXL5TCSjs.createAsyncMiddleware; exports.createIdRemapMiddleware = _chunkPBQXMZM5js.createIdRemapMiddleware; exports.createScaffoldMiddleware = _chunk3AC2MINDjs.createScaffoldMiddleware; exports.getUniqueId = _chunkXDGWQHNYjs.getUniqueId; exports.mergeMiddleware = _chunkVK4MHWJVjs.mergeMiddleware; | ||
//# sourceMappingURL=index.js.map |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkIPW2SZMYjs = require('./chunk-IPW2SZMY.js'); | ||
var _chunk2LXAFMJDjs = require('./chunk-2LXAFMJD.js'); | ||
require('./chunk-Z4BLTVTB.js'); | ||
exports.JsonRpcEngine = _chunkIPW2SZMYjs.JsonRpcEngine; | ||
exports.JsonRpcEngine = _chunk2LXAFMJDjs.JsonRpcEngine; | ||
//# sourceMappingURL=JsonRpcEngine.js.map |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkI2BVUFWRjs = require('./chunk-I2BVUFWR.js'); | ||
require('./chunk-IPW2SZMY.js'); | ||
var _chunkVK4MHWJVjs = require('./chunk-VK4MHWJV.js'); | ||
require('./chunk-2LXAFMJD.js'); | ||
require('./chunk-Z4BLTVTB.js'); | ||
exports.mergeMiddleware = _chunkI2BVUFWRjs.mergeMiddleware; | ||
exports.mergeMiddleware = _chunkVK4MHWJVjs.mergeMiddleware; | ||
//# sourceMappingURL=mergeMiddleware.js.map |
import type { Json, JsonRpcParams, JsonRpcRequest, PendingJsonRpcResponse } from '@metamask/utils'; | ||
import type { JsonRpcMiddleware } from './JsonRpcEngine'; | ||
export declare type AsyncJsonRpcEngineNextCallback = () => Promise<void>; | ||
export declare type AsyncJsonrpcMiddleware<Params extends JsonRpcParams, Result extends Json> = (request: JsonRpcRequest<Params>, response: PendingJsonRpcResponse<Result>, next: AsyncJsonRpcEngineNextCallback) => Promise<void>; | ||
export type AsyncJsonRpcEngineNextCallback = () => Promise<void>; | ||
export type AsyncJsonrpcMiddleware<Params extends JsonRpcParams, Result extends Json> = (request: JsonRpcRequest<Params>, response: PendingJsonRpcResponse<Result>, next: AsyncJsonRpcEngineNextCallback) => Promise<void>; | ||
/** | ||
@@ -6,0 +6,0 @@ * JsonRpcEngine only accepts callback-based middleware directly. |
import type { Json, JsonRpcParams } from '@metamask/utils'; | ||
import type { JsonRpcMiddleware } from './JsonRpcEngine'; | ||
declare type ScaffoldMiddlewareHandler<Params extends JsonRpcParams, Result extends Json> = JsonRpcMiddleware<Params, Result> | Json; | ||
type ScaffoldMiddlewareHandler<Params extends JsonRpcParams, Result extends Json> = JsonRpcMiddleware<Params, Result> | Json; | ||
/** | ||
@@ -5,0 +5,0 @@ * Creates a middleware function from an object of RPC method handler functions, |
import SafeEventEmitter from '@metamask/safe-event-emitter'; | ||
import type { JsonRpcError as SerializedJsonRpcError, JsonRpcRequest, JsonRpcResponse, JsonRpcNotification, Json, JsonRpcParams, PendingJsonRpcResponse } from '@metamask/utils'; | ||
export declare type JsonRpcEngineCallbackError = Error | SerializedJsonRpcError | null; | ||
export declare type JsonRpcEngineReturnHandler = (done: (error?: JsonRpcEngineCallbackError) => void) => void; | ||
export declare type JsonRpcEngineNextCallback = (returnHandlerCallback?: JsonRpcEngineReturnHandler) => void; | ||
export declare type JsonRpcEngineEndCallback = (error?: JsonRpcEngineCallbackError) => void; | ||
export declare type JsonRpcMiddleware<Params extends JsonRpcParams, Result extends Json> = { | ||
export type JsonRpcEngineCallbackError = Error | SerializedJsonRpcError | null; | ||
export type JsonRpcEngineReturnHandler = (done: (error?: unknown) => void) => void; | ||
export type JsonRpcEngineNextCallback = (returnHandlerCallback?: JsonRpcEngineReturnHandler) => void; | ||
export type JsonRpcEngineEndCallback = (error?: unknown) => void; | ||
export type JsonRpcMiddleware<Params extends JsonRpcParams, Result extends Json> = { | ||
(req: JsonRpcRequest<Params>, res: PendingJsonRpcResponse<Result>, next: JsonRpcEngineNextCallback, end: JsonRpcEngineEndCallback): void; | ||
destroy?: () => void | Promise<void>; | ||
}; | ||
export declare type JsonRpcNotificationHandler<Params extends JsonRpcParams> = (notification: JsonRpcNotification<Params>) => void | Promise<void>; | ||
declare type JsonRpcEngineArgs = { | ||
export type JsonRpcNotificationHandler<Params extends JsonRpcParams> = (notification: JsonRpcNotification<Params>) => void | Promise<void>; | ||
type JsonRpcEngineArgs = { | ||
/** | ||
@@ -14,0 +14,0 @@ * A function for handling JSON-RPC notifications. A JSON-RPC notification is |
{ | ||
"name": "@metamask/json-rpc-engine", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"description": "A tool for processing JSON-RPC messages", | ||
@@ -66,3 +66,3 @@ "keywords": [ | ||
"typedoc": "^0.24.8", | ||
"typescript": "~4.8.4" | ||
"typescript": "~4.9.5" | ||
}, | ||
@@ -69,0 +69,0 @@ "packageManager": "yarn@3.3.0", |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
189254
1346
1