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

1235

2.0.13

Diff

Changelog

Source

2.0.13

  • Added getPropertyValue function to objects.js module
byron-dupreez
published 2.0.12 •

Changelog

Source

2.0.12

  • Changed app-errors.js module to export getHttpStatus function
byron-dupreez
published 2.0.11 •

Changelog

Source

2.0.11

  • Changed app-errors.js module's AppError constructor:
    • To preserve and use the more useful stack of its cause (if cause is an Error) instead of its own stack
  • Changed objects.js module's copy and merge functions:
    • To support copying and merging of Arrays as well
byron-dupreez
published 2.0.10 •

Changelog

Source

2.0.10

  • Changed strings.js module's stringify function:
    • To surround errors, which are converted to strings via their toString methods, with square brackets (to indicate that the property does not contain just a string error message)
byron-dupreez
published 2.0.9 •

Changelog

Source

2.0.9

  • Patched and changed strings.js module's stringify function:
    • To use objects' toJSON methods (if any) by default (prior versions did NOT use them at all)
    • To add an optional avoidToJSONMethods argument to determine whether to avoid using objects' toJSON methods or not (default)
    • To double-quote any string elements within an array in order to synchronize with the behaviour of JSON.stringify
    • To re-sequence the order of errors' property names when they are stringified as normal objects - in order to have an error's name as the first property, followed by its message as the second property, followed by the rest of its enumerable properties (excluding its stack property)
    • To differentiate simple references to identical objects within the object graph from true circular dependencies:
      • Simple references are now marked as [Reference: {name}], whereas the prior version marked them incorrectly as [Circular: {name}]
      • True circular dependencies are still marked as [Circular: {name}]
byron-dupreez
published 2.0.8 •

Changelog

Source

2.0.8

  • Changed strings.js module's stringify function:
    • To handle circular dependencies in objects and arrays
    • To recursively stringify objects & their properties itself, instead of relying on JSON.stringify
    • To add an optional useToStringForErrors argument to convert Errors using their toString methods (if true) or as objects (if false), but with their message and name (but not stack) properties visible in the result
    • To add an optional quoteStrings argument to return given string values surrounded with double-quotes (if true)
byron-dupreez
published 2.0.7 •

Changelog

Source

2.0.7

  • Change to objects.js:
    • Removed console.log only added for debugging from merge function
byron-dupreez
published 2.0.6 •

Changelog

Source

2.0.6

  • Change to objects.js:
    • Improved merge function to handle circular, non-Directed Acyclic Graphs of objects
    • Added a copy function also able to handle non-DAGs
byron-dupreez
published 2.0.5 •

Changelog

Source

2.0.5

  • Change to objects.js:
    • Added a merge function
byron-dupreez
published 2.0.4 •

Changelog

Source

2.0.4

  • Change to strings.js:
    • Added an nthIndexOf function that finds index of nth occurrence of a search value in a string
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