rsocket-core
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -10,4 +10,5 @@ 'use strict'; | ||
const bufferExists = | ||
const hasGlobalBuffer = | ||
typeof global !== 'undefined' && global.hasOwnProperty('Buffer'); | ||
const hasBufferModule = _buffer.default.hasOwnProperty('Buffer'); | ||
@@ -590,3 +591,6 @@ function notImplemented(msg) { | ||
static isBuffer(obj) { | ||
return isInstance(obj, Buffer); | ||
return ( | ||
isInstance(obj, Buffer) || | ||
(!hasGlobalBuffer && hasBufferModule && isInstance(obj, Uint8Array)) | ||
); | ||
} | ||
@@ -980,4 +984,4 @@ | ||
if (!bufferExists) { | ||
if (_buffer.default.hasOwnProperty('Buffer')) { | ||
if (!hasGlobalBuffer) { | ||
if (hasBufferModule) { | ||
// ExistingBuffer is likely to be a polyfill, hence we can override it | ||
@@ -1002,3 +1006,3 @@ // eslint-disable-next-line no-undef | ||
const LiteBuffer = bufferExists ? global.Buffer : Buffer; | ||
const LiteBuffer = hasGlobalBuffer ? global.Buffer : Buffer; | ||
exports.LiteBuffer = LiteBuffer; |
{ | ||
"name": "rsocket-core", | ||
"description": "RSocket core", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"repository": { | ||
@@ -13,6 +13,6 @@ "type": "git", | ||
"fbjs": "^3.0.0", | ||
"rsocket-flowable": "^0.0.24", | ||
"rsocket-types": "^0.0.24" | ||
"rsocket-flowable": "^0.0.25", | ||
"rsocket-types": "^0.0.25" | ||
}, | ||
"gitHead": "b279d675698163447a31a920ffd7c50c07d647a6" | ||
"gitHead": "a85a4db0417717a8734b594e24de9c374eca2851" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
587380
12038
+ Addedrsocket-flowable@0.0.25(transitive)
+ Addedrsocket-types@0.0.25(transitive)
- Removedrsocket-flowable@0.0.24(transitive)
- Removedrsocket-types@0.0.24(transitive)
Updatedrsocket-flowable@^0.0.25
Updatedrsocket-types@^0.0.25