@medplum/core 2.1.10 → 2.1.12

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/package.json CHANGED
@@ -1,21 +1,44 @@
1
1
  {
2
2
  "name": "@medplum/core",
3
- "version": "2.1.10",
3
+ "version": "2.1.12",
4
4
  "description": "Medplum TS/JS Library",
5
- "author": "Medplum <hello@medplum.com>",
6
- "license": "Apache-2.0",
5
+ "keywords": [
6
+ "medplum",
7
+ "fhir",
8
+ "healthcare",
9
+ "interoperability",
10
+ "json",
11
+ "serialization",
12
+ "hl7",
13
+ "standards",
14
+ "clinical",
15
+ "dstu2",
16
+ "stu3",
17
+ "r4",
18
+ "normative"
19
+ ],
7
20
  "homepage": "https://www.medplum.com/",
8
21
  "repository": {
9
22
  "type": "git",
10
- "url": "https://github.com/medplum/medplum.git",
23
+ "url": "git+https://github.com/medplum/medplum.git",
11
24
  "directory": "packages/core"
12
25
  },
13
- "engines": {
14
- "node": ">=18.0.0"
26
+ "license": "Apache-2.0",
27
+ "author": "Medplum <hello@medplum.com>",
28
+ "sideEffects": false,
29
+ "exports": {
30
+ "types": "./dist/types.d.ts",
31
+ "require": "./dist/cjs/index.cjs",
32
+ "import": "./dist/esm/index.mjs"
15
33
  },
34
+ "main": "dist/cjs/index.cjs",
35
+ "module": "dist/esm/index.mjs",
36
+ "types": "dist/types.d.ts",
16
37
  "scripts": {
38
+ "api-extractor": "api-extractor run --local",
39
+ "api-documenter": "api-documenter markdown --input-folder ./dist/api/ --output-folder ./dist/docs/",
40
+ "build": "npm run clean && tsc --project tsconfig.build.json && node esbuild.mjs && npm run api-extractor && npm run api-documenter",
17
41
  "clean": "rimraf dist",
18
- "build": "npm run clean && tsc --project tsconfig.build.json && node esbuild.mjs && api-extractor run --local",
19
42
  "test": "jest"
20
43
  },
21
44
  "devDependencies": {
@@ -31,28 +54,7 @@
31
54
  "optional": true
32
55
  }
33
56
  },
34
- "types": "dist/types.d.ts",
35
- "main": "dist/cjs/index.cjs",
36
- "module": "dist/esm/index.mjs",
37
- "exports": {
38
- "types": "./dist/types.d.ts",
39
- "require": "./dist/cjs/index.cjs",
40
- "import": "./dist/esm/index.mjs"
41
- },
42
- "sideEffects": false,
43
- "keywords": [
44
- "medplum",
45
- "fhir",
46
- "healthcare",
47
- "interoperability",
48
- "json",
49
- "serialization",
50
- "hl7",
51
- "standards",
52
- "clinical",
53
- "dstu2",
54
- "stu3",
55
- "r4",
56
- "normative"
57
- ]
57
+ "engines": {
58
+ "node": ">=18.0.0"
59
+ }
58
60
  }
package/test.setup.cjs ADDED
@@ -0,0 +1,7 @@
1
+ /* globals module require globalThis */
2
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
3
+ const { MemoryStorage } = require('@medplum/core');
4
+
5
+ module.exports = () => {
6
+ Object.defineProperty(globalThis.window, 'sessionStorage', { value: new MemoryStorage() });
7
+ };
package/tsdoc.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
3
+ "extends": ["../../tsdoc.json"]
4
+ }