pangea-server 3.1.9 → 3.2.0

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.
@@ -1,3 +1,2 @@
1
- import type { ColGeneralOptions } from '../../../database/database.types';
2
- export declare function ColJson(options?: ColGeneralOptions): (target: any, propertyName: string) => void;
1
+ export declare function ColJson(): (target: any, propertyName: string) => void;
3
2
  export declare function ColStrArray(): (target: any, propertyName: string) => void;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ColStrArray = exports.ColJson = void 0;
4
4
  const column_1 = require("./column");
5
- function ColJson(options) {
6
- return (0, column_1.Column)('JSON', options);
5
+ function ColJson() {
6
+ return (0, column_1.Column)('JSON', { defaultValue: {} });
7
7
  }
8
8
  exports.ColJson = ColJson;
9
9
  function ColStrArray() {
@@ -4,7 +4,5 @@ type ColNumOptions = ColGeneralOptions & {
4
4
  max?: number;
5
5
  };
6
6
  export declare function ColInt(options?: ColNumOptions): (target: any, propertyName: string) => void;
7
- export declare function ColBigInt(options?: ColNumOptions): (target: any, propertyName: string) => void;
8
- export declare function ColFloat(options?: ColNumOptions): (target: any, propertyName: string) => void;
9
7
  export declare function ColDouble(options?: ColNumOptions): (target: any, propertyName: string) => void;
10
8
  export {};
@@ -1,19 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ColDouble = exports.ColFloat = exports.ColBigInt = exports.ColInt = void 0;
3
+ exports.ColDouble = exports.ColInt = void 0;
4
4
  const column_1 = require("./column");
5
5
  function ColInt(options) {
6
6
  return getNumColumn('INTEGER', options);
7
7
  }
8
8
  exports.ColInt = ColInt;
9
- function ColBigInt(options) {
10
- return getNumColumn('BIGINT', options);
11
- }
12
- exports.ColBigInt = ColBigInt;
13
- function ColFloat(options) {
14
- return getNumColumn('FLOAT', options);
15
- }
16
- exports.ColFloat = ColFloat;
17
9
  function ColDouble(options) {
18
10
  return getNumColumn('DOUBLE', options);
19
11
  }
@@ -8,8 +8,6 @@ export declare const col: {
8
8
  Str: typeof str.ColStr;
9
9
  Text: typeof str.ColText;
10
10
  Int: typeof num.ColInt;
11
- BigInt: typeof num.ColBigInt;
12
- Float: typeof num.ColFloat;
13
11
  Double: typeof num.ColDouble;
14
12
  Datetime: typeof date.ColDatetime;
15
13
  Date: typeof date.ColDate;
@@ -35,8 +35,6 @@ exports.col = {
35
35
  Str: str.ColStr,
36
36
  Text: str.ColText,
37
37
  Int: num.ColInt,
38
- BigInt: num.ColBigInt,
39
- Float: num.ColFloat,
40
38
  Double: num.ColDouble,
41
39
  Datetime: date.ColDatetime,
42
40
  Date: date.ColDate,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-server",
3
3
  "description": "",
4
- "version": "3.1.9",
4
+ "version": "3.2.0",
5
5
  "files": [
6
6
  "dist"
7
7
  ],