@nan0web/core 1.1.2 → 1.1.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@nan0web/core",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Core application framework for nan0web with database handling, internationalization, and interface connectivity",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -25,20 +25,20 @@
25
25
  "author": "ЯRаСлав YaRaSLove <support@yaro.page>",
26
26
  "license": "ISC",
27
27
  "devDependencies": {
28
- "@nan0web/release": "^1.0.2",
29
- "@nan0web/test": "^1.1.3",
30
28
  "husky": "^9.1.7",
31
- "knip": "^5.86.0"
29
+ "knip": "^5.86.0",
30
+ "@nan0web/test": "1.1.3",
31
+ "@nan0web/release": "1.0.3"
32
32
  },
33
33
  "dependencies": {
34
- "@nan0web/db": "^1.4.3",
35
- "@nan0web/i18n": "^1.3.0",
36
- "@nan0web/protocol": "^2.0.0",
37
- "@nan0web/types": "^1.6.0"
34
+ "@nan0web/db": "1.4.6",
35
+ "@nan0web/i18n": "1.5.0",
36
+ "@nan0web/protocol": "2.0.0",
37
+ "@nan0web/types": "1.7.1"
38
38
  },
39
39
  "scripts": {
40
- "build": "tsc",
41
- "clean": "rm -rf .cache/ && rm -rf dist/",
40
+ "build": "rm -rf types && tsc",
41
+ "clean": "rm -rf .cache/ && rm -rf dist/ && rm -rf types/",
42
42
  "clean:modules": "rm -rf node_modules",
43
43
  "precommit": "npm test",
44
44
  "prepush": "npm test",
package/src/AppCore.js CHANGED
@@ -17,7 +17,10 @@ import AppResult from './AppResult.js'
17
17
  * @property {Function} t - Translation function
18
18
  */
19
19
  export default class AppCore {
20
- static DB = DB
20
+ static get DB() {
21
+ return DB
22
+ }
23
+
21
24
  static UI = {
22
25
  title: 'Application Core',
23
26
  description: 'Base application logic and state container',
package/src/index.js CHANGED
@@ -1,12 +1,8 @@
1
- import { ExecutableCommand } from '@nan0web/protocol'
2
- import { ModelError } from '@nan0web/types'
3
- import AppCore from './AppCore.js'
4
- import AppResult from './AppResult.js'
5
- import { Model } from './Model.js'
6
- import { ProjectModel } from './ProjectModel.js'
1
+ export { ExecutableCommand } from '@nan0web/protocol'
2
+ export { ModelError } from '@nan0web/types'
3
+ export { Model } from './Model.js'
4
+ export { ProjectModel } from './ProjectModel.js'
5
+ export { default as AppResult } from './AppResult.js'
6
+ export { default as AppCore, default } from './AppCore.js'
7
7
 
8
8
  /** @typedef {import("./AppCore.js").Language} Language */
9
-
10
- export { AppCore, AppResult, ExecutableCommand, Model, ProjectModel, ModelError }
11
-
12
- export default AppCore
@@ -11,7 +11,7 @@
11
11
  * @property {Function} t - Translation function
12
12
  */
13
13
  export default class AppCore {
14
- static DB: typeof DB;
14
+ static get DB(): typeof DB;
15
15
  static UI: {
16
16
  title: string;
17
17
  description: string;
package/types/index.d.ts CHANGED
@@ -1,9 +1,7 @@
1
- export default AppCore;
1
+ export { ExecutableCommand } from "@nan0web/protocol";
2
+ export { ModelError } from "@nan0web/types";
3
+ export { Model } from "./Model.js";
4
+ export { ProjectModel } from "./ProjectModel.js";
5
+ export { default as AppResult } from "./AppResult.js";
2
6
  export type Language = import("./AppCore.js").Language;
3
- import AppCore from './AppCore.js';
4
- import AppResult from './AppResult.js';
5
- import { ExecutableCommand } from '@nan0web/protocol';
6
- import { Model } from './Model.js';
7
- import { ProjectModel } from './ProjectModel.js';
8
- import { ModelError } from '@nan0web/types';
9
- export { AppCore, AppResult, ExecutableCommand, Model, ProjectModel, ModelError };
7
+ export { default as AppCore, default } from "./AppCore.js";