Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@loopstack/custom-tool-example-module

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loopstack/custom-tool-example-module - npm Package Compare versions

Comparing version
0.21.7
to
0.22.0
+7
-32
package.json

@@ -12,3 +12,3 @@ {

],
"version": "0.21.7",
"version": "0.22.0",
"license": "MIT",

@@ -30,7 +30,7 @@ "author": {

"lint": "eslint .",
"test": "jest --passWithNoTests",
"test": "vitest run",
"watch": "nest build --watch"
},
"dependencies": {
"@loopstack/common": "^0.29.0",
"@loopstack/common": "^0.30.0",
"@nestjs/common": "^11.1.19",

@@ -43,32 +43,7 @@ "zod": "^4.3.6"

],
"jest": {
"testEnvironment": "node",
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.ts$": "ts-jest"
},
"testTimeout": 10000,
"forceExit": true,
"maxWorkers": 1
},
"loopstack": {
"modules": [
{
"path": "src/custom-tool.module.ts",
"className": "CustomToolModule"
}
],
"workflows": [
{
"path": "src/workflows/custom-tool-example.workflow.ts",
"className": "CustomToolExampleWorkflow",
"propertyName": "customToolExample"
}
],
"installModes": [
"add",
"install"
]
"devDependencies": {
"vitest": "^4.1.6",
"@swc/core": "^1.15.33",
"unplugin-swc": "^1.5.9"
}
}
+3
-2
import { TestingModule } from '@nestjs/testing';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { getBlockArgsSchema } from '@loopstack/common';

@@ -51,7 +52,7 @@ import { createToolTest } from '@loopstack/testing';

const mockMathService = {
sum: jest.fn(),
sum: vi.fn(),
};
beforeEach(async () => {
jest.clearAllMocks();
vi.clearAllMocks();

@@ -58,0 +59,0 @@ module = await createToolTest().forTool(MathSumTool).withMock(MathService, mockMathService).compile();

import { TestingModule } from '@nestjs/testing';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { z } from 'zod';

@@ -3,0 +4,0 @@ import { getBlockArgsSchema, getBlockConfig, getBlockTools } from '@loopstack/common';