electron-store-vuex-sync
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47818
8
1339