open-index/open-npm huggingface dataset:
npm package: @finteqhub/sdk-js
Description: SDK for interacting with FinteqHub processing API
Author: FinteqHub
Latest version: 0.10.1

# processing-sdk

Use `new FinteqHubProcessing(apiUrl: string, fingerprintVisitorId: string, merchantId: string, sessionId: string)` to create an instance of the FinteqHubProcessing object. The FinteqHubProcessing object is your entrypoint to FinteqHub processing SDK.

```
const processing = new FinteqHubProcessing('api-url', 'fingerprint-visitor-id', 'merchant-id', 'session-id');
```

## API

### processing.getSession()

Use `processing.getSession` to get session information.

```
processing
  .getSession()
  .then(result => console.log(result))
  .catch(error => console.warn(error));
```

### processing.submitForm(data)

Use `processing.submitForm` to submit transaction. When called, `processing.submitForm` will attempt to complete any required actions to process the transaction. This method returns promise which resolves with response (`{ "type": "redirect", "redirectUrl": string}`) or error that describes the failure.

```
processing
  .submitForm(data)
  .then(result => console.log(result))
  .catch(error => console.warn(error));
```

## Usage

```
import { FinteqHubProcessing } from "@finteqhub/sdk-js";
import FingerprintJS from "@fingerprintjs/fingerprintjs";

const fp = await FingerprintJS.load();
const result = await fp.get();

const processing = new FinteqHubProcessing(apiUrl, result.visitorId, merchantId, sessionId);
const session = await processing.getSession();

const data = {/** collect data from form and session **/}

processing
  .submitForm(data)
  .then(result => console.log(result))
  .catch(error => console.warn(error));
```
npm package: @finter/stylelint-plugin
Description: config for StyleLint
Latest version: 1.0.1

# stylelint-config

## 快速开始

### 安装

```bash
<npm|yarn|pnpm> add -D stylelint @finter/stylelint-config
```

### 使用

创建一个 .stylelintrc.json 文件在项目根目录，然后复制下面的代码到这个文件中（如果要对 less 或 scss 等文件使用，需要配置 [customSyntax](https://stylelint.io/user-guide/usage/options/#customsyntax) 字段）：

```json
{
  "extends": [
    "@finter/stylelint-config"
  ],
  # less
  "customSyntax": "postcss-less"
  # scss
  "customSyntax": "postcss-scss"
}
```

### 内置依赖

- [stylelint rules](https://stylelint.io/user-guide/rules/list): stylelint rule list
- [order](./rules/order/README.md): Specify the order of content within declaration blocks.
- [properties-order](./rules/properties-order/README.md): Specify the order of properties within declaration blocks.
- [properties-alphabetical-order](./rules/properties-alphabetical-order/README.md): Specify the alphabetical order of properties within declaration blocks.