open-index/open-npm huggingface dataset:
npm package: @looqey/plugin-vue2
Description: > [!CAUTION] > Vue 2 has reached EOL, and this project is no longer actively maintained.
Author: Evan You
Latest version: 2.3.3

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

> [!CAUTION]
> Vue 2 has reached EOL, and this project is no longer actively maintained.

---

> Note: this plugin only works with Vue@^2.7.0.

```js
// vite.config.js
import vue from '@vitejs/plugin-vue2'

export default {
  plugins: [vue()]
}
```

## Options

```ts
export interface Options {
  include?: string | RegExp | (string | RegExp)[]
  exclude?: string | RegExp | (string | RegExp)[]

  isProduction?: boolean

  // options to pass on to vue/compiler-sfc
  script?: Partial<Pick<SFCScriptCompileOptions, 'babelParserPlugins'>>
  template?: Partial<
    Pick<
      SFCTemplateCompileOptions,
      | 'compiler'
      | 'compilerOptions'
      | 'preprocessOptions'
      | 'transpileOptions'
      | 'transformAssetUrls'
      | 'transformAssetUrlsOptions'
    >
  >
  style?: Partial<Pick<SFCStyleCompileOptions, 'trim'>>
}
```

## Asset URL handling

When `@vitejs/plugin-vue2` compiles the `<template>` blocks in SFCs, it also converts any encountered asset URLs into ESM imports.

For example, the following template snippet:

```vue
<img src="../image.png" />
```

Is the same as:

```vue
<script setup>
import _imports_0 from '../image.png'
</script>
```

```vue
<img :src="_imports_0" />
```

By default the following tag/attribute combinations are transformed, and can be configured using the `template.transformAssetUrls` option.

```js
{
  video: ['src', 'poster'],
  source: ['src'],
  img: ['src'],
  image: ['xlink:href', 'href'],
  use: ['xlink:href', 'href']
}
```

Note that only attribute values that are static strings are transformed. Otherwise, you'd need to import the asset manually, e.g. `import imgUrl from '../image.png'`.

## Example for passing options to `vue/compiler-sfc`:

```ts
import vue from '@vitejs/plugin-vue2'

export default {
  plugins: [
    vue({
      template: {
        compilerOptions: {
          // ...
        },
        transformAssetUrls: {
          // ...
        }
      }
    })
  ]
}
```

## Example for transforming custom blocks

```ts
import vue from '@vitejs/plugin-vue2'

const vueI18nPlugin = {
  name: 'vue-i18n',
  transform(code, id) {
    if (!/vue&type=i18n/.test(id)) {
      return
    }
    if (/\.ya?ml$/.test(id)) {
      code = JSON.stringify(require('js-yaml').load(code.trim()))
    }
    return `export default Comp => {
      Comp.i18n = ${code}
    }`
  }
}

export default {
  plugins: [vue(), vueI18nPlugin]
}
```

## License

MIT
npm package: @lootexchange/sdk
Description: Loot Exchange SDK
Latest version: 0.0.8

# Loot Exchange SDK

This repository contains an SDK for interacting with instances of Wyvern V2 contracts.

### Usage

```typescript
import { Builders, Helpers, Order } from "@lootexchange/sdk";

// Create an unsigned sell order
let sellOrder: Order = Builders.Erc721.SingleItem.sell({
  exchange: exchange.address,
  maker: seller.address,
  target: erc721.address,
  tokenId: 0,
  paymentToken: AddressZero,
  basePrice: parseEther("1"),
  fee: 250,
  feeRecipient: feeRecipient.address,
  listingTime: Math.floor(Date.now() / 1000) - 300,
  expirationTime: 0,
  salt: 0,
});
// Sign the sell order
sellOrder = await Helpers.Order.sign(seller, sellOrder);

// Create a matching buy order for the sell order
const buyOrder: Order = Builders.Erc721.SingleItem.matchingBuy(
  buyer.address,
  sellOrder
);

// Trigger settlement
await Helpers.Wyvern.match(buyer, buyOrder, sellOrder);
```
npm package: @lootswap/sdk
Description: 🛠 An SDK for building applications on top of Lootswap.
Latest version: 2.0.1

# Uniswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/VenomProtocol/venomswap-sdk/workflows/CI/badge.svg)](https://github.com/VenomProtocol/venomswap-sdk)
[![npm version](https://img.shields.io/npm/v/@venomswap/sdk/latest.svg)](https://www.npmjs.com/package/@venomswap/sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@venomswap/sdk/latest.svg)](https://bundlephobia.com/result?p=@venomswap/sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/VenomProtocol/venomswap-sdk.git
```

Move into the uniswap-sdk working directory

```sh
cd uniswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @lootswap/sdk-extra
Description: 🛠 A specific SDK/toolkit for building applications on top of LootSwap.
Latest version: 2.1.0

# Venomswap SDK Extra

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/VenomProtocol/venomswap-sdk-extra/workflows/CI/badge.svg)](https://github.com/VenomProtocol/venomswap-sdk-extra)
[![npm version](https://img.shields.io/npm/v/@venomswap/sdk-extra/latest.svg)](https://www.npmjs.com/package/@venomswap/sdk-extra/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@venomswap/sdk-extra/latest.svg)](https://bundlephobia.com/result?p=@venomswap/sdk-extra@latest)

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/VenomProtocol/venomswap-sdk-extra.git
```

Move into the venomswap-sdk-extra working directory

```sh
cd venomswap-sdk-extra/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```
npm package: @lootswap/uikit
Description: Set of UI components for lootswap projects
Latest version: 0.0.16

# Lootswap UIkit

Lootswap UIkit is a set of React components and hooks used to build pages on Pancake's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @lootswap/uikit`

## Setup

### Theme

Before using lootswap UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@lootswap/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@lootswap/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.
npm package: @lootui/input
Description: Simple input styled with styled-components
Author: Nick Ivanov
Latest version: 0.0.4

# @lootui/input

The simplest input written with styled components

## Installation

There are two options for installation

1. Via package manager (npm, pnpm, yarn, etc...)

    `npm i @lootui/input`

2. Via **lootui cli** (https://github.com/lootui/cli), it will copy files of the package to your project. With cli for copying also avaialble option **Typescript+SCSS modules** for the package

    `npx lootui @lootui/input`

## Usage

1. With package manager

    ```javascript
    import { Input } from '@lootui/input';
    ```

2. With **lootui**
    ```javascript
    import { Input } from 'src/components/lootui/input';
    ```
npm package: @lootupteam/nestjs-core
Description: Core component for the gedai project
Author: gm50x
Latest version: 1.0.1

## Description

Seamless asynchronous local storage management using the NodeJS Async Local Storage. This package is designed as a core component for the `gedai` project (currently supported by the `lootup` project), and offers plug-and-play functionality, empowering developers to effortlessly integrate asynchronous local storage into their applications.

## Getting Started

### Step 1: Installation

Install the necessary packages with your favorite Package Manager.

```bash
$ npm install @lootupteam/nestjs-core
```

### Step 2: Configuration Setup

In your `app.module.ts` import `ContextModule` and set it up.

```typescript
// app.module.ts
import { ContextModule } from '@lootupteam/nestjs-core';
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';

@Module({
  imports: [
    // Setup Context Module Here
    ContextModule.forRoot({}),
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
```

In `main.ts` import the apply the required configuration with `configureContextWrapper`.

```typescript
// main.ts
import { configureContextWrappers } from '@lootupteam/nestjs-core';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';

async function bootstrap() {
  const app = await NestFactory.create(AppModule)
    // Setup Context Wrappers Here
    .then(configureContextWrappers);

  await app.listen(3000);
}
bootstrap();
```

## Step 3: Usage

In your services, add `ContextService` as an injectable dependency.

```typescript
// app.service.ts
import { ContextService } from '@lootupteam/nestjs-core';
import { Injectable } from '@nestjs/common';

@Injectable()
export class AppService {
  // Injected here
  constructor(private readonly context: ContextService) {}

  getHello(): string {
    // Recover any previously set property
    const contextId = this.context.getId();
    return `[${contextId}]: Hello World!`;
  }
}
```

## Important Consideration Regarding AsyncLocalStorage and Continuation Passing Style

Implementing continuation passing style introduces complexity to systems. While it's a viable method for data sharing across layers and components, exercising caution is paramount. It's remarkably easy to lose oversight of stored data within the context, potentially leading to bugs or leaks.

### Potential Use Cases:

- **Tracking Execution Context**: Utilize to share a traceId throughout the request lifecycle, facilitating seamless monitoring and debugging.
- **Automatically Managing Database Transactions**: Implement for streamlined transaction handling, ensuring data integrity and consistency. Ability to handle the transactions without touching the business layers.
- **Tracking Tenant Shard ID**: Employ for efficient tracking and management of tenant-specific data shards, enhancing multi-tenancy support and scalability without having to pass properties everywhere in your code.

## License

@lootupteam/nestjscore is [MIT licensed](LICENSE).
npm package: @lootupteam/nestjs-tactical-design
Description: Domain Driven Design and CQRS abstractions for gedai project
Author: gm50x
Latest version: 1.1.0

## Description

Utilities package for working with Domain Driven Design and CQRS in NestJS. This package offers abstractions and dedicated implementations need to be installed together.

## Why was this fork created?
This package was originally developed by [gedai](https://github.com/gedai-dev), however he stopped maintaining it and so this fork was created. This repo may have improvements/changes in the future.

## Installation

```bash
$ npm install @lootupteam/nestjs-tactical-design
```

## Getting Started:

TODO: WORK IN PROGRESS

## License

@lootupteam/nestjs-tactical-design is [MIT licensed](LICENSE).
npm package: @lootupteam/nestjs-tactical-design-amqp
Description: Domain Driven Design and CQRS AMQP for gedai project
Author: gm50x
Latest version: 1.0.0

## Description

This package extends @lootupteam/nestjs-tactical-design by implementing concrete event publishing integration with RabbitMQ via AMQP. In order for this package to work you must import `@lootupteam/nestjs-amqp` package.

## Why was this fork created?

This package was originally developed by [gedai](https://github.com/gedai-dev), however he stopped maintaining it and so this fork was created. This repo may have improvements/changes in the future.

## Installation

```bash
$ npm install @lootupteam/nestjs-tactical-design @lootupteam/nestjs-amqp @lootupteam/nestjs-tactical-design-amqp
```

## License

@lootupteam/nestjs-tactical-design-amqp is [MIT licensed](LICENSE).