Socket
Socket
Sign inDemoInstall

@jill64/ts-cli

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jill64/ts-cli - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

6

dist/App.js

@@ -15,5 +15,5 @@ import { transform } from '@jill64/transform';

this.routes = routes;
this.invoke = transform(routes, ([route, { handler }]) => [
this.invoke = transform(routes, ([route, { config, handler }]) => [
route,
handler
(param) => handler(param, config)
]);

@@ -31,3 +31,3 @@ }

execute(param) {
return this.handler(param);
return this.handler(param, this.config);
}

@@ -34,0 +34,0 @@ lookup(args) {

import { Config } from '../Config.js';
import { InvokeHandlerReturn } from './InvokeHandlerReturn.js';
import { InvokeParam } from './InvokeParam.js';
export type InvokeHandler<T extends Config> = (param: InvokeParam<T>) => InvokeHandlerReturn<T>;
export type InvokeHandler<T extends Config> = (param: InvokeParam<T>, config?: T) => InvokeHandlerReturn<T>;
{
"name": "@jill64/ts-cli",
"version": "0.2.1",
"version": "0.2.2",
"type": "module",

@@ -5,0 +5,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc