reactotron-core-contract
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [0.2.0](https://github.com/infinitered/reactotron/compare/reactotron-core-contract@0.1.1...reactotron-core-contract@0.2.0) (2023-12-08) | ||
### Features | ||
* **ui:** Display error if port is already in use ([#1335](https://github.com/infinitered/reactotron/issues/1335) by [@jamonholmgren](https://github.com/jamonholmgren)) ([e205e37](https://github.com/infinitered/reactotron/commit/e205e3704b5378b1807d781f7ba5ba3338dc7ff7)) | ||
### [0.1.1](https://github.com/infinitered/reactotron/compare/reactotron-core-contract@0.1.0...reactotron-core-contract@0.1.1) (2023-12-05) | ||
@@ -7,0 +14,0 @@ |
@@ -1,1 +0,1 @@ | ||
var CommandType={ApiResponse:"api.response",AsyncStorageMutation:"asyncStorage.mutation",Benchmark:"benchmark.report",ClientIntro:"client.intro",Display:"display",Image:"image",Log:"log",SagaTaskComplete:"saga.task.complete",StateActionComplete:"state.action.complete",StateKeysResponse:"state.keys.response",StateValuesChange:"state.values.change",StateValuesResponse:"state.values.response",StateBackupResponse:"state.backup.response",StateBackupRequest:"state.backup.request",StateRestoreRequest:"state.restore.request",StateActionDispatch:"state.action.dispatch",StateValuesSubscribe:"state.values.subscribe",StateKeysRequest:"state.keys.request",StateValuesRequest:"state.values.request",CustomCommandRegister:"customCommand.register",CustomCommandUnregister:"customCommand.unregister",Clear:"clear",ReplLsResponse:"repl.ls.response",ReplExecuteResponse:"repl.execute.response",DevtoolsOpen:"devtools.open",DevtoolsReload:"devtools.reload",EditorOpen:"editor.open",Storybook:"storybook",Overlay:"overlay"};function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}var isErrorStackFrame=function(a){return a&&"object"===_typeof(a)&&"fileName"in a&&"string"==typeof a.fileName&&"functionName"in a&&"string"==typeof a.functionName&&"lineNumber"in a&&"number"==typeof a.lineNumber&&(!("columnNumber"in a)||null===a.columnNumber||"number"==typeof a.columnNumber)},isErrorStackFrameArray=function(a){return Array.isArray(a)&&a.every(isErrorStackFrame)},ServerEvent={command:"command",start:"start",stop:"stop",connect:"connect",connectionEstablished:"connectionEstablished",disconnect:"disconnect"};export{CommandType,ServerEvent,isErrorStackFrame,isErrorStackFrameArray}; | ||
var CommandType={ApiResponse:"api.response",AsyncStorageMutation:"asyncStorage.mutation",Benchmark:"benchmark.report",ClientIntro:"client.intro",Display:"display",Image:"image",Log:"log",SagaTaskComplete:"saga.task.complete",StateActionComplete:"state.action.complete",StateKeysResponse:"state.keys.response",StateValuesChange:"state.values.change",StateValuesResponse:"state.values.response",StateBackupResponse:"state.backup.response",StateBackupRequest:"state.backup.request",StateRestoreRequest:"state.restore.request",StateActionDispatch:"state.action.dispatch",StateValuesSubscribe:"state.values.subscribe",StateKeysRequest:"state.keys.request",StateValuesRequest:"state.values.request",CustomCommandRegister:"customCommand.register",CustomCommandUnregister:"customCommand.unregister",Clear:"clear",ReplLsResponse:"repl.ls.response",ReplExecuteResponse:"repl.execute.response",DevtoolsOpen:"devtools.open",DevtoolsReload:"devtools.reload",EditorOpen:"editor.open",Storybook:"storybook",Overlay:"overlay"};function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}var isErrorStackFrame=function(a){return a&&"object"===_typeof(a)&&"fileName"in a&&"string"==typeof a.fileName&&"functionName"in a&&"string"==typeof a.functionName&&"lineNumber"in a&&"number"==typeof a.lineNumber&&(!("columnNumber"in a)||null===a.columnNumber||"number"==typeof a.columnNumber)},isErrorStackFrameArray=function(a){return Array.isArray(a)&&a.every(isErrorStackFrame)},ServerEvent={command:"command",start:"start",stop:"stop",connect:"connect",connectionEstablished:"connectionEstablished",disconnect:"disconnect",portUnavailable:"portUnavailable"};export{CommandType,ServerEvent,isErrorStackFrame,isErrorStackFrameArray}; |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var CommandType={ApiResponse:"api.response",AsyncStorageMutation:"asyncStorage.mutation",Benchmark:"benchmark.report",ClientIntro:"client.intro",Display:"display",Image:"image",Log:"log",SagaTaskComplete:"saga.task.complete",StateActionComplete:"state.action.complete",StateKeysResponse:"state.keys.response",StateValuesChange:"state.values.change",StateValuesResponse:"state.values.response",StateBackupResponse:"state.backup.response",StateBackupRequest:"state.backup.request",StateRestoreRequest:"state.restore.request",StateActionDispatch:"state.action.dispatch",StateValuesSubscribe:"state.values.subscribe",StateKeysRequest:"state.keys.request",StateValuesRequest:"state.values.request",CustomCommandRegister:"customCommand.register",CustomCommandUnregister:"customCommand.unregister",Clear:"clear",ReplLsResponse:"repl.ls.response",ReplExecuteResponse:"repl.execute.response",DevtoolsOpen:"devtools.open",DevtoolsReload:"devtools.reload",EditorOpen:"editor.open",Storybook:"storybook",Overlay:"overlay"};function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}var isErrorStackFrame=function(a){return a&&"object"===_typeof(a)&&"fileName"in a&&"string"==typeof a.fileName&&"functionName"in a&&"string"==typeof a.functionName&&"lineNumber"in a&&"number"==typeof a.lineNumber&&(!("columnNumber"in a)||null===a.columnNumber||"number"==typeof a.columnNumber)},isErrorStackFrameArray=function(a){return Array.isArray(a)&&a.every(isErrorStackFrame)},ServerEvent={command:"command",start:"start",stop:"stop",connect:"connect",connectionEstablished:"connectionEstablished",disconnect:"disconnect"};exports.CommandType=CommandType,exports.ServerEvent=ServerEvent,exports.isErrorStackFrame=isErrorStackFrame,exports.isErrorStackFrameArray=isErrorStackFrameArray; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var CommandType={ApiResponse:"api.response",AsyncStorageMutation:"asyncStorage.mutation",Benchmark:"benchmark.report",ClientIntro:"client.intro",Display:"display",Image:"image",Log:"log",SagaTaskComplete:"saga.task.complete",StateActionComplete:"state.action.complete",StateKeysResponse:"state.keys.response",StateValuesChange:"state.values.change",StateValuesResponse:"state.values.response",StateBackupResponse:"state.backup.response",StateBackupRequest:"state.backup.request",StateRestoreRequest:"state.restore.request",StateActionDispatch:"state.action.dispatch",StateValuesSubscribe:"state.values.subscribe",StateKeysRequest:"state.keys.request",StateValuesRequest:"state.values.request",CustomCommandRegister:"customCommand.register",CustomCommandUnregister:"customCommand.unregister",Clear:"clear",ReplLsResponse:"repl.ls.response",ReplExecuteResponse:"repl.execute.response",DevtoolsOpen:"devtools.open",DevtoolsReload:"devtools.reload",EditorOpen:"editor.open",Storybook:"storybook",Overlay:"overlay"};function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}var isErrorStackFrame=function(a){return a&&"object"===_typeof(a)&&"fileName"in a&&"string"==typeof a.fileName&&"functionName"in a&&"string"==typeof a.functionName&&"lineNumber"in a&&"number"==typeof a.lineNumber&&(!("columnNumber"in a)||null===a.columnNumber||"number"==typeof a.columnNumber)},isErrorStackFrameArray=function(a){return Array.isArray(a)&&a.every(isErrorStackFrame)},ServerEvent={command:"command",start:"start",stop:"stop",connect:"connect",connectionEstablished:"connectionEstablished",disconnect:"disconnect",portUnavailable:"portUnavailable"};exports.CommandType=CommandType,exports.ServerEvent=ServerEvent,exports.isErrorStackFrame=isErrorStackFrame,exports.isErrorStackFrameArray=isErrorStackFrameArray; |
@@ -86,2 +86,6 @@ import WebSocket from "ws"; | ||
readonly disconnect: "disconnect"; | ||
/** | ||
* Port is already in use | ||
*/ | ||
readonly portUnavailable: "portUnavailable"; | ||
}; | ||
@@ -94,2 +98,3 @@ export type ServerEventKey = keyof typeof ServerEvent; | ||
type DisconnectPayload = any; | ||
type PortUnavailablePayload = any; | ||
export type ServerEventMap = { | ||
@@ -102,4 +107,5 @@ [ServerEvent.command]: Command; | ||
[ServerEvent.disconnect]: DisconnectPayload; | ||
[ServerEvent.portUnavailable]: PortUnavailablePayload; | ||
}; | ||
export type WebSocketEvent = (socket: WebSocket) => void; | ||
export {}; |
{ | ||
"name": "reactotron-core-contract", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Typescript contracts for websocket messages between server and clients", | ||
@@ -5,0 +5,0 @@ "author": "Infinite Red", |
@@ -95,2 +95,6 @@ import WebSocket from "ws" | ||
disconnect: "disconnect", | ||
/** | ||
* Port is already in use | ||
*/ | ||
portUnavailable: "portUnavailable", | ||
} as const | ||
@@ -105,2 +109,3 @@ | ||
type DisconnectPayload = any | ||
type PortUnavailablePayload = any | ||
@@ -114,4 +119,5 @@ export type ServerEventMap = { | ||
[ServerEvent.disconnect]: DisconnectPayload | ||
[ServerEvent.portUnavailable]: PortUnavailablePayload | ||
} | ||
export type WebSocketEvent = (socket: WebSocket) => void |
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
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
27027
580