open-index/open-npm huggingface dataset:
npm package: @ml182/appwork-testing
Description: 该转换器 fork [jest-css-modules-transform](https://github.com/Connormiha/jest-css-modules-transform)，主要为了解决 css 使用了 css-module 之后，className 生成方式需要带上作用域
Latest version: 0.0.6

### cssModuleTransform
该转换器 fork [jest-css-modules-transform](https://github.com/Connormiha/jest-css-modules-transform)，主要为了解决 css 使用了 css-module 之后，className 生成方式需要带上作用域
npm package: @ml24/logging-sdk
Description: Logging SDK with HTTP ingest + NestJS/Next.js adapters
Latest version: 0.1.7

# @ml24/logging-sdk

A small logging SDK that batches records and sends them to an HTTP ingest API.
Includes optional adapters:

- `@ml24/logging-sdk/nest`
- `@ml24/logging-sdk/next`

## Install

```bash
npm i @ml24/logging-sdk
```

## Core usage

```ts
import { createLogger } from '@ml24/logging-sdk';

const logger = createLogger({
  endpoint: 'https://logs.example.com/v1/ingest',
  apiKey: process.env.LOGS_API_KEY!,
  app: { name: 'my-service', env: 'prod', version: '1.0.0' },
});

logger.info('Service started', { port: 3000 });
logger.error(new Error('Boom'), { feature: 'checkout' });

await logger.flush();
```

## NestJS adapter

```ts
import { LoggingModule } from '@ml24/logging-sdk/nest';

@Module({
  imports: [
    LoggingModule.forRoot({
      endpoint: process.env.LOGS_ENDPOINT!,
      apiKey: process.env.LOGS_API_KEY!,
      app: { name: 'nestjs-api', env: process.env.NODE_ENV },
    }),
  ],
})
export class AppModule {}
```

## Next.js adapter

Server (recommended):

```ts
import { createNextServerLogger } from '@ml24/logging-sdk/next';

export const logger = createNextServerLogger({
  endpoint: process.env.LOGS_ENDPOINT!,
  apiKey: process.env.LOGS_API_KEY!,
  app: { name: 'next-app', env: process.env.NODE_ENV },
});
```

Client:
⚠️ Don’t ship private API keys to the browser. Use a proxy endpoint (e.g. /api/logs).

```ts
import { createNextClientLogger } from '@ml24/logging-sdk/next';

export const clientLogger = createNextClientLogger({
  endpoint: '/api/logs',
  apiKey: 'public-or-empty',
  app: { name: 'next-app', env: process.env.NODE_ENV },
});
```

## Ingest payload

POST `<endpoint>` with:

```json
{
  "sdk": {"name":"@ml24/logging-sdk","version":"0.1.0"},
  "app": {"name":"...","env":"...","version":"..."},
  "records":[ ... ]
}
```

Authorization header: `X-API-Key: <apiKey>`