@applitools/socket
Advanced tools
Comparing version 1.1.11 to 1.1.12
# Changelog | ||
## [1.1.12](https://github.com/applitools/eyes.sdk.javascript1/compare/js/socket@1.1.11...js/socket@1.1.12) (2023-10-17) | ||
### Code Refactoring | ||
* disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758)) | ||
### Dependencies | ||
* @applitools/utils bumped to 1.6.2 | ||
#### Code Refactoring | ||
* disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758)) | ||
* @applitools/logger bumped to 2.0.12 | ||
#### Code Refactoring | ||
* disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758)) | ||
## [1.1.11](https://github.com/applitools/eyes.sdk.javascript1/compare/js/socket@1.1.10...js/socket@1.1.11) (2023-09-25) | ||
@@ -4,0 +26,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.transport = void 0; | ||
const buffer_1 = require("buffer"); | ||
exports.transport = { | ||
@@ -29,14 +30,14 @@ isReady(socket) { | ||
serialize(data) { | ||
const header = Buffer.allocUnsafe(4); | ||
const buffer = Buffer.from(JSON.stringify(data)); | ||
const header = buffer_1.Buffer.allocUnsafe(4); | ||
const buffer = buffer_1.Buffer.from(JSON.stringify(data)); | ||
header.writeUint32BE(buffer.byteLength); | ||
const format = Buffer.concat([header, buffer]); | ||
const format = buffer_1.Buffer.concat([header, buffer]); | ||
return format; | ||
}, | ||
deserialize(data) { | ||
return JSON.parse(Buffer.from(data).toString()); | ||
return JSON.parse(buffer_1.Buffer.from(data).toString()); | ||
}, | ||
}; | ||
function splitMessages(data) { | ||
const buffer = Buffer.from(data); | ||
const buffer = buffer_1.Buffer.from(data); | ||
const messages = []; | ||
@@ -43,0 +44,0 @@ let offset = 0; |
{ | ||
"name": "@applitools/socket", | ||
"version": "1.1.11", | ||
"version": "1.1.12", | ||
"description": "Applitools implementation for bidi-communication protocol", | ||
@@ -45,4 +45,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@applitools/logger": "2.0.11", | ||
"@applitools/utils": "1.6.1" | ||
"@applitools/logger": "2.0.12", | ||
"@applitools/utils": "1.6.2" | ||
}, | ||
@@ -49,0 +49,0 @@ "devDependencies": { |
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
46094
575
+ Added@applitools/logger@2.0.12(transitive)
+ Added@applitools/utils@1.6.2(transitive)
- Removed@applitools/logger@2.0.11(transitive)
- Removed@applitools/utils@1.6.1(transitive)
Updated@applitools/logger@2.0.12
Updated@applitools/utils@1.6.2