@openmrs/esm-utils 3.2.1-pre.986 → 3.3.1-pre.1173

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
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
2
  transform: {
3
- "^.+\\.tsx?$": "babel-jest",
3
+ "^.+\\.tsx?$": ["@swc/jest"],
4
4
  },
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-utils",
3
- "version": "3.2.1-pre.986",
3
+ "version": "3.3.1-pre.1173",
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": "970eb8ac9493a64af6d84c3f8a9620f96f01a1a3"
52
+ "gitHead": "957c0c36b8f754808127269f6e50b90992a60559"
53
53
  }
@@ -1,3 +1,5 @@
1
+ /** @module @category Utility */
2
+
1
3
  /**
2
4
  * Gets the number of days in the year of the given date.
3
5
  * @param date The date to compute the days within the year.
package/src/omrs-dates.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module
3
- * @category Date and time
3
+ * @category Date and Time
4
4
  */
5
5
  import { i18n } from "i18next";
6
6
  import dayjs from "dayjs";
package/src/retry.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /** @module @category Utility */
2
+
1
3
  /**
2
4
  * Options for configuring the behavior of the {@link retry} function.
3
5
  */
package/src/translate.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /** @module @category Utility */
1
2
  import _i18n from "i18next";
2
3
 
3
4
  export function translateFrom(
package/src/version.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /** @module @category Utility */
1
2
  import * as semver from "semver";
2
3
 
3
4
  function normalizeOnlyVersion(version: string) {
package/webpack.config.js CHANGED
@@ -19,7 +19,7 @@ module.exports = (env) => ({
19
19
  {
20
20
  test: /\.m?(js|ts|tsx)$/,
21
21
  exclude: /(node_modules|bower_components)/,
22
- use: "babel-loader",
22
+ use: "swc-loader",
23
23
  },
24
24
  ],
25
25
  },
package/.babelrc DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "presets": [
3
- "@babel/preset-env",
4
- "@babel/preset-typescript",
5
- "@babel/preset-react"
6
- ]
7
- }