New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bf-lib-browser

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bf-lib-browser - npm Package Compare versions

Comparing version 1.7.2 to 2.0.0

2

cache/Cache.js

@@ -13,3 +13,3 @@ "use strict";

const common_1 = require("bf-lib/common");
const Types_1 = require("bf-lib/livesync/Types");
const Types_1 = require("../livesync/Types");
const CACHE_UPDATE = 'CACHE_UPDATE';

@@ -16,0 +16,0 @@ const CACHE_UPDATES = 'cache-updates';

@@ -1,5 +0,6 @@

import { Api, Auth, ConnectionType, LiveEvent, LiveSync, LiveSyncConfig, Module, NexusConfig } from 'bf-lib';
import { Api, Auth, Module, NexusConfig } from 'bf-lib';
import { Multitool } from 'bf-lib/multitool';
import { ClientConfigSettings } from './common';
import { Multitool } from 'bf-lib/multitool';
export { Api, Auth, LiveSync, Module, ClientConfigSettings, ConnectionType, NexusConfig, LiveEvent, LiveSyncConfig };
import { ConnectionType, LiveEvent, LiveSync, LiveSyncBeginOptions, LiveSyncConfig, LiveSyncConnectionOptions } from './livesync';
export { Api, Auth, LiveSync, Module, ClientConfigSettings, ConnectionType, NexusConfig, LiveEvent, LiveSyncConfig, LiveSyncConnectionOptions, LiveSyncBeginOptions, };
export declare type ConfigSettings = {

@@ -6,0 +7,0 @@ nexus: NexusConfig;

@@ -14,4 +14,7 @@ "use strict";

const bf_lib_1 = require("bf-lib");
Object.defineProperty(exports, "ConnectionType", { enumerable: true, get: function () { return bf_lib_1.ConnectionType; } });
const system_1 = require("bf-lib/system");
const Auth_1 = require("./auth/Auth");
const livesync_1 = require("./livesync");
Object.defineProperty(exports, "ConnectionType", { enumerable: true, get: function () { return livesync_1.ConnectionType; } });
const LiveSync_1 = require("./livesync/LiveSync");
function bflib(settings) {

@@ -44,5 +47,15 @@ return __awaiter(this, void 0, void 0, function* () {

};
function liveSyncOptions() {
if (settings.livesync.type === livesync_1.ConnectionType.ORGANIZATION) {
return {
module_name: livesync_1.LiveSyncConnectionType.ORGANIZATION,
module_id: system_1.default.nexus.getUser().organization[0],
};
}
return null;
}
const client = { type: bf_lib_1.ClientType.BROWSER };
const auth = yield Auth_1.default(settings.client);
const lib = yield bf_lib_1.default(Object.assign(Object.assign({}, settings), { client, logging, auth }));
const livesync = LiveSync_1.default(liveSyncOptions());
return Object.freeze({

@@ -56,3 +69,3 @@ get api() {

get livesync() {
return lib.livesync;
return livesync;
},

@@ -59,0 +72,0 @@ get module() {

{
"name": "bf-lib-browser",
"version": "1.7.2",
"version": "2.0.0",
"private": false,

@@ -48,3 +48,4 @@ "description": "the standard library browser based clients using block-5 services",

"client",
"library"
"library",
"livesync"
],

@@ -77,3 +78,5 @@ "author": "Coulee Tech",

"dependencies": {
"bf-lib": "^3.5.0"
"bf-lib": "^4.0.0",
"socket.io-client": "^2.4.0",
"socket.io-msgpack-parser": "^2.2.1"
},

@@ -90,5 +93,6 @@ "peerDependencies": {

"@types/react": "^16.14.5",
"@types/socket.io-client": "^1.4.36",
"bf-types": "^4.19.2",
"commitizen": "^4.2.2",
"husky": "^5.1.3",
"husky": "^5.2.0",
"jest": "^26.6.3",

@@ -95,0 +99,0 @@ "prettier": "^2.2.1",

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