@openmrs/esm-api 5.3.3-pre.1291 → 5.3.3-pre.1296

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,4 +1,4 @@
1
- @openmrs/esm-api:build: cache hit, replaying output 247a569f891e38f5
1
+ @openmrs/esm-api:build: cache hit, replaying output 3d6519e5a91bacb6
2
2
  @openmrs/esm-api:build: Browserslist: caniuse-lite is outdated. Please run:
3
3
  @openmrs/esm-api:build:  npx update-browserslist-db@latest
4
4
  @openmrs/esm-api:build:  Why you should do it regularly: https://github.com/browserslist/update-db#readme
@@ -13,4 +13,4 @@
13
13
  @openmrs/esm-api:build:  cacheable modules 103 KiB
14
14
  @openmrs/esm-api:build:  ./src/index.ts + 44 modules 99 KiB [built] [code generated]
15
15
  @openmrs/esm-api:build:  ../esm-state/dist/openmrs-esm-state.js 4.17 KiB [built] [code generated]
16
- @openmrs/esm-api:build: webpack 5.88.0 compiled successfully in 3806 ms
16
+ @openmrs/esm-api:build: webpack 5.88.0 compiled successfully in 3826 ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-api",
3
- "version": "5.3.3-pre.1291",
3
+ "version": "5.3.3-pre.1296",
4
4
  "license": "MPL-2.0",
5
5
  "description": "The javascript module for interacting with the OpenMRS API",
6
6
  "browser": "dist/openmrs-esm-api.js",
@@ -47,9 +47,9 @@
47
47
  "@openmrs/esm-offline": "5.x"
48
48
  },
49
49
  "devDependencies": {
50
- "@openmrs/esm-config": "5.3.3-pre.1291",
51
- "@openmrs/esm-error-handling": "5.3.3-pre.1291",
52
- "@openmrs/esm-state": "5.3.3-pre.1291",
50
+ "@openmrs/esm-config": "5.3.3-pre.1296",
51
+ "@openmrs/esm-error-handling": "5.3.3-pre.1296",
52
+ "@openmrs/esm-state": "5.3.3-pre.1296",
53
53
  "rxjs": "^6.5.3",
54
54
  "webpack": "^5.88.0"
55
55
  },
@@ -25,24 +25,24 @@ describe('openmrsFetch', () => {
25
25
 
26
26
  it(`throws an error if you don't pass in a url string`, () => {
27
27
  // @ts-ignore
28
- expect(() => openmrsFetch()).toThrowError(/first argument/);
28
+ expect(() => openmrsFetch()).toThrow(/first argument/);
29
29
  // @ts-ignore
30
- expect(() => openmrsFetch({})).toThrowError(/first argument/);
30
+ expect(() => openmrsFetch({})).toThrow(/first argument/);
31
31
  });
32
32
 
33
33
  it(`throws an error if you pass in an invalid fetchInit object`, () => {
34
34
  // @ts-ignore
35
- expect(() => openmrsFetch('/session', 'invalid second arg')).toThrowError(/second argument/);
35
+ expect(() => openmrsFetch('/session', 'invalid second arg')).toThrow(/second argument/);
36
36
 
37
37
  // @ts-ignore
38
- expect(() => openmrsFetch('/session', 123)).toThrowError(/second argument/);
38
+ expect(() => openmrsFetch('/session', 123)).toThrow(/second argument/);
39
39
  });
40
40
 
41
41
  it(`throws an Error if there is no openmrsBase`, () => {
42
42
  // @ts-ignore
43
43
  delete window.openmrsBase;
44
44
 
45
- expect(() => openmrsFetch('/session')).toThrowError(/openmrsBase/);
45
+ expect(() => openmrsFetch('/session')).toThrow(/openmrsBase/);
46
46
  });
47
47
 
48
48
  it(`calls window.fetch with the correct arguments for a basic GET request`, () => {