@empathyco/x-archetype-utils 0.1.0-alpha.15 → 0.1.0-alpha.17
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,13 +1,13 @@
|
|
|
1
1
|
import VueI18n from 'vue-i18n';
|
|
2
2
|
import { DeepPartial } from '@empathyco/x-utils';
|
|
3
3
|
/** Supported locales. */
|
|
4
|
-
export
|
|
4
|
+
export type Locale = string;
|
|
5
5
|
/** Supported devices. */
|
|
6
|
-
export
|
|
6
|
+
export type Device = string;
|
|
7
7
|
/** Union type containing both eager and lazy messages. */
|
|
8
|
-
export
|
|
8
|
+
export type AnyMessages<SomeMessages> = MessagesByDevice<SomeMessages> | LoadLazyMessagesByDevice<SomeMessages>;
|
|
9
9
|
/** A function that loads on demand the messages for a specific locale. */
|
|
10
|
-
export
|
|
10
|
+
export type LoadLazyMessagesByDevice<SomeMessages> = () => Promise<{
|
|
11
11
|
default: MessagesByDevice<SomeMessages>;
|
|
12
12
|
}>;
|
|
13
13
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-archetype-utils",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.17",
|
|
4
4
|
"description": "Utilities for x-archetype",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"prepublishOnly": "npm run build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@empathyco/x-deep-merge": "^1.3.0-alpha.
|
|
38
|
-
"vue-i18n": "~8.
|
|
37
|
+
"@empathyco/x-deep-merge": "^1.3.0-alpha.30",
|
|
38
|
+
"vue-i18n": "~8.28.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@empathyco/x-utils": "^1.0.0-alpha.
|
|
41
|
+
"@empathyco/x-utils": "^1.0.0-alpha.15",
|
|
42
42
|
"@types/jest": "~27.0.3",
|
|
43
43
|
"@types/node": "~16.4.12",
|
|
44
44
|
"@vue/test-utils": "~1.0.3",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"rollup-plugin-delete": "~2.0.0",
|
|
49
49
|
"rollup-plugin-typescript2": "~0.31.2",
|
|
50
50
|
"ts-jest": "~27.0.7",
|
|
51
|
-
"typescript": "~4.
|
|
51
|
+
"typescript": "~4.9.4",
|
|
52
52
|
"vue": "~2.7.14"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "bd02c3ec832b669fe0a90ba70e7e3c0cd8f344c2"
|
|
62
62
|
}
|