@scx-js/scx-data 0.0.9 → 0.1.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/query/OrderBy.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scx-js/scx-data",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "description": "SCX Data",
5
5
  "license": "MIT",
6
6
  "author": "scx567888",
@@ -11,6 +11,6 @@
11
11
  "url": "https://github.com/scx567888/scx-js.git"
12
12
  },
13
13
  "dependencies": {
14
- "@scx-js/scx-common": "0.0.9"
14
+ "@scx-js/scx-common": "0.1.0"
15
15
  }
16
16
  }
package/query/OrderBy.js CHANGED
@@ -1,14 +1,16 @@
1
1
  import {isBlank} from "@scx-js/scx-common";
2
2
  import {QueryImpl} from "./QueryImpl.js";
3
3
  import {ofInfo} from "./QueryOption.js";
4
+ import {QueryLike} from "./QueryLike.js";
4
5
 
5
- class OrderBy {
6
+ class OrderBy extends QueryLike {
6
7
 
7
8
  #name;
8
9
  #orderByType;
9
10
  #info;
10
11
 
11
12
  constructor(name, orderByType, ...options) {
13
+ super();
12
14
  if (isBlank(name)) {
13
15
  throw new Error("OrderBy 参数错误 : 名称 不能为空 !!!");
14
16
  }