New:Socket for Asana Is Now Available.Learn more
Get Started

@nimbus-dev/create-connector

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nimbus-dev/create-connector - npm Package Compare versions

Comparing version
0.1.0
to
0.2.0
+21
-0
dist/generate.js

@@ -80,5 +80,26 @@ /**

}
/**
* Tool cache directories a local `ruff` / `mypy` / `pytest` run leaves behind under
* `templates/python/` when one of those tools is pointed at it directly (rather than at
* a generated project, where they normally run). They are gitignored — `.gitignore`
* keeps them out of the checkout git tracks — but gitignoring a directory does not
* remove it from a developer's local disk, and this function reads the filesystem, not
* git. Left unfiltered, a stray one makes `generate()` copy it into every generated
* project, and `pack-and-generate.test.ts` — which diffs a checkout-built tree against
* a tarball-built one — reports a spurious "different file sets" failure that does not
* name the actual cause, because `npm pack` excludes gitignored paths from the tarball
* while this function does not exclude them from the checkout.
*/
const IGNORED_TEMPLATE_DIR_NAMES = new Set([
".ruff_cache",
"__pycache__",
".mypy_cache",
".pytest_cache",
]);
async function collect(dir, prefix) {
const out = [];
for (const entry of await readdir(dir, { withFileTypes: true })) {
if (entry.isDirectory() && IGNORED_TEMPLATE_DIR_NAMES.has(entry.name)) {
continue;
}
const rel = prefix === "" ? entry.name : posix.join(prefix, entry.name);

@@ -85,0 +106,0 @@ if (entry.isDirectory()) {

+1
-1
{
"name": "@nimbus-dev/create-connector",
"version": "0.1.0",
"version": "0.2.0",
"description": "Scaffold a Nimbus MCP connector in TypeScript or Python",

@@ -5,0 +5,0 @@ "license": "MIT",