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

typed-function

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-function - npm Package Versions

124

0.10.3

Diff

Changelog

Source

2015-10-07, version 0.10.3

  • Reverted the fix of v0.10.2 until the introduced issue with variable arguments is fixed too. Added unit test for the latter case.
josdejong
published 0.10.2 •

Changelog

Source

2015-10-04, version 0.10.2

  • Fixed support for using any multiple times in a single signture. Thanks @luke-gumbley.
josdejong
published 0.10.1 •

Changelog

Source

2015-07-27, version 0.10.1

  • Fixed functions addType and addConversion not being robust against replaced arrays typed.types and typed.conversions.
josdejong
published 0.10.0 •

Changelog

Source

2015-07-26, version 0.10.0

  • Dropped support for the following construction signatures in order to simplify the API:
    • typed(signature: string, fn: function)
    • typed(name: string, signature: string, fn: function)
  • Implemented convenience methods typed.addType and typed.addConversion.
  • Changed the casing of the type 'function' to 'Function'. Breaking change.
  • typed.types is now an ordered Array containing objects {name: string, test: function}. Breaking change.
  • List with expected types in error messages no longer includes converted types.
josdejong
published 0.9.0 •

Changelog

Source

2015-05-17, version 0.9.0

  • typed.types is now an ordered Array containing objects {type: string, test: function} instead of an object. Breaking change.
  • typed-function now allows merging typed functions with duplicate signatures when they point to the same function.
josdejong
published 0.8.3 •

Changelog

Source

2015-05-16, version 0.8.3

  • Function typed.find now throws an error instead of returning null when a signature is not found.
  • Fixed: the attached signatures no longer contains signatures with conversions.
josdejong
published 0.8.2 •

Changelog

Source

2015-05-09, version 0.8.2

  • Fixed function typed.convert not handling the case where the value already has the requested type. Thanks @rjbaucells.
josdejong
published 0.8.1 •

Changelog

Source

2015-05-09, version 0.8.1

  • Implemented option typed.ignore to ignore/filter signatures of a typed function.
josdejong
published 0.8.0 •

Changelog

Source

2015-05-09, version 0.8.0

  • Implemented function create to create a new instance of typed-function.
  • Implemented a utility function convert(value, type) (#1).
  • Implemented a simple typed.find function to find the implementation of a specific function signature.
  • Extended the error messages to denote the function name, like "Too many arguments in function foo (...)".
josdejong
published 0.7.0 •

Changelog

Source

2015-04-17, version 0.7.0

  • Performance improvements.
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