divhunt 2.0.4 → 2.0.5

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.
@@ -0,0 +1,44 @@
1
+ import assets from '../addon.js';
2
+
3
+ import { dirname, resolve } from 'path';
4
+ import { fileURLToPath } from 'url';
5
+
6
+ const root = resolve(dirname(fileURLToPath(import.meta.url)), '..', '..', '..', '..', '..');
7
+
8
+ const map =
9
+ {
10
+ framework: { js: 'lib', ignore: ['lib/load.js'] },
11
+ commands: { js: 'addons/core/commands/front', css: 'addons/core/commands/front' },
12
+ database: { js: 'addons/core/database/front' },
13
+ actions: { js: 'addons/modules/actions/front' },
14
+ bugs: { js: 'addons/modules/bugs/front' },
15
+ events: { js: 'addons/modules/events/front' },
16
+ schedules: { js: 'addons/modules/schedules/front' },
17
+ shortcuts: { js: 'addons/modules/shortcuts/front' },
18
+ sources: { js: 'addons/modules/sources/front' },
19
+ directives: { js: 'addons/render/directives/front' },
20
+ transforms: { js: 'addons/render/transforms/front' },
21
+ pages: { js: 'addons/render/pages/front', css: 'addons/render/pages/front' },
22
+ elements: { js: 'addons/render/elements/front', css: 'addons/render/elements/front' },
23
+ float: { js: 'addons/float', css: 'addons/float' }
24
+ };
25
+
26
+ assets.Fn('import', function(modules)
27
+ {
28
+ for (let i = 0; i < modules.length; i++)
29
+ {
30
+ const config = map[modules[i]];
31
+
32
+ if (!config) continue;
33
+
34
+ if (config.js)
35
+ {
36
+ assets.Item({ type: 'js', order: i, path: resolve(root, config.js), ignore: config.ignore || [] });
37
+ }
38
+
39
+ if (config.css)
40
+ {
41
+ assets.Item({ type: 'css', order: i, path: resolve(root, config.css) });
42
+ }
43
+ }
44
+ });
@@ -10,6 +10,8 @@ import './functions/scan/directories.js';
10
10
  import './functions/utils/read.js';
11
11
  import './functions/utils/transform.js';
12
12
 
13
+ import './functions/import.js';
14
+
13
15
  /* Items */
14
16
  import './items/commands/css.js';
15
17
  import './items/commands/js.js';
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "divhunt",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Full-stack isomorphic JavaScript framework built from scratch. One addon abstraction powers databases, servers, commands, pages, directives, queues, and more.",
5
5
  "type": "module",
6
- "main": "lib/load.back.js",
6
+ "main": "lib/load.js",
7
7
  "browser": "lib/browser.js",
8
8
  "exports": {
9
- ".": "./lib/load.back.js",
9
+ ".": "./lib/load.js",
10
10
  "./browser": "./lib/browser.js",
11
11
  "./database": "./addons/core/database/back/load.js",
12
12
  "./servers/grpc": "./addons/core/servers/back/grpc/load.js",
package/lib/LICENSE.txt DELETED
@@ -1,40 +0,0 @@
1
- Copyright © 2025 Divhunt GmbH
2
-
3
- This License governs use of the Divhunt framework (the "Software"). By accessing or using the Software, you agree to be bound by the terms of this License.
4
-
5
- 1. GRANT OF LICENSE
6
- You are granted a limited, non-exclusive, non-transferable, non-sublicensable license to use the Software solely for:
7
- - personal projects;
8
- - internal business purposes;
9
- - client work, provided the client is not reselling or redistributing the Software.
10
-
11
- 2. ATTRIBUTION AND BRANDING
12
- a. All uses of the Software must retain visible attribution to “Divhunt”.
13
- b. You must not remove, obscure, alter, or suppress any branding, notices, or credits related to Divhunt.
14
- c. Any public project using the Software must clearly state that it uses the “Divhunt Framework”.
15
-
16
- 3. PROHIBITED USES
17
- The following are strictly prohibited:
18
- a. Rebranding, renaming, or representing the Software as your own work;
19
- b. Creating derivative frameworks or similar software tools based on the Software with the intent of distribution;
20
- c. Redistributing, sublicensing, or selling the Software or any modified version thereof;
21
- d. Using the Software in any commercial product, service, or offering without explicit, written permission from Divhunt GmbH.
22
-
23
- 4. MODIFICATIONS
24
- You may modify the Software for personal or internal use only. Modified versions may not be:
25
- - redistributed;
26
- - rebranded or marketed as original work;
27
- - offered as a service or product.
28
-
29
- 5. ENFORCEMENT AND TERMINATION
30
- Any violation of this License will result in the immediate termination of all rights granted herein. Divhunt GmbH reserves the right to pursue legal remedies including but not limited to damages, injunctions, and recovery of profits obtained through unauthorized use.
31
-
32
- 6. NO WARRANTY
33
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. IN NO EVENT SHALL JOVANAT GMBH BE LIABLE FOR ANY DAMAGES ARISING FROM THE USE OR INABILITY TO USE THE SOFTWARE.
34
-
35
- 7. GOVERNING LAW
36
- This License shall be governed by and construed in accordance with the laws of Switzerland. All disputes shall be subject to the exclusive jurisdiction of the courts of Zug, Switzerland.
37
-
38
- ---
39
-
40
- For commercial licensing or other questions, please contact: **dejan@divhunt.com**
File without changes