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

@anandamideio/entity

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anandamideio/entity - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

8

dist/index.d.ts

@@ -97,2 +97,10 @@ /**

/**
* find implementation for the entity map.
*
* @param {Function} callback - The function to call for each entity.
* @param {any} thisArg - The value to use as `this` when executing the callback.
* @returns {EntityType | undefined}
*/
find(callback: (entity: EntityType, identifier: Identifiers, entityMap: Map<symbol, EntityType>) => boolean, thisArg?: any): EntityType | undefined;
/**
* reduce implementation for the entity map.

@@ -99,0 +107,0 @@ *

@@ -152,2 +152,18 @@ "use strict";

/**
* find implementation for the entity map.
*
* @param {Function} callback - The function to call for each entity.
* @param {any} thisArg - The value to use as `this` when executing the callback.
* @returns {EntityType | undefined}
*/
find(callback, thisArg) {
let result;
this.entitySymbols.forEach((symbol, identifier) => {
if (callback.call(thisArg, this.entityMap.get(symbol), identifier, this.entityMap)) {
result = this.entityMap.get(symbol);
}
});
return result;
}
/**
* reduce implementation for the entity map.

@@ -154,0 +170,0 @@ *

5

package.json
{
"name": "@anandamideio/entity",
"main": "dist/index.js",
"version": "1.0.0",
"version": "1.1.0",
"scripts": {
"build": "tsc -p tsconfig.json"
},
"devDependencies": {

@@ -6,0 +9,0 @@ "@eslint/js": "^8.57.0",

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