open-index/open-npm huggingface dataset:
npm package: @icar/atenea-lib
Description: session/scopes middleware for atenea
Author: 'bastian_af'
Latest version: 1.6.2

# 🔐 ATENEA LIB 

a simple Atenea auth middleware for node js 

## Usage

You can create a middleware to validate session and scopes
``` typescript

function authMiddleware(scopes: Array<string>){
    return async function (
        req: Request, 
        res: Response, 
        next: NextFunction){ 

        const bearerToken = req.headers.authorization? || ''
        const token = bearerToken.replace('Bearer ', '') 
        const atenea = new Atenea(token);
        
        // Check if request authorization token is valid
        const validToken: Boolean = await atenea.verifyToken()
        if(!validToken){
            const error = new Error('invalid or expired token');
            next(error);
        } 

        // Check if user has access to this resource 
        const validScope: Boolean = await atenea.verifyScope(scopes)
        if(!validScope){
            const error = new Error('access denied');
            next(error);
        } 
        next();
        
    }
}

export default authMiddleware;
```

then use it on routes

```typescript
    route.get('/api/v1/cats', 
        authMiddleware(['fake.scope.r']),
        async (req: Request, res: Response, next: NextFunction) => {
            ...
        }
```


you can also retrive token info

``` typescript
req.body.user_id = atenea.tokenInfo?.company_uid
```
npm package: @icare-jp/vue-type-check
Description: a type checker for typescript written Vue components
Author: yanzhen@smartx.com
Latest version: 1.1.9

<p align="center">
  <img width="100px" height="100px" src="https://raw.githubusercontent.com/Yuyz0112/vue-type-check/master/assets/logo.png">
</p>

# vue-type-check

vue-type-check is a type checker for typescript written Vue components.

It provides both a CLI wrapper and a programmatically API which is easy to integrate with your current workflow.

## Features

- type checking template code.
- type checking script code.

## Usage

### CLI

```shell
Install: npm i -g vue-type-check

Usage: vue-type-check or vtc
Options:
  --workspace        path to your workspace, required
  --srcDir           path to the folder which contains your Vue components, will fallback to the workspace when not passed
  --onlyTemplate     whether to check the script code in a single file component
```

#### Example

We are going to check a simple Vue component with two type errors:

```vue
<template>
  <div id="app">
    <p>{{ msg }}</p>
  </div>
</template>

<script lang="ts">
import Vue from "vue";

export default Vue.extend({
  name: "app",
  data() {
    return {
      message: "Hello World!"
    };
  },
  methods: {
    printMessage() {
      console.log(this.message.toFixed(1));
    }
  }
});
</script>
```

![example.gif](https://raw.githubusercontent.com/Yuyz0112/vue-type-check/master/assets/vtc.gif)

### Programmatical API

```js
const { check } = require("vue-type-check");

(async () => {
  await check({
    workspace: PATH_TO_WORKSPACE,
    srcDir: PATH_TO_SRC_DIR,
    excludeDir: PATH_TO_EXCLUDE_DIR,
    onlyTemplate: TRUE_OR_FALSE,
    onlyTypeScript: TRUE_OR_FALSE
  });
})();
```

## How it works

Currently, the implementation is heavily based on vetur's awesome [interpolation feature](https://vuejs.github.io/vetur/interpolation.html).

If you are interested in the design decisions and the attempts on other approaches, they can be found in [this post](http://www.myriptide.com/vue-type-check/).
npm package: @icarodev/n8n-nodes-bitrix24
Description: Nó do n8n para integração com Bitrix24
Author: Community
Latest version: 1.0.2

# n8n-nodes-bitrix24

Este é um nó de comunidade para o [n8n](https://n8n.io/) que permite interagir com a API do **Bitrix24**.

![Bitrix24 Node](https://raw.githubusercontent.com/n8n-io/n8n/master/assets/n8n-logo.png) <!-- Substituir por imagem real do nó se possível -->

## Pré-requisitos

Você precisa ter uma instalação do n8n. Se você ainda não tem, veja como começar [aqui](https://docs.n8n.io/hosting/).

## Instalação

### Via Comunidade (Recomendado)

1. No seu n8n, vá em **Settings** > **Community Nodes**.
2. Clique em **Install**.
3. Procure por `@icarodev/n8n-nodes-bitrix24`.
4. Aceite os termos e instale.

### Via NPM (Manual)

Vá até a pasta raiz do seu n8n (onde o diretório `.n8n` está localizado) e execute:

```bash
npm install @icarodev/n8n-nodes-bitrix24
```

Reinicie o n8n para carregar o novo nó.

## Credenciais

Para usar este nó, você precisará configurar uma credencial **Bitrix24 API**:

1. Crie um Webhook de Entrada (Inbound Webhook) no seu Bitrix24.
   - Vá em **Developer Resources** > **Other** > **Inbound Webhook**.
   - Dê permissões para: `CRM`, `Tasks`, `Users`.
2. Copie a URL gerada (ex: `https://seu-dominio.bitrix24.com.br/rest/1/webhook-code/`).
3. No n8n, adicione uma nova credencial **Bitrix24 API**.
4. Cole a **Webhook URL**.

## Recursos Suportados

Este nó suporta as seguintes operações:

*   **Tasks (Tarefas)**
    *   Create, Get, List, Update, Delete
*   **CRM**
    *   **Lead**: Create, Get, List, Update, Delete
    *   **Deal (Negócio)**: Create, Get, List, Update, Delete
    *   **Contact (Contato)**: Create, Get, List, Update, Delete
    *   **Company (Empresa)**: Create, Get, List, Update, Delete
*   **User (Usuário)**
    *   Get, List

## Uso

Arraste o nó **Bitrix24** para o seu canvas. Selecione o **Resource** (Recurso) desejado e a **Operation** (Operação). Preencha os campos obrigatórios.

Para campos avançados, use as opções JSON ("Fields" ou "Filter").

## Licença

MIT