@hybridly/core 0.5.7 → 0.6.1

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/dist/index.cjs CHANGED
@@ -874,7 +874,7 @@ async function performHybridNavigation(options) {
874
874
  await runHooks("abort", options.hooks, context);
875
875
  },
876
876
  NotAHybridResponseError: async () => {
877
- utils.debug.router("The request was not hybridly.");
877
+ utils.debug.router("The response was not hybrid.");
878
878
  console.error(error);
879
879
  await runHooks("invalid", options.hooks, error, context);
880
880
  if (context.responseErrorModals) {
package/dist/index.d.cts CHANGED
@@ -461,8 +461,16 @@ declare function can<Authorizations extends Record<string, boolean>, Data extend
461
461
  declare function route<T extends RouteName>(name: T, parameters?: RouteParameters<T>, absolute?: boolean): string;
462
462
 
463
463
  interface DynamicConfiguration {
464
+ versions: {
465
+ composer: string;
466
+ npm: string;
467
+ latest: string;
468
+ is_latest: boolean;
469
+ };
464
470
  architecture: {
465
- root: string;
471
+ root_directory: string;
472
+ components_directory: string;
473
+ application_main_path: string;
466
474
  };
467
475
  components: {
468
476
  eager?: boolean;
package/dist/index.d.mts CHANGED
@@ -461,8 +461,16 @@ declare function can<Authorizations extends Record<string, boolean>, Data extend
461
461
  declare function route<T extends RouteName>(name: T, parameters?: RouteParameters<T>, absolute?: boolean): string;
462
462
 
463
463
  interface DynamicConfiguration {
464
+ versions: {
465
+ composer: string;
466
+ npm: string;
467
+ latest: string;
468
+ is_latest: boolean;
469
+ };
464
470
  architecture: {
465
- root: string;
471
+ root_directory: string;
472
+ components_directory: string;
473
+ application_main_path: string;
466
474
  };
467
475
  components: {
468
476
  eager?: boolean;
package/dist/index.d.ts CHANGED
@@ -461,8 +461,16 @@ declare function can<Authorizations extends Record<string, boolean>, Data extend
461
461
  declare function route<T extends RouteName>(name: T, parameters?: RouteParameters<T>, absolute?: boolean): string;
462
462
 
463
463
  interface DynamicConfiguration {
464
+ versions: {
465
+ composer: string;
466
+ npm: string;
467
+ latest: string;
468
+ is_latest: boolean;
469
+ };
464
470
  architecture: {
465
- root: string;
471
+ root_directory: string;
472
+ components_directory: string;
473
+ application_main_path: string;
466
474
  };
467
475
  components: {
468
476
  eager?: boolean;
package/dist/index.mjs CHANGED
@@ -867,7 +867,7 @@ async function performHybridNavigation(options) {
867
867
  await runHooks("abort", options.hooks, context);
868
868
  },
869
869
  NotAHybridResponseError: async () => {
870
- debug.router("The request was not hybridly.");
870
+ debug.router("The response was not hybrid.");
871
871
  console.error(error);
872
872
  await runHooks("invalid", options.hooks, error, context);
873
873
  if (context.responseErrorModals) {
package/package.json CHANGED
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "name": "@hybridly/core",
3
- "version": "0.5.7",
3
+ "version": "0.6.1",
4
4
  "description": "Core functionality of Hybridly",
5
5
  "keywords": [
6
6
  "hybridly",
7
7
  "inertiajs"
8
8
  ],
9
- "homepage": "https://github.com/hybridly/hybridly#readme",
10
- "bugs": {
11
- "url": "https://github.com/hybridly/hybridly/issues"
12
- },
13
9
  "license": "MIT",
14
10
  "repository": {
15
11
  "type": "git",
@@ -17,6 +13,11 @@
17
13
  },
18
14
  "funding": "https://github.com/sponsors/innocenzi",
19
15
  "author": "Enzo Innocenzi <enzo@innocenzi.dev>",
16
+ "type": "module",
17
+ "homepage": "https://github.com/hybridly/hybridly#readme",
18
+ "bugs": {
19
+ "url": "https://github.com/hybridly/hybridly/issues"
20
+ },
20
21
  "sideEffects": false,
21
22
  "files": [
22
23
  "dist",
@@ -33,12 +34,12 @@
33
34
  "module": "dist/index.mjs",
34
35
  "types": "dist/index.d.ts",
35
36
  "peerDependencies": {
36
- "axios": "^1"
37
+ "axios": "^1.6.2"
37
38
  },
38
39
  "dependencies": {
39
40
  "qs": "^6.11.2",
40
- "superjson": "^1.13.3",
41
- "@hybridly/utils": "0.5.7"
41
+ "superjson": "^2.2.1",
42
+ "@hybridly/utils": "0.6.1"
42
43
  },
43
44
  "devDependencies": {
44
45
  "defu": "^6.1.3"