2.1.0 • Published 4 years ago

js-drivecommons v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

JS-DRIVE Commons

Motivation

Reuse javascript utils and middlewares along Zara Drive applications

Install

npm i js-drivecommons

Use

Utils

Exported data utils can be found in UTILS

Controllers

Exported controllers can be found in CONTROLLERS

Routers

Exported routers can be found in ROUTERS

Services

Exported services can be found in SERVICES

Middlewares

Exported middlewares can be found in MIDDLEWARES

Tips: On Date Join Middlewares

We publish multiple middlewares to allow a local_date join process. All this middlewares receives 4 arguments as input from ctx.state:

There are two types of middlewares, comparableJoin and comparableA2Join, and each of them have 3 subtypes of middlewars:

  • comparableJoin | comparableA2Join: Joins in dates from filters.comparableDate.data the data from current and comp. So return data will have all possible dates.
  • comparableLeftJoin | comparableA2LeftJoin: This middleware uses left join strategy, so as the left part of the join is current data, return will have all dates from left side, joined with mathes from comp (right side) using filter.comparableDate.data associations.
  • comaprableRightJoin | comparableA2RightJoin: This middleware uses right join strategy, so return will have all comp data joined with current data matches using filter.comparableDate.data associations.

More info

More info in DOCS.

Development

npm install

To build for production, run:

npm run build

To run the unit tests for the components, run:

npm test

You'll find the compiled module under /dist dir.

Deployment

Every release is built and deployed to npm via Github Actions.

Maintainers

Contributing

See Contributing


Changelog

See Changelog

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.10.1

4 years ago

1.10.0

4 years ago

1.9.0

4 years ago

1.8.1

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago