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

instant-local-throwaway

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instant-local-throwaway - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

3

dist/module/react.js

@@ -38,2 +38,5 @@ import * as instaql from './instaql';

useEffect(() => {
// This is a hack, so that we don't start when in SSR
// need to think if this is the right approach
db.start();
const unsub = db.subscribe((state) => {

@@ -40,0 +43,0 @@ setState(initState(state));

@@ -99,2 +99,3 @@ import * as s from './store';

constructor(config: Config);
start(): void;
_refreshTokenUnsub: Function | undefined;

@@ -101,0 +102,0 @@ _startRefreshTokenListener(): void;

@@ -42,2 +42,4 @@ import * as s from './store';

this.refreshToken = APP_ID_TO_REFRESH_TOKEN[config.appId];
}
start() {
this._startRefreshTokenListener();

@@ -44,0 +46,0 @@ this._startSocket();

@@ -65,2 +65,5 @@ "use strict";

(0, react_1.useEffect)(() => {
// This is a hack, so that we don't start when in SSR
// need to think if this is the right approach
db.start();
const unsub = db.subscribe((state) => {

@@ -67,0 +70,0 @@ setState(initState(state));

@@ -99,2 +99,3 @@ import * as s from './store';

constructor(config: Config);
start(): void;
_refreshTokenUnsub: Function | undefined;

@@ -101,0 +102,0 @@ _startRefreshTokenListener(): void;

@@ -72,2 +72,4 @@ "use strict";

this.refreshToken = auth_1.APP_ID_TO_REFRESH_TOKEN[config.appId];
}
start() {
this._startRefreshTokenListener();

@@ -74,0 +76,0 @@ this._startSocket();

@@ -55,2 +55,5 @@ import * as instaql from './instaql';

useEffect(() => {
// This is a hack, so that we don't start when in SSR
// need to think if this is the right approach
db.start();
const unsub = db.subscribe((state) => {

@@ -57,0 +60,0 @@ setState(initState(state));

5

instant-local/ReactiveDB.ts

@@ -104,6 +104,9 @@ import * as s from './store';

this.refreshToken = APP_ID_TO_REFRESH_TOKEN[config.appId];
}
start() {
this._startRefreshTokenListener();
this._startSocket();
}
// -------------

@@ -110,0 +113,0 @@ // Refresh Tokens

{
"name": "instant-local-throwaway",
"version": "1.1.4",
"version": "1.1.5",
"description": "This is an experiment for instant",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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