Socket
Socket
Sign inDemoInstall

rsocket-core

Package Overview
Dependencies
Maintainers
4
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsocket-core - npm Package Compare versions

Comparing version 0.0.24 to 0.0.25

14

build/LiteBuffer.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc