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

electron-store-vuex-sync

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-store-vuex-sync - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

types/background.d.ts

7

dist/background.js

@@ -18,8 +18,3 @@ (function (global, factory) {

/**
*
* @param {import('electron').ipcMain} ipcMain
* @param {import('electron-store')} store
* @param {string} [storeName]
*/
/** @type {import('types/background').default} */
function background (ipcMain, store, storeName = DEFAULT_STORE_NAME) {

@@ -26,0 +21,0 @@ if (!ipcMain || !store) {

@@ -18,8 +18,3 @@ (function (global, factory) {

/**
*
* @param {import('electron').ipcMain} ipcMain
* @param {import('electron-store')} store
* @param {string} [storeName]
*/
/** @type {import('types/background').default} */
function background (ipcMain, store, storeName = DEFAULT_STORE_NAME) {

@@ -702,5 +697,3 @@ if (!ipcMain || !store) {

* 创建vuex创建参数的配置
* @param {import('electron').ipcRenderer} ipcRenderer
* @param {import('electron-store').Schema} schema 后台store的结构
* @param {string} [storeName]
* @type {import('types/vuex').default}
*/

@@ -715,3 +708,3 @@ function vuex (ipcRenderer, schema = {}, storeName = DEFAULT_STORE_NAME) {

const syncToBackground = throttle_1(function (state) {
ipcRenderer.send(EVENT.EVENT_SYNC, state);
ipcRenderer.send(EVENT.EVENT_SYNC, JSON.parse(JSON.stringify(state)));
}, 500);

@@ -718,0 +711,0 @@

@@ -634,5 +634,3 @@ (function (global, factory) {

* 创建vuex创建参数的配置
* @param {import('electron').ipcRenderer} ipcRenderer
* @param {import('electron-store').Schema} schema 后台store的结构
* @param {string} [storeName]
* @type {import('types/vuex').default}
*/

@@ -647,3 +645,3 @@ function vuex (ipcRenderer, schema = {}, storeName = DEFAULT_STORE_NAME) {

const syncToBackground = throttle_1(function (state) {
ipcRenderer.send(EVENT.EVENT_SYNC, state);
ipcRenderer.send(EVENT.EVENT_SYNC, JSON.parse(JSON.stringify(state)));
}, 500);

@@ -650,0 +648,0 @@

{
"name": "electron-store-vuex-sync",
"version": "1.0.1",
"version": "1.0.2",
"description": "auto sync electron-store and vuex",
"main": "dist/bundle.js",
"files": [
"dist/"
"dist/",
"types/"
],
"typings": "types/index.d.ts",
"scripts": {

@@ -10,0 +12,0 @@ "build": "npx rollup --config",

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