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.3.0 to 1.4.0

6

dist/index.d.ts

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

/**
* Creates a new Entity instance.
*
* @param {Record<Identifiers, EntityType>} entities - An object containing entities to add to the entity map.
*/
constructor(entities?: Record<Identifiers, EntityType>);
/**
* Adds a new entity to the entity map.

@@ -12,0 +18,0 @@ *

@@ -12,2 +12,16 @@ "use strict";

/**
* Creates a new Entity instance.
*
* @param {Record<Identifiers, EntityType>} entities - An object containing entities to add to the entity map.
*/
constructor(entities) {
if (entities) {
Object
.entries(entities)
.forEach(([identifier, entity]) => {
this.add(identifier, entity);
});
}
}
/**
* Adds a new entity to the entity map.

@@ -14,0 +28,0 @@ *

6

package.json
{
"name": "@anandamideio/entity",
"main": "dist/index.js",
"version": "1.3.0",
"version": "1.4.0",
"scripts": {

@@ -10,3 +10,3 @@ "build": "tsc -p tsconfig.json"

"@eslint/js": "^9.1.1",
"@magik_io/lint_golem": "^1.3.0",
"@magik_io/lint_golem": "^1.5.0",
"@types/eslint": "^8.56.10",

@@ -16,5 +16,5 @@ "@types/eslint__js": "^8.42.3",

"typescript": "^5.4.5",
"typescript-eslint": "^7.7.1"
"typescript-eslint": "^7.8.0"
},
"packageManager": "yarn@4.1.1"
}
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