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

134

1.1.0

Diff

Changelog

Source

2018-07-28, version 1.1.0

  • Implemented support for creating typed functions from a plain function having a property signature.
  • Implemented providing a name when merging multiple typed functions.
josdejong
published 1.0.4 •

Changelog

Source

2018-07-04, version 1.0.4

  • By default, addType will insert new types before the Object test since the Object test also matches arrays and classes.
  • Upgraded devDependencies.
josdejong
published 1.0.3 •

Changelog

Source

2018-03-17, version 1.0.3

  • Dropped usage of ES6 feature Array.find, so typed-function is directly usable on any ES5 compatible JavaScript engine (like IE11).
josdejong
published 1.0.2 •

Changelog

Source

2018-03-17, version 1.0.2

  • Fixed typed-function not working on browsers that don't allow setting the name property of a function.
josdejong
published 1.0.1 •

Changelog

Source

2018-02-21, version 1.0.1

  • Upgraded dev dependencies.
josdejong
published 1.0.0 •

Changelog

Source

2018-02-20, version 1.0.0

Version 1.0.0 is rewritten from scratch. The API is the same, though generated error messages may differ slightly.

Version 1.0.0 no longer uses eval under the hood to achieve good performance. This reduces security risks and makes typed-functions easier to debug.

Type Object is no longer treated specially from other types. This means that the test for Object must not give false positives for types like Array, Date, or class instances.

In version 1.0.0, support for browsers like IE9, IE10 is dropped, though typed-function can still work when using es5 and es6 polyfills.

josdejong
published 0.10.7 •

Changelog

Source

2018-01-24, version 0.10.7

  • Fixed the field data.actual in a TypeError message containing the type index instead of the actual type of the argument.
josdejong
published 0.10.6 •

Changelog

Source

2017-11-18, version 0.10.6

  • Fixed a security issue allowing to execute arbitrary JavaScript code via a specially prepared function name of a typed function. Thanks Masato Kinugawa.
josdejong
published 0.10.5 •

Changelog

Source

2016-11-18, version 0.10.5

  • Fixed the use of multi-layered use of any type. See #8.
josdejong
published 0.10.4 •

Changelog

Source

2016-04-09, version 0.10.4

  • Typed functions can only inherit names from other typed functions and no longer from regular JavaScript functions since these names are unreliable: they can be manipulated by minifiers and browsers.
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