open-index/open-npm huggingface dataset:
npm package: @oroinc/jquery-creditcardvalidator
Description: Detect and validate credit card numbers.
Author: Pawel Decowski
Latest version: 1.1.0

# jQuery Credit Card Validator

jQuery Credit Card Validator detects and validates credit card numbers. It’ll tell you the detected credit card type and whether the number length and Luhn checksum are valid for the type of card.

## Download

The latest stable version is always in [master branch](https://github.com/PawelDecowski/jquery-creditcardvalidator/tree/master). If you need previous versions, you’ll find them on the [releases page](https://github.com/PawelDecowski/jquery-creditcardvalidator/releases).

**Do not use any branches other than [master](https://github.com/PawelDecowski/jquery-creditcardvalidator/tree/master). Branches like `release/1.0` are development branches and they will most likely be broken.**

## How to use

For instructions see the official [jQuery Credit Card Validator homepage](http://jquerycreditcardvalidator.com/).
npm package: @oroinc/oro-stylelint-config
Description: Stylelint config used by ORO
Author: Oro, Inc.
Latest version: 6.0.0-lts1

# @oroinc/oro-stylelint-config

This is the base Stylelint configuration used to enforce coding standards for styles in [ORO](https://github.com/oroinc/)'s projects.

# Usage

1. Add the configuration to your dev dependencies:

```sh
npm install --save-dev stylelint @oroinc/oro-stylelint-config
```

2. Extend the config in your `.stylelintrc`:

```
{
   "extends": "@oroinc/oro-stylelint-config"
}
```
npm package: @oroinc/oro-webpack-config-builder
Description: An integration of OroPlatform based applications with the Webpack.
Author: Oro, Inc
Latest version: 5.1.0-lts015

# Oro Webpack Config Builder

An integration of OroPlatform based applications with the Webpack.

For more details see [the documentation](https://doc.oroinc.com/bundles/platform/AssetBundle/).
npm package: @oroinc/storefront-json-api-sdk
Description: The official JavaScript and TypeScript generator library for the OroCommerce Storefront JSON:API.
Author: Oro, Inc.
Latest version: 0.1.0

# Requirements
- JAVA 11 version is the minimal version supported. It might already be installed on your machine.
  To install JDK follow (the official instructions)[https://www.oracle.com/java/technologies/downloads/].
- Node.js 22 LT later versions.

# Development

> **Warning:**
> Do not make any manual changes in the `generated` folder

# Code Generation

## Step 1: Add Your OpenAPI Specification
Download your OpenAPI specification file (in either JSON or YAML format) and place it in the root directory of your project.

## Step 2: Create a Configuration File
In your project's root directory, create a file named `oroapi.config.cjs`.
This file tells the code generator where to find your specification and where to place the output files.

````javascript
module.exports = {
    // Path to your OpenAPI specification file.
    input: 'specification.yml',
    // Directory where the generated code will be saved.
    output: 'generated'
};
````

## Step 3: Run the Generator
Execute the following command in your terminal to generate the code.

````bash
pnpm run generate-sdk
````

# Testing

The project includes comprehensive `Jest` tests for the OpenAPI-generated SDK.

## Setup Testing environment

1. Download the `specification` file for the storefront, which contains all entities, and place it in the root of this package.
   Also, the `specification` file may be generated via the command line: `php bin/console oro:api:doc:open-api:dump --view=frontend_rest_json_api --format=yaml > specification.yml`
2. Java is installed on a local machine to generate the SDK.
3. Run `pnpm run generate-sdk` and then `pnpm run build` to prepare for writing unit tests.

## Running Tests

```bash
# Run all tests
pnpm test

# Run tests in watch mode
pnpm test:watch

# Run tests with coverage report
pnpm test:coverage
```

## Test Coverage

Tests cover:
- API endpoint calls (GET, OPTIONS)
- Request parameter handling (filters, pagination, sorting, includes)
- Custom headers (X-Localization-ID, X-Currency)
- Error handling (4xx, 5xx responses)
- Network error handling
- Configuration options

See [tests/README.md](./tests/README.md) for more details.

# Fixing code generation

The generator may not correctly handle certain types, such as `Mixed`, because of circular dependencies in their type declarations.
It may be necessary to manually edit the specification file to resolve these dependencies.

An example of how to fix the `mixed` property is shown in the code snippet below.
````yaml
    mixed:
        type: object
        anyOf:
            - type: string
            - type: integer
            - type: number
            - type: boolean
            - type: 'null'
            - type: object
              additionalProperties:
                  $ref: '#/components/schemas/mixed'
            - type: array
              items:
                  $ref: '#/components/schemas/mixed'
````
npm package: @orozot-dojo/eslint-plugin
Description: JiHuLab package for our custom eslint rules
Author: JiHuLab Frontend Team
Latest version: 13.3.0

[![pipeline status](https://gitlab.com/gitlab-org/frontend/eslint-plugin/badges/main/pipeline.svg)](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commits/main)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

# @jihulab/eslint-plugin

> This package contains eslint rules developed for GitLab and shared eslint config to be used in all
> javascript projects across GitLab.

It encapsulates our coding standards and is based primarily upon
[`eslint-config-airbnb-base`](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base)
and [`eslint-plugin-vue`](https://github.com/vuejs/eslint-plugin-vue) with the expectation that code
formatting is handled separately by [prettier](https://prettier.io).

Generally we should use upstream rules that are defined in `eslint` or `eslint-plugin-vue`. If one
of these packages lacks a rule, we can create it here in order to enforce it, and try to get it
upstream later.

## Documentation

- [Available rules](./docs/rules.md)
- [Installation and Usage](./docs/usage.md)
- [Creation & Development of rules](./docs/development.md)

## Contribution guidelines

Please refer to
[gitlab's CONTRIBUTING.md](https://gitlab.com/gitlab-org/gitlab/blob/master/CONTRIBUTING.md) for
details on our guidelines.