@dwtechs/antity 0.11.0 โ†’ 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,13 +3,11 @@
3
3
  [![npm version](https://badge.fury.io/js/%40dwtechs%2Fantity.svg)](https://www.npmjs.com/package/@dwtechs/antity)
4
4
  [![last version release date](https://img.shields.io/github/release-date/DWTechs/Antity.js)](https://www.npmjs.com/package/@dwtechs/antity)
5
5
  ![Jest:coverage](https://img.shields.io/badge/Jest:coverage-100%25-brightgreen.svg)
6
- [![minified size](https://img.shields.io/bundlephobia/min/@dwtechs/antity?color=brightgreen)](https://www.npmjs.com/package/@dwtechs/antity)
7
6
 
8
7
  - [Synopsis](#synopsis)
9
8
  - [Support](#support)
10
9
  - [Installation](#installation)
11
10
  - [Usage](#usage)
12
- - [ES6](#es6)
13
11
  - [API Reference](#api-reference)
14
12
  - [Contributors](#contributors)
15
13
  - [Stack](#stack)
@@ -19,12 +17,10 @@
19
17
 
20
18
  **[Antity.js](https://github.com/DWTechs/Antity.js)** is an Open source library for easy entity management.
21
19
 
22
- - Only 1 small dependency to check inputs variables
23
- - Very lightweight
24
- - Thoroughly tested
25
- - Works in Javascript, Typescript
26
- - Can be used as EcmaScrypt module
27
- - Written in Typescript
20
+ - ๐Ÿชถ Very lightweight
21
+ - ๐Ÿงช Thoroughly tested
22
+ - ๐Ÿšš Shipped as EcmaScrypt module
23
+ - ๐Ÿ“ Written in Typescript
28
24
 
29
25
 
30
26
  ## Support
@@ -44,8 +40,6 @@ $ npm i @dwtechs/antity
44
40
  ## Usage
45
41
 
46
42
 
47
- ### ES6 / TypeScript
48
-
49
43
  ```javascript
50
44
 
51
45
  import { Entity } from "@dwtechs/antity";
package/dist/antity.js CHANGED
@@ -218,6 +218,7 @@ class Entity {
218
218
  this.normalize = (req, _res, next) => {
219
219
  var _a;
220
220
  const rows = (_a = req.body) === null || _a === void 0 ? void 0 : _a.rows;
221
+ log.debug(`normalize ${this.name}`);
221
222
  if (!isArray(rows, "!0"))
222
223
  return next({ statusCode: 400, message: "Normalize: no rows found in request body" });
223
224
  for (const r of rows) {
@@ -242,6 +243,7 @@ class Entity {
242
243
  var _a;
243
244
  const rows = (_a = req.body) === null || _a === void 0 ? void 0 : _a.rows;
244
245
  const method = req.method;
246
+ log.debug(`validate ${this.name}`);
245
247
  if (!isArray(rows, "!0"))
246
248
  return next({ statusCode: 400, message: "Validate: no rows found in request body" });
247
249
  if (!isIn(Methods, method))
@@ -272,6 +274,7 @@ class Entity {
272
274
  var _a;
273
275
  const rows = (_a = req.body) === null || _a === void 0 ? void 0 : _a.rows;
274
276
  const method = req.method;
277
+ log.debug(`check ${this.name}`);
275
278
  if (!isArray(rows, "!0"))
276
279
  return next({ statusCode: 400, message: "Check: no rows found in request body" });
277
280
  if (!isIn(Methods, method))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dwtechs/antity",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Open source library for easy entity management",
5
5
  "keywords": [
6
6
  "entities"
@@ -38,8 +38,7 @@
38
38
  "dependencies": {
39
39
  "@dwtechs/checkard": "3.2.3",
40
40
  "@dwtechs/winstan": "0.4.0",
41
- "@dwtechs/sparray": "0.1.1",
42
- "pg": "8.13.1"
41
+ "@dwtechs/sparray": "0.1.1"
43
42
  },
44
43
  "devDependencies": {
45
44
  "@babel/core": "7.26.0",