MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / isConnectionLike

Function isConnectionLike

devtools/modules/importManager.js:87–92  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

85}
86
87function isConnectionLike(data) {
88 return data &&
89 typeof data === 'object' &&
90 typeof data.url === 'string' &&
91 Array.isArray(data.messages);
92}
93
94function normalizeConnection(connection, index) {
95 if (!connection || typeof connection !== 'object' || !Array.isArray(connection.messages)) {

Callers 1

normalizeImportDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected