@openmrs/esm-utils 8.0.1-pre.3693 → 8.0.1-pre.3699

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,3 @@
1
- [0] Successfully compiled: 12 files with swc (137.69ms)
1
+ [0] Successfully compiled: 12 files with swc (247.55ms)
2
2
  [0] swc --strip-leading-paths src -d dist exited with code 0
3
3
  [1] tsc --project tsconfig.build.json exited with code 0
@@ -10,3 +10,4 @@ import dayjs from 'dayjs';
10
10
  * @returns A human-readable string version of the age.
11
11
  */
12
12
  export declare function age(birthDate: dayjs.ConfigType, currentDate?: dayjs.ConfigType): string | null;
13
+ //# sourceMappingURL=age-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"age-helpers.d.ts","sourceRoot":"","sources":["../src/age-helpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B;;;;;;;;;GASG;AACH,wBAAgB,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,UAAU,EAAE,WAAW,GAAE,KAAK,CAAC,UAAoB,GAAG,MAAM,GAAG,IAAI,CAyEvG"}
@@ -151,3 +151,4 @@ export declare function convertToLocaleCalendar(date: CalendarDate | CalendarDat
151
151
  * @returns The formatted duration string.
152
152
  */
153
153
  export declare function formatDuration(duration: DurationInput, options?: DurationFormatOptions): string;
154
+ //# sourceMappingURL=date-util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-util.d.ts","sourceRoot":"","sources":["../../src/dates/date-util.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAGnB,MAAM,yBAAyB,CAAC;AASjC,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAMpG,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,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U,EAAE,MAAM,EAAE,OAAO,GAAE,OAAO,CAAC,iBAAiB,CAAM,iBAuC7F;AAED;;;;;;;;;;;;;;;;;;GAkBG;AAEH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,UAkE1E;AAiBD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,UAKpC;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,UAE5F;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,YAAY,GAAG,gBAAgB,GAAG,aAAa,EACrD,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,mDAM7B;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,qBAAqB,UAGtF"}
@@ -1 +1,2 @@
1
1
  export * from './date-util';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dates/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -3,3 +3,4 @@
3
3
  * @returns string
4
4
  */
5
5
  export declare function getLocale(): string;
6
+ //# sourceMappingURL=get-locale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-locale.d.ts","sourceRoot":"","sources":["../src/get-locale.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,SAAS,WASxB"}
package/dist/index.d.ts CHANGED
@@ -8,3 +8,4 @@ export * from './storage';
8
8
  export * from './test-helpers';
9
9
  export * from './version';
10
10
  export * from './retry';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare function isOnline(online?: boolean): boolean;
2
+ //# sourceMappingURL=is-online.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-online.d.ts","sourceRoot":"","sources":["../src/is-online.ts"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,WAExC"}
@@ -39,3 +39,4 @@ export declare function formattedName(name: fhir.HumanName | undefined): string;
39
39
  * @return the preferred name for the patient, or undefined if no acceptable name could be found.
40
40
  */
41
41
  export declare function selectPreferredName(patient: fhir.Patient, ...preferredNames: NameUse[]): fhir.HumanName | undefined;
42
+ //# sourceMappingURL=patient-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patient-helpers.d.ts","sourceRoot":"","sources":["../src/patient-helpers.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,GAAG,MAAM,CAG5D;AAED,uCAAuC;AACvC,wBAAgB,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,GAAG,MAAM,CAEzD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,GAAG,SAAS,GAAG,MAAM,CAG1E;AAED,0CAA0C;AAC1C,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,GAAG,SAAS,GAAG,MAAM,CAEtE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,GAAG,cAAc,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,SAAS,GAAG,SAAS,CAWnH"}
package/dist/retry.d.ts CHANGED
@@ -36,3 +36,4 @@ export interface RetryOptions {
36
36
  * @throws Rethrows the final error of running `fn` when the function stops retrying.
37
37
  */
38
38
  export declare function retry<T>(fn: () => Promise<T>, options?: RetryOptions): Promise<T>;
39
+ //# sourceMappingURL=retry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,WAAW,CAAC,CAAC,OAAO,EAAE,MAAM,OAAE;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC;;;;;OAKG;IACH,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,KAAK,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,GAAE,YAAiB,cAqB9E"}
@@ -10,3 +10,4 @@
10
10
  * @returns true if the objects are shallowly equal to each other
11
11
  */
12
12
  export declare function shallowEqual(a: unknown, b: unknown): boolean;
13
+ //# sourceMappingURL=shallowEqual.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shallowEqual.d.ts","sourceRoot":"","sources":["../src/shallowEqual.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,WAiClD"}
package/dist/storage.d.ts CHANGED
@@ -8,3 +8,4 @@
8
8
  * @returns True if the WebStorage API object is able to be accessed, false otherwise
9
9
  */
10
10
  export declare function canAccessStorage(storage?: Storage): boolean;
11
+ //# sourceMappingURL=storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,OAA6B,WAOtE"}
@@ -10,3 +10,4 @@
10
10
  * need to override some of the default values.
11
11
  */
12
12
  export declare function getDefaultsFromConfigSchema<T = Record<string, any>>(schema: Record<string | number | symbol, unknown>): T;
13
+ //# sourceMappingURL=test-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-helpers.d.ts","sourceRoot":"","sources":["../src/test-helpers.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACjE,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,GAChD,CAAC,CAiBH"}
package/dist/version.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export declare function isVersionSatisfied(requiredVersion: string, installedVersion: string): boolean;
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAqBA,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,WAMnF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-utils",
3
- "version": "8.0.1-pre.3693",
3
+ "version": "8.0.1-pre.3699",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Helper utilities for OpenMRS",
6
6
  "type": "module",
@@ -59,7 +59,7 @@
59
59
  "rxjs": "6.x"
60
60
  },
61
61
  "devDependencies": {
62
- "@openmrs/esm-globals": "8.0.1-pre.3693",
62
+ "@openmrs/esm-globals": "8.0.1-pre.3699",
63
63
  "@swc/cli": "^0.7.7",
64
64
  "@swc/core": "^1.11.29",
65
65
  "@types/lodash-es": "^4.17.12",