New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@goodware/log

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goodware/log - npm Package Compare versions

Comparing version 8.0.5 to 8.0.6

4

changelog/CHANGELOG.md
# @goodware/log Release History
## 8.0.6 2022-07-04
Update documentation
## 8.0.5 2022-06-26

@@ -4,0 +8,0 @@

2

package.json
{
"name": "@goodware/log",
"version": "8.0.5",
"version": "8.0.6",
"description": "Batteries-included Winston3-based loggger with console, file, and AWS CloudWatch Logs transports",

@@ -5,0 +5,0 @@ "author": "devguy@devguy.com",

@@ -13,3 +13,3 @@ /**

/**
* Removes all items
* Removes all items. This is the same as `pop(0)`.
*/

@@ -21,4 +21,5 @@ clear() {

/**
* @property {number}
* Returns the number of items in the stack
* @returns {number}
* @type {number}
*/

@@ -40,12 +41,12 @@ get length() {

* Removes items from the top of the stack
* @param {number} [to] If negative, remove the item at the top of the stack only. Otherwise, remove items from the
* top of the stack until its length is equal to the specified value.
* @param {number} [toLength] If negative, remove the item at the top of the stack only. Otherwise, remove items from
* the top of the stack until its length is equal to the specified value.
* @returns {*} The last item removed from the stack
*/
pop(to = -1) {
pop(toLength = -1) {
const { stack } = this;
if (!stack.length) throw new Error('out of range');
if (to < 0) return stack.pop();
if (to >= stack.length) throw new Error('out of range');
return stack.splice(to)[0];
if (toLength < 0) return stack.pop();
if (toLength >= stack.length) throw new Error('out of range');
return stack.splice(toLength)[0];
}

@@ -52,0 +53,0 @@

Sorry, the diff of this file is too big to display

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