@jd-data-limited/easy-fm 4.0.2 → 4.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jd-data-limited/easy-fm",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "dependencies": {
5
5
  "follow-redirects": "^1.15.5",
6
6
  "moment": "^2.29.4"
@@ -5,7 +5,7 @@ import { EventEmitter } from "events";
5
5
  import { generateAuthorizationHeaders } from "./generateAuthorizationHeaders.js";
6
6
  import { FMError } from "../FMError.js";
7
7
  import { Layout } from "../layouts/layout.js";
8
- import * as HTTP_REDIRECT from "follow-redirects";
8
+ import HTTP_REDIRECT from "follow-redirects";
9
9
  export class Database extends EventEmitter {
10
10
  _token;
11
11
  host;
@@ -7,7 +7,7 @@ import {generateAuthorizationHeaders} from "./generateAuthorizationHeaders.js";
7
7
  import {FMError} from "../FMError.js";
8
8
  import {LayoutInterface} from "../layouts/layoutInterface.js";
9
9
  import {Layout} from "../layouts/layout.js";
10
- import * as HTTP_REDIRECT from "follow-redirects"
10
+ import HTTP_REDIRECT from "follow-redirects"
11
11
  import {
12
12
  databaseOptionsBase,
13
13
  databaseOptionsWithExternalSources,
@@ -27,7 +27,7 @@ export class RecordGetOperation {
27
27
  offset: offset.toString(),
28
28
  };
29
29
  if (this.sortData.length !== 0)
30
- params.sort = JSON.stringify(this.sortData);
30
+ params.sort = this.sortData;
31
31
  if (this.scriptData.after)
32
32
  params["script"] = this.scriptData.after.name;
33
33
  if (this.scriptData.after?.parameter)
@@ -56,7 +56,7 @@ export class RecordGetOperation<T extends LayoutInterface, OPTIONS extends GetOp
56
56
  limit: limit.toString(),
57
57
  offset: offset.toString(),
58
58
  }
59
- if (this.sortData.length !== 0) params.sort = JSON.stringify(this.sortData)
59
+ if (this.sortData.length !== 0) params.sort = this.sortData
60
60
 
61
61
 
62
62
  if (this.scriptData.after) params["script"] = this.scriptData.after.name