@scrypted/client
Advanced tools
Comparing version 1.3.9 to 1.3.10
{ | ||
"name": "@scrypted/client", | ||
"version": "1.3.9", | ||
"version": "1.3.10", | ||
"description": "", | ||
@@ -16,10 +16,10 @@ "main": "dist/packages/client/src/index.js", | ||
"@types/ip": "^1.1.3", | ||
"@types/node": "^22.7.4", | ||
"@types/node": "^22.10.7", | ||
"@types/ws": "^8.5.13", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.6.2" | ||
"typescript": "^5.7.3" | ||
}, | ||
"dependencies": { | ||
"@scrypted/types": "^0.3.92", | ||
"engine.io-client": "^6.6.1", | ||
"@scrypted/types": "^0.3.100", | ||
"engine.io-client": "^6.6.2", | ||
"follow-redirects": "^1.15.9", | ||
@@ -26,0 +26,0 @@ "rimraf": "^6.0.1" |
@@ -18,9 +18,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -27,0 +37,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; |
@@ -155,2 +155,4 @@ "use strict"; | ||
ScryptedInterface["ColorSettingHsv"] = "ColorSettingHsv"; | ||
ScryptedInterface["Buttons"] = "Buttons"; | ||
ScryptedInterface["PressButtons"] = "PressButtons"; | ||
ScryptedInterface["Notifier"] = "Notifier"; | ||
@@ -157,0 +159,0 @@ ScryptedInterface["StartStop"] = "StartStop"; |
import { RpcSerializer } from "./rpc"; | ||
export declare class BufferSerializer implements RpcSerializer { | ||
serialize(value: Buffer): string; | ||
deserialize(serialized: any): Buffer; | ||
deserialize(serialized: any): Buffer<ArrayBuffer>; | ||
} | ||
@@ -9,3 +9,3 @@ export declare class SidebandBufferSerializer implements RpcSerializer { | ||
serialize(value: any, serializationContext?: any): string | number; | ||
deserialize(serialized: any, serializationContext?: any): Buffer; | ||
deserialize(serialized: any, serializationContext?: any): Buffer<ArrayBufferLike>; | ||
} |
@@ -387,2 +387,9 @@ "use strict"; | ||
if (copySerializeChildren) { | ||
if (Array.isArray(copySerializeChildren)) { | ||
const array = []; | ||
for (const val of copySerializeChildren) { | ||
array.push(this.deserialize(val, deserializationContext)); | ||
} | ||
return array; | ||
} | ||
const ret = {}; | ||
@@ -442,2 +449,11 @@ for (const [key, val] of Object.entries(value)) { | ||
if (value?.[RpcPeer.PROPERTY_JSON_COPY_SERIALIZE_CHILDREN] === true) { | ||
if (Array.isArray(value)) { | ||
const array = []; | ||
for (const val of value) { | ||
array.push(this.serialize(val, serializationContext)); | ||
} | ||
return { | ||
[RpcPeer.PROPERTY_JSON_COPY_SERIALIZE_CHILDREN]: array, | ||
}; | ||
} | ||
const ret = {}; | ||
@@ -444,0 +460,0 @@ for (const [key, val] of Object.entries(value)) { |
{ | ||
"name": "@scrypted/client", | ||
"version": "1.3.9", | ||
"version": "1.3.10", | ||
"description": "", | ||
@@ -16,10 +16,10 @@ "main": "dist/packages/client/src/index.js", | ||
"@types/ip": "^1.1.3", | ||
"@types/node": "^22.7.4", | ||
"@types/node": "^22.10.7", | ||
"@types/ws": "^8.5.13", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.6.2" | ||
"typescript": "^5.7.3" | ||
}, | ||
"dependencies": { | ||
"@scrypted/types": "^0.3.92", | ||
"engine.io-client": "^6.6.1", | ||
"@scrypted/types": "^0.3.100", | ||
"engine.io-client": "^6.6.2", | ||
"follow-redirects": "^1.15.9", | ||
@@ -26,0 +26,0 @@ "rimraf": "^6.0.1" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
690568
8254
Updated@scrypted/types@^0.3.100
Updatedengine.io-client@^6.6.2