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 1.4.2 to 1.4.3

17

CHANGELOG.md

@@ -63,11 +63,11 @@ # Changelog

### [1.3.1] - 2021-08-09
## [1.3.1] - 2021-08-09
### Added
- New entity method `parse()` to expose ElectroDB formatting for values retrieved outside of ElectroDB. [[read more]](./README.md#parse)
### [1.3.2] - 2021-08-11
## [1.3.2] - 2021-08-11
### Fixed
- Newly added method `parse()` had critical typo. Method now has an improved api, and appropriate tests [[read more]](./README.md#parse)
### [1.4.0] - 2021-08-22
## [1.4.0] - 2021-08-22
### Added

@@ -78,3 +78,3 @@ - Added support for choosing the case ElectroDB will use when modeling a Partition or Sort Key. [[read more]](./README.md#using-electrodb-with-existing-data)

### [1.4.1] - 2021-08-25
## [1.4.1] - 2021-08-25
### Added

@@ -86,6 +86,9 @@ - Typedef support for RegExp validation on string attributes

### [1.4.2] - 2021-09-09
## [1.4.2] - 2021-09-09
### Fixed
- Typing for `.page()` method pager. Now includes the destructured keys associated with the index being queried. [[read more]](./README.md#page)
- Adding documentation, and expanding typing for the query option `limit`, for use in `.params()` calls. [[read more]](./README.md#query-options)
## [1.4.3] - 2021-10-03
### Fixed
- Typing for `.page()` method pager. Now includes the destructured keys associated with the index being queried. [[read more]](./README.md#page)
- Adding documentation, and expanding typing for the query option `limit`, for use in `.params()` calls. [[read more]](./README.md#query-options)
- ElectroDB would throw when an `undefined` property was passed to query. This has been changed to not throw if a partial query on that index can be accomplished with the data provided.
{
"name": "electrodb",
"version": "1.4.2",
"version": "1.4.3",
"description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb",

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

@@ -41,3 +41,2 @@ const { QueryTypes, MethodTypes, ItemOperations, ExpressionTypes } = require("./types");

try {
entity._expectFacets(facets, Object.keys(facets), `"query collection" composite attributes`);
const {pk} = state.getCompositeAttributes();

@@ -385,3 +384,2 @@ return state

const attributes = state.getCompositeAttributes();
entity._expectFacets(facets, Object.keys(facets), `"query" composite attributes`);
return state

@@ -409,12 +407,2 @@ .setMethod(MethodTypes.query)

const attributes = state.getCompositeAttributes();
entity._expectFacets(
startingFacets,
Object.keys(startingFacets),
`"between" composite attributes`,
);
entity._expectFacets(
endingFacets,
Object.keys(endingFacets),
`"and" composite attributes`,
);
return state

@@ -439,4 +427,2 @@ .setType(QueryTypes.and)

try {
entity._expectFacets(facets, Object.keys(facets), `"begins" composite attributes`);
return state

@@ -462,3 +448,2 @@ .setType(QueryTypes.begins)

try {
entity._expectFacets(facets, Object.keys(facets), `"gt" composite attributes`);
return state

@@ -484,3 +469,2 @@ .setType(QueryTypes.gt)

try {
entity._expectFacets(facets, Object.keys(facets), `"gte" composite attributes`);
return state

@@ -506,3 +490,2 @@ .setType(QueryTypes.gte)

try {
entity._expectFacets(facets, Object.keys(facets), `"lt" composite attributes`);
return state.setType(QueryTypes.lt)

@@ -527,3 +510,2 @@ .ifSK(state => {

try {
entity._expectFacets(facets, Object.keys(facets), `"lte" composite attributes`);
return state.setType(QueryTypes.lte)

@@ -530,0 +512,0 @@ .ifSK(state => {

Sorry, the diff of this file is not supported yet

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

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