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

tscommons-es-core

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tscommons-es-core - npm Package Compare versions

Comparing version 1.21.1 to 1.21.2

2

dist/classes/commons-tally.d.ts

@@ -16,2 +16,4 @@ export type TCommonsTallyEntry<K> = {

enumerateArray(array: K[]): void;
get size(): number;
get total(): number;
get(key: K): number | undefined;

@@ -18,0 +20,0 @@ asMap(includeZeros?: boolean): Map<K, number>;

@@ -42,2 +42,12 @@ export class CommonsTally {

}
get size() {
return this.internalMap.size;
}
get total() {
let total = 0;
for (const k of this.internalMap.keys()) {
total += this.internalMap.get(k);
}
return total;
}
get(key) {

@@ -44,0 +54,0 @@ return this.internalMap.get(key);

2

package.json
{
"name": "tscommons-es-core",
"version": "1.21.1",
"version": "1.21.2",
"description": "",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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