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

core-functions

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

core-functions - npm Package Versions

2345

3.0.25

Diff

Changelog

Source

3.0.25

  • Changes to promises module:
    • Added handleUnhandledRejection & handleUnhandledRejections functions based on avoidUnhandledPromiseRejectionWarning & avoidUnhandledPromiseRejectionWarnings functions
    • Changed avoidUnhandledPromiseRejectionWarning/s functions to be deprecated synonyms for handleUnhandledRejection/s functions
    • Added ignoreUnhandledRejection & ignoreUnhandledRejections functions that suppress unhandled rejections without logging
byron-dupreez
published 3.0.24 •

Changelog

Source

3.0.24

  • Changes to promises module:
    • Changed wrap & wrapMethod functions to handle successful callbacks with more than 2 arguments by resolving the promise with an array containing all of the arguments other than the first. Note that successful callbacks with only 2 arguments will still return the 2nd argument as before (instead of an array containing only the 2nd argument).
    • Changed wrap & wrapMethod functions to timeout and reject their promises if they are still pending after a configurable number of milliseconds - to avoid cases where the wrapped function does NOT call the callback.
      • Added new optional opts last argument to wrap & wrapMethod functions to enable configuration of the timeout time in milliseconds
byron-dupreez
published 3.0.23 •

Changelog

Source

3.0.23

  • Added .npmignore
  • Renamed release_notes.md to CHANGES.md
byron-dupreez
published 3.0.22 •

Changelog

Source

3.0.22

  • Replaced two instanceof usages in arrays module with calls to isInstanceOf
byron-dupreez
published 3.0.21 •

Changelog

Source

3.0.21

  • Added toType function to any module
  • Added isInstanceOf function to objects module
  • Replaced all of the instanceof checks against custom classes with calls to isInstanceOf
  • Added MethodNotAllowed class to app-errors module
byron-dupreez
published 3.0.20 •

Changelog

Source

3.0.20

  • Updated usage notes and tested with Node version number in README.md
byron-dupreez
published 3.0.19 •

Changelog

Source

3.0.19

  • Renamed dummy first exports (exports._ = '_'; //IDE workaround) of most modules to (exports._$_ = '_$_';) to avoid potential future collisions with lodash & underscore
byron-dupreez
published 3.0.18 •

Changelog

Source

3.0.18

  • Changes to tries module:
    • Changed describeSuccessAndFailureCounts function to suppress clauses with counts of zero
byron-dupreez
published 3.0.17 •

Changelog

Source

3.0.17

  • Changes to promises module:
    • Changed the avoidUnhandledPromiseRejectionWarning function to log each error and its stack trace at WARN-level
    • Added a new, convenience avoidUnhandledPromiseRejectionWarnings function that applies the avoidUnhandledPromiseRejectionWarning function to each of the promises it is given
    • Changes to the every function:
      • Added a new optional logger 3rd parameter to the every function to enable use of a custom logger instead of console
      • Fixed the every function to call the new avoidUnhandledPromiseRejectionWarnings function on any unresolved promises before throwing a CancelledError
    • Changes to the flatten function:
      • Completely refactored the logic of the flatten function to ALWAYS return a Promise
      • Changed flatten function to rely on the fixed every function to avoid UnhandledPromiseRejectionWarnings instead of calling avoidUnhandledPromiseRejectionWarning itself
    • Added defaultFlattenOpts sample options to use with flatten function
  • Changes to tries module:
    • Added defaultFlattenOpts sample options to use with flatten function
    • Refactored the logic of the flatten function to cache Success values & unpacked values instead of Success instances
  • Changes to copying module:
    • Added defaultCopyOpts sample options to use with copy function
    • Added defaultCopyNamedPropertiesOpts sample options to use with copyNamedProperties function
  • Changes to merging module:
    • Added defaultMergeOpts sample options to use with merge function
  • Changes to type-defs module:
    • Added FlattenOpts & TryFlattenOpts type definitions
byron-dupreez
published 3.0.16 •

Changelog

Source

3.0.16

  • Changes to errors module:
    • Added new optional cause constructor parameters & properties to FatalError, TransientError & TimeoutError classes
  • Changes to promises module:
    • Added new optional logger parameters to flatten & avoidUnhandledPromiseRejectionWarning functions to enable or disable TRACE-level logging of their attempts to avoid unhandled promise rejection warnings
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