open-index/open-npm huggingface dataset:
npm package: @kasvith/electron-vuex
Description: Share vuex state between main and renderer
Author: Kasun Vithanage
Latest version: 1.0.0

# Electron Vuex

A fork of [vuex-electron](https://github.com/vue-electron/vuex-electron).
We replaced the JSON store with a memory store which allows high rate of mutations without creating temp files

The easiest way to share your Vuex Store between all processes (including main).

## Features

:star: Persisted state  
:star: Shared mutations

## Requirements

- [Vue](https://github.com/vuejs/vue) v2.0+
- [Vuex](https://github.com/vuejs/vuex) v2.0+
- [Electron](https://github.com/electron/electron) v7.2.4+

## Installation

Installation of the Vuex Electron easy as 1-2-3.

1. Install package with using of [yarn](https://github.com/yarnpkg/yarn) or [npm](https://github.com/npm/cli):

    ```bash
    yarn install @kasvith/electron-vuex
    ```

    or

    ```bash
    npm install @kasvith/electron-vuex
    ```

2. Include plugins in your Vuex store::

    ```javascript
    import Vue from "vue"
    import Vuex from "vuex"

    import { createPersistedState, createSharedMutations } from "@kasvith/electron-vuex"

    Vue.use(Vuex)

    export default new Vuex.Store({
      // ...
      plugins: [
        createPersistedState(),
        createSharedMutations()
      ],
      // ...
    })
    ```

3. In case if you enabled `createSharedMutations()` plugin you need to create an instance of store in the main process. To do it just add this line into your main process (for example `src/main.js`):

    ```javascript
    import './path/to/your/store'
    ```

4. Well done you did it! The last step is to add the star to this repo :smile:

**Usage example: [Vuex Electron Example](https://github.com/vue-electron/vuex-electron-example)**

## IMPORTANT

In renderer process to call actions you need to use `dispatch` or `mapActions`. Don't use `commit` because actions fired via `commit` will not be shared between processes.

## Options

Available options for `createPersistedState()`

```javascript
createPersistedState({
  whitelist: ["whitelistedMutation", "anotherWhitelistedMutation"],

  // or

  whitelist: (mutation) => {
    return true
  },

  // or

  blacklist: ["ignoredMutation", "anotherIgnoredMutation"],

  // or

  blacklist: (mutation) => {
    return true
  }
})
```
npm package: @kasvith/przelewy24
Description: A simple library for connecting przelewy24 service
Author: Kasun Vithanage
Latest version: 0.1.0

# Przelewy24 for NodeJS

NodeJS Library for Przelewy24. This library is written in Typescript to provide
best typesafety.

This library provides an elegant way to create/verify transactions easily.

```typescript
const p24 = new Przelewy24(1234, 12, 'dsfsdfs', true)

async function test () {
    try {
        const r = await p24.testConnection()
        console.log(r)
    } catch (error) {

        console.log(error)
    }

    const paymentParam: PaymentOptions = {
        p24_amount: 100,
        p24_country: CountryCode.Poland,
        p24_currency: CurrencyType.PLN,
        p24_description: 'test',
        p24_email: 'abc@12.com',
        p24_session_id: '122223333',
        p24_url_return: 'http://lcff.com'
    }

    const sd1: ShoppingDetail[] = [
        { name: 'wewe', price: 133, quantity: 4 },
        { name: '11wewe', price: 13, quantity: 1 }
    ]
    await p24.getPaymentLink(new Payment(paymentParam, sd1))
}

test()
```