open-index/open-npm huggingface dataset:
npm package: @oasis-catalog/branding-price
Description: Calculate OASIS branding price
Latest version: 1.3.0

# Модуль для расчёта стоимости и сроков нанесения OASIS

Возможности:

- подсчёт базовой, РРЦ, дилерской цены нанесения
- учёт бесплатного нанесения и доплат
- вычисление сроков отгрузки заказа
- нахождение даты с чётом выходных и праздников

## Использование

Для использования необходимо получить коэффициенты для выбранных товаров.
Для получения коэффициентов необходимо сделать GET-запрос одним из способов:

```
https://api.oasiscatalog.com/v4/branding/coef/1-000070661?key=key...
https://api.oasiscatalog.com/v4/branding/coef?id=1-000070661,1-000070662,1-000070663&key=key...
https://api.oasiscatalog.com/v4/branding/coef?id[]=1-000070661&id[]=1-000070662&id[]=1-000070663&key=key...
```

Далее формируем связки необходимых товаров и нанесений:

```javascript
import {calculateBrandingPrice} from '@oasis-catalog/branding-price';

let coef = await fetch('https://api.oasiscatalog.com/v4/coef?id=1-000070661,1-000070662&key=key...');
coef = await coef.json();
let items = [
    {
        "productId": "1-000070661",
        "quantity": 10,
        "branding": [0],
    },
    {
        "productId": "1-000070662",
        "quantity": 10,
        "branding": [0],
    },
];
let branding = [
    {
        "placeId": "000010375",
        "typeId": "1-000027163",
        "width": 100,
        "height": 100
    },
];
console.log(calculateBrandingPrice({coef, items, branding}));
/*
[
    {
        "main": {
            "qty": 20,
            "price": {
                "base": { "setup": 6300, "total": 12600, "one": 4.2 },
                "client": { "setup": 11500, "total": 22960, "one": 7.64 },
                "dealer": { "setup": 6300, "total": 12600, "one": 4.2 }
            }
        }
    }
]
*/
```

## Получение сроков

```javascript
import {calculateShipmentDays} from '@oasis-catalog/branding-price';

// let coef = ..., items = [...], branding = [...]
console.log(calculateShipmentDays({coef, items, branding}));
/*
[
    { "main": 4 },
    { "main": 4 }
]
*/
```

## Получение даты по срокам в рабочих днях

Для вычисления конкретных дат надо запросить список выходных дней GET-запросом:

```
https://api.oasiscatalog.com/v4/holidays?key=key...

```

```javascript
import {findWorkday} from '@oasis-catalog/branding-price';

let holidays = await fetch('https://api.oasiscatalog.com/v4/holidays?key=key...');
holidays = await holidays.json();
console.log(findWorkday('2023-03-24', 1, holidays)); // 2023-03-27
```
npm package: @oasis-discord/game-blocks
Description: Shared game logic blocks for the Oasis Discord ecosystem
Latest version: 0.1.0

# @oasis-discord/game-blocks

Shared game logic blocks for the Oasis Discord ecosystem. Pure TypeScript — no database calls, no HTTP calls. Import what you need, configure it, use it.

## Install

```
npm install @oasis-discord/game-blocks
```

## Blocks

| Block | Import | Description |
|---|---|---|
| Turn Management | `TurnManager` | Player queue, advance, skip, timeout |
| Lobby System | `Lobby` | Join/leave/ready, host controls, player gates |
| State Machine | `StateMachine` | Named states, transitions, guards, hooks |
| Game Phase | `GamePhase` | Named phases with per-phase rules |
| Score Tracking | `ScoreTracker` | Points per player, leaderboard, tiebreaker |
| Player Elimination | `EliminationTracker` | Remove players, mark spectators |
| Lives / HP | `LivesSystem` | Counter with floor, decrement, zero-detection |
| Role Assignment | `RoleAssigner` | Assign roles from pool to players |
| Weighted RNG | `weightedRandom` | Weighted random selection |
| Payout Table | `PayoutTable` | Config table + inputs → payout multiplier |
| Prompt Collection | `PromptCollector` | Collect N responses, reveal on trigger |
| Judge Rotation | `JudgeRotation` | Circular czar/judge queue |
| Image Rendering | `renderBoard` | Sharp-based board/grid image |
| Image Compositing | `compositeImage` | Stack image layers into one scene |
| Reaction Threshold | `ReactionThreshold` | Fire callback when reaction hits count |
| Cooldown Engine | `CooldownEngine` | Per-user per-action TTL via Redis |

## License

MIT
npm package: @oasis-editor/plugin-basic-ssl
Description: A plugin to generate untrusted certificates which still allows to access the page after proceeding a wall with warning.
Latest version: 1.0.0

# @vitejs/plugin-basic-ssl [![npm](https://img.shields.io/npm/v/@vitejs/plugin-basic-ssl.svg)](https://npmjs.com/package/@vitejs/plugin-basic-ssl)

A plugin to generate untrusted certificates which still allows to access the page after proceeding a wall with warning.

In most scenarios, it is recommended to generate a secure trusted certificate instead and use it to configure [`server.https`](https://vitejs.dev/config/server-options.html#server-https)

## Usage

```js
// vite.config.js
import basicSsl from '@vitejs/plugin-basic-ssl'

export default {
  plugins: [
    basicSsl()
  ]
}
```
 
## License

MIT