@medplum/core 0.9.1 → 0.9.2

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,8 +1,9 @@
1
+ export declare const DEFAULT_SEARCH_COUNT = 20;
1
2
  export interface SearchRequest {
2
3
  readonly resourceType: string;
3
4
  filters?: Filter[];
4
5
  sortRules?: SortRule[];
5
- page?: number;
6
+ offset?: number;
6
7
  count?: number;
7
8
  fields?: string[];
8
9
  name?: string;
@@ -91,18 +91,17 @@ export declare function stringify(value: any, pretty?: boolean): string;
91
91
  /**
92
92
  * Resource equality.
93
93
  * Ignores meta.versionId and meta.lastUpdated.
94
- * See: https://dmitripavlutin.com/how-to-compare-objects-in-javascript/#4-deep-equality
95
94
  * @param object1 The first object.
96
95
  * @param object2 The second object.
97
96
  * @returns True if the objects are equal.
98
97
  */
99
- export declare function deepEquals(object1: any, object2: any, path?: string): boolean;
98
+ export declare function deepEquals(object1: unknown, object2: unknown, path?: string): boolean;
100
99
  /**
101
100
  * Returns true if the input is an object.
102
101
  * @param object The candidate object.
103
102
  * @returns True if the input is a non-null non-undefined object.
104
103
  */
105
- export declare function isObject(obj: unknown): obj is object;
104
+ export declare function isObject(obj: unknown): obj is Record<string, unknown>;
106
105
  /**
107
106
  * Returns true if the input array is an array of strings.
108
107
  * @param arr Input array.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/core",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Medplum TS/JS Library",
5
5
  "author": "Medplum <hello@medplum.com>",
6
6
  "license": "Apache-2.0",
@@ -17,7 +17,7 @@
17
17
  "test": "jest"
18
18
  },
19
19
  "devDependencies": {
20
- "@medplum/fhirtypes": "0.9.1",
20
+ "@medplum/fhirtypes": "0.9.2",
21
21
  "fast-json-patch": "3.1.1"
22
22
  },
23
23
  "main": "dist/cjs/index.js",