@openmrs/esm-utils 4.0.0-pre.0 → 4.0.1-pre.206

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/jest.config.js CHANGED
@@ -3,4 +3,7 @@ module.exports = {
3
3
  "^.+\\.tsx?$": ["@swc/jest"],
4
4
  },
5
5
  testEnvironment: "jsdom",
6
+ testEnvironmentOptions: {
7
+ url: "http://localhost/",
8
+ },
6
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-utils",
3
- "version": "4.0.0-pre.0",
3
+ "version": "4.0.1-pre.206",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Helper utilities for OpenMRS",
6
6
  "browser": "dist/openmrs-esm-utils.js",
@@ -49,5 +49,5 @@
49
49
  "dependencies": {
50
50
  "semver": "^7.3.2"
51
51
  },
52
- "gitHead": "254a7226212aac82df4434639b2584e24ac240e4"
52
+ "gitHead": "7ac6e01b41238739cdf5d20efdff50062f46f500"
53
53
  }
package/src/omrs-dates.ts CHANGED
@@ -178,6 +178,8 @@ const defaultOptions: FormatDateOptions = {
178
178
  * When time is included, it is appended with a comma and a space. This
179
179
  * agrees with the output of `Date.prototype.toLocaleString` for *most*
180
180
  * locales.
181
+ *
182
+ * TODO: Shouldn't throw on null input
181
183
  */
182
184
  export function formatDate(date: Date, options?: Partial<FormatDateOptions>) {
183
185
  const { mode, time, day, year }: FormatDateOptions = {
package/src/version.ts CHANGED
@@ -27,5 +27,5 @@ export function isVersionSatisfied(
27
27
 
28
28
  return semver.satisfies(version, requiredVersion, {
29
29
  includePrerelease: true,
30
- });
30
+ } as semver.Options);
31
31
  }
@@ -1,2 +0,0 @@
1
- @openmrs/esm-utils:lint: cache hit, replaying output 5f2c624ca5cde50d
2
- @openmrs/esm-utils:lint: $ eslint src --ext ts,tsx
@@ -1,10 +0,0 @@
1
- @openmrs/esm-utils:test: cache hit, replaying output c0c99dbb97300d6e
2
- @openmrs/esm-utils:test: $ jest --config jest.config.js --passWithNoTests
3
- @openmrs/esm-utils:test: PASS src/version.test.ts
4
- @openmrs/esm-utils:test: PASS src/omrs-dates.test.ts
5
- @openmrs/esm-utils:test: 
6
- @openmrs/esm-utils:test: Test Suites: 2 passed, 2 total
7
- @openmrs/esm-utils:test: Tests: 22 passed, 22 total
8
- @openmrs/esm-utils:test: Snapshots: 0 total
9
- @openmrs/esm-utils:test: Time: 7.97 s
10
- @openmrs/esm-utils:test: Ran all test suites.
@@ -1,2 +0,0 @@
1
- @openmrs/esm-utils:typescript: cache hit, replaying output 5cdb80788a2384dc
2
- @openmrs/esm-utils:typescript: $ tsc