@annotorious/core 3.0.0-pre-alpha-46 → 3.0.0-pre-alpha-47

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,20 +1,28 @@
1
1
  {
2
2
  "name": "@annotorious/core",
3
- "version": "3.0.0-pre-alpha-46",
4
- "description": "Experimental rewrite of Annotorious",
3
+ "version": "3.0.0-pre-alpha-47",
4
+ "description": "Annotorious core types and functions",
5
+ "author": "Rainer Simon",
6
+ "license": "BSD-3-Clause",
7
+ "homepage": "https://annotorious.github.io",
5
8
  "type": "module",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/annotorious/annotorious.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/annotorious/annotorious/issues"
15
+ },
16
+ "scripts": {
17
+ "build": "echo 'Skipping build in @annotorious/core package'",
18
+ "test": "vitest",
19
+ "coverage": "vitest run --coverage"
20
+ },
6
21
  "main": "src/index.ts",
7
22
  "types": "src/index.ts",
8
23
  "files": [
9
24
  "src"
10
25
  ],
11
- "scripts": {
12
- "build": "echo 'Skipping build in @annotorious/formats package'",
13
- "test": "vitest",
14
- "coverage": "vitest run --coverage"
15
- },
16
- "author": "Rainer Simon",
17
- "license": "BSD-3-Clause",
18
26
  "devDependencies": {
19
27
  "@tsconfig/svelte": "^3.0.0",
20
28
  "@types/deep-equal": "^1.0.1",
@@ -67,7 +67,9 @@ export const parseBodies = (
67
67
  purpose: b.purpose,
68
68
  value: b.value,
69
69
  created: b.created,
70
- creator: b.creator ? { ...b.creator } : undefined
70
+ creator: b.creator ?
71
+ typeof b.creator === 'object' ? { ...b.creator }: b.creator :
72
+ undefined
71
73
  }));
72
74
 
73
75