Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/defmulti

Package Overview
Dependencies
Maintainers
1
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/defmulti - npm Package Compare versions

Comparing version 2.1.24 to 2.1.25

2

CHANGELOG.md
# Change Log
- **Last updated**: 2022-12-16T12:52:25Z
- **Last updated**: 2022-12-20T16:33:11Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -5,0 +5,0 @@

import type { Implementation } from "./api.js";
/**
* Returns a multi-dispatch function which delegates to one of the
* provided implementations, based on the arity (number of args) when
* the function is called.
* Returns a multi-dispatch function which delegates to one of the provided
* implementations, based on the arity (number of args) when the function is
* called.
*
* @remarks
* Internally uses {@link (defmulti:1)}, so new arities can be dynamically
* added (or removed) at a later time. If no `fallback` is provided,
* `defmultiN` also registers a {@link DEFAULT} implementation which
* simply throws an {@link @thi.ng/errors#IllegalArityError} when
* invoked.
* Internally uses {@link defmulti}, so new arities can be dynamically added (or
* removed) at a later time. If no `fallback` is provided, `defmultiN` also
* registers a {@link DEFAULT} implementation which simply throws an
* [`IllegalArityError`](https://docs.thi.ng/umbrella/errors/variables/IllegalArityError.html)
* when invoked.
*
* **Note:** Unlike {@link (defmulti:1)} no argument type checking is
* supported, however you can specify the return type for the generated
* function.
* **Note:** Unlike {@link defmulti} no argument type checking is supported,
* however you can specify the return type for the generated function.
*

@@ -18,0 +17,0 @@ * @example

import { illegalArity } from "@thi.ng/errors/illegal-arity";
import { DEFAULT, defmulti } from "./defmulti.js";
/**
* Returns a multi-dispatch function which delegates to one of the
* provided implementations, based on the arity (number of args) when
* the function is called.
* Returns a multi-dispatch function which delegates to one of the provided
* implementations, based on the arity (number of args) when the function is
* called.
*
* @remarks
* Internally uses {@link (defmulti:1)}, so new arities can be dynamically
* added (or removed) at a later time. If no `fallback` is provided,
* `defmultiN` also registers a {@link DEFAULT} implementation which
* simply throws an {@link @thi.ng/errors#IllegalArityError} when
* invoked.
* Internally uses {@link defmulti}, so new arities can be dynamically added (or
* removed) at a later time. If no `fallback` is provided, `defmultiN` also
* registers a {@link DEFAULT} implementation which simply throws an
* [`IllegalArityError`](https://docs.thi.ng/umbrella/errors/variables/IllegalArityError.html)
* when invoked.
*
* **Note:** Unlike {@link (defmulti:1)} no argument type checking is
* supported, however you can specify the return type for the generated
* function.
* **Note:** Unlike {@link defmulti} no argument type checking is supported,
* however you can specify the return type for the generated function.
*

@@ -19,0 +18,0 @@ * @example

{
"name": "@thi.ng/defmulti",
"version": "2.1.24",
"version": "2.1.25",
"description": "Dynamic, extensible multiple dispatch via user supplied dispatch function.",

@@ -37,3 +37,3 @@ "type": "module",

"dependencies": {
"@thi.ng/api": "^8.6.0",
"@thi.ng/api": "^8.6.1",
"@thi.ng/errors": "^2.2.6",

@@ -94,3 +94,3 @@ "@thi.ng/logger": "^1.4.5"

},
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
"gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
}
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