@applitools/utils
Advanced tools
Comparing version 1.6.1 to 1.6.2
# Changelog | ||
## [1.6.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/utils@1.6.1...js/utils@1.6.2) (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)) | ||
## [1.6.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/utils@1.6.0...js/utils@1.6.1) (2023-09-25) | ||
@@ -4,0 +11,0 @@ |
@@ -29,3 +29,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.math = exports.queues = exports.promises = exports.geometry = exports.general = exports.guard = exports.types = void 0; | ||
exports.streams = exports.math = exports.queues = exports.promises = exports.geometry = exports.general = exports.guard = exports.types = void 0; | ||
__exportStar(require("./utility-types"), exports); | ||
@@ -39,1 +39,2 @@ exports.types = __importStar(require("./types")); | ||
exports.math = __importStar(require("./math")); | ||
exports.streams = __importStar(require("./streams")); |
@@ -27,2 +27,3 @@ "use strict"; | ||
exports.pluralize = exports.extend = exports.wrap = exports.batchify = exports.cachify = exports.absolutizeUrl = exports.removeUndefinedProps = exports.toUriEncoding = exports.toUnAnchoredUri = exports.toString = exports.toJSON = exports.sleep = exports.jwtDecode = exports.shortid = exports.guid = exports.getEnvValue = void 0; | ||
const buffer_1 = require("buffer"); | ||
const types = __importStar(require("./types")); | ||
@@ -61,3 +62,3 @@ function getEnvValue(name, type) { | ||
payloadSeg = payloadSeg.replace(/-/g, '+').replace(/_/g, '/'); | ||
return JSON.parse(Buffer.from(payloadSeg, 'base64').toString()); | ||
return JSON.parse(buffer_1.Buffer.from(payloadSeg, 'base64').toString()); | ||
} | ||
@@ -64,0 +65,0 @@ exports.jwtDecode = jwtDecode; |
@@ -28,2 +28,3 @@ "use strict"; | ||
const stream_1 = require("stream"); | ||
const buffer_1 = require("buffer"); | ||
const general = __importStar(require("./general")); | ||
@@ -47,3 +48,3 @@ async function toBuffer(stream) { | ||
ended = true; | ||
resolve(Buffer.concat(chunks)); | ||
resolve(buffer_1.Buffer.concat(chunks)); | ||
} | ||
@@ -50,0 +51,0 @@ function onAbort() { |
{ | ||
"name": "@applitools/utils", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "applitools", |
@@ -9,1 +9,2 @@ export * from './utility-types'; | ||
export * as math from './math'; | ||
export * as streams from './streams'; |
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
79759
1463