Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@based/client

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@based/client - npm Package Compare versions

Comparing version 4.7.4 to 4.7.5

28

dist/outgoing/protocol.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
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;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.encodeAuthMessage = exports.encodePublishMessage = exports.encodeFunctionMessage = exports.encodeObserveMessage = exports.encodeSubscribeChannelMessage = exports.encodeGetObserveMessage = void 0;
const fflate_1 = __importDefault(require("fflate"));
const fflate = __importStar(require("fflate"));
const encoder = new TextEncoder();

@@ -40,3 +60,3 @@ const storeUint8 = (buff, n, start, len) => {

if (!noDeflate && p.length > 150) {
p = fflate_1.default.deflateSync(p);
p = fflate.deflateSync(p);
isDeflate = true;

@@ -43,0 +63,0 @@ }

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
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;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.initStorageBrowser = exports.setStorageBrowser = exports.clearStorageBrowser = exports.removeStorageBrowser = void 0;
const fflate_1 = __importDefault(require("fflate"));
const fflate = __importStar(require("fflate"));
const utils_1 = require("@saulx/utils");
const decode = (dataURI) => {
const data = (0, utils_1.decodeBase64)(dataURI);
const uncompressed = (0, utils_1.uft8ToString)(fflate_1.default.inflateSync(data));
const uncompressed = (0, utils_1.uft8ToString)(fflate.inflateSync(data));
const parsed = JSON.parse(uncompressed);

@@ -49,3 +69,3 @@ return parsed;

const encoded = stringifiedJson.length > 70 || key === '@based-authState-' + env
? (0, utils_1.encodeBase64)(fflate_1.default.deflateSync((0, utils_1.stringToUtf8)(stringifiedJson)))
? (0, utils_1.encodeBase64)(fflate.deflateSync((0, utils_1.stringToUtf8)(stringifiedJson)))
: stringifiedJson;

@@ -52,0 +72,0 @@ const blob = new Blob([encoded]);

2

package.json
{
"name": "@based/client",
"version": "4.7.4",
"version": "4.7.5",
"license": "MIT",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

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