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

electrodb

Package Overview
Dependencies
Maintainers
1
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrodb - npm Package Compare versions

Comparing version 2.3.4 to 2.3.5

2

package.json
{
"name": "electrodb",
"version": "2.3.4",
"version": "2.3.5",
"description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,3 +10,3 @@ // # Errors:

section = section || "unknown-error-5001";
return `https://github.com/tywalch/electrodb#${section}`;
return `https://electrodb.dev/en/reference/errors/#${section}`;
}

@@ -13,0 +13,0 @@

@@ -342,2 +342,5 @@ const {AttributeTypes, ItemOperations, AttributeProxySymbol, BuilderTypes} = require("./types");

for (let path of Object.keys(record)) {
if (record[path] === undefined) {
continue;
}
const value = record[path];

@@ -344,0 +347,0 @@ const parts = u.parseJSONPath(path);

@@ -241,3 +241,3 @@ const { CastTypes, ValueTypes, KeyCasing, AttributeTypes, AttributeMutationMethods, AttributeWildCard, PathTypes, TableIndex, ItemOperations } = require("./types");

return (value) => {
if ([AttributeTypes.string, AttributeTypes.enum].includes(this.type)) {
if ([AttributeTypes.string, AttributeTypes.enum].includes(this.type) && value !== undefined) {
value = `${prefix}${value}${postfix}`;

@@ -462,3 +462,3 @@ }

case AttributeTypes.enum:
case AttributeTypes.enumSet:
// case AttributeTypes.enumSet:
// isTyped = this.enumArray.every(enumValue => {

@@ -465,0 +465,0 @@ // const val = Array.isArray(value) ? value : [value];

@@ -158,3 +158,3 @@ const { Entity } = require("./entity");

if (modelVersion !== this._modelVersion) {
throw new e.ElectroError(e.ErrorCodes.InvalidJoin, "Invalid instance: Valid instances to join include Models and Entity instances. Additionally, all models must be in the same format (v1 vs beta). Review https://github.com/tywalch/electrodb#version-v1-migration for more detail.");
throw new e.ElectroError(e.ErrorCodes.InvalidJoin, "Invalid instance: Valid instances to join include Models and Entity instances.");
} else if (modelVersion === ModelVersions.beta) {

@@ -161,0 +161,0 @@ instance = applyBetaModelOverrides(instance, this._modelOverrides);

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