@valbuild/next 0.41.0 → 0.42.0
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,7 @@
|
|
|
1
|
-
import { ValConfig, type InitVal } from "@valbuild/core";
|
|
1
|
+
import { type ValConfig, type InitVal, type ValConstructor } from "@valbuild/core";
|
|
2
2
|
import { ValEncodedString } from "@valbuild/react/stega";
|
|
3
3
|
export declare const initVal: (config?: ValConfig) => InitVal & {
|
|
4
|
-
val: {
|
|
5
|
-
content: typeof import("@valbuild/core/src/module").content;
|
|
6
|
-
getPath: typeof import("@valbuild/core/src/val").getValPath;
|
|
7
|
-
file: typeof import("@valbuild/core/src/source/file").file;
|
|
8
|
-
link: typeof import("@valbuild/core/src/source/link").link;
|
|
9
|
-
richtext: typeof import("@valbuild/core/src/source/richtext").richtext;
|
|
10
|
-
} & {
|
|
4
|
+
val: ValConstructor & {
|
|
11
5
|
raw: (encodedString: ValEncodedString) => string;
|
|
12
6
|
};
|
|
13
7
|
};
|
|
@@ -5,7 +5,9 @@ declare const initValNextAppRouter: (config: ValConfig, nextConfig: ValServerNex
|
|
|
5
5
|
type ValServerNextConfig = {
|
|
6
6
|
draftMode: typeof draftMode;
|
|
7
7
|
};
|
|
8
|
-
export declare function initValServer(config: ValConfig
|
|
8
|
+
export declare function initValServer(config: ValConfig & {
|
|
9
|
+
disableCache?: boolean;
|
|
10
|
+
}, nextConfig: ValServerNextConfig): {
|
|
9
11
|
valNextAppRouter: ReturnType<typeof initValNextAppRouter>;
|
|
10
12
|
};
|
|
11
13
|
export {};
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"next",
|
|
9
9
|
"react"
|
|
10
10
|
],
|
|
11
|
-
"version": "0.
|
|
11
|
+
"version": "0.42.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"typecheck": "tsc --noEmit",
|
|
14
14
|
"test": "jest"
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"exports": true
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@valbuild/core": "~0.
|
|
49
|
-
"@valbuild/react": "~0.
|
|
50
|
-
"@valbuild/server": "~0.
|
|
48
|
+
"@valbuild/core": "~0.42.0",
|
|
49
|
+
"@valbuild/react": "~0.42.0",
|
|
50
|
+
"@valbuild/server": "~0.42.0",
|
|
51
51
|
"client-only": "^0.0.1",
|
|
52
52
|
"server-only": "^0.0.1"
|
|
53
53
|
},
|
|
@@ -90,8 +90,12 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, isEn
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
} else {
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
if (res.error.statusCode === 401) {
|
|
94
|
+
console.warn("Val: authentication error: ", res.error.message);
|
|
95
|
+
} else {
|
|
96
|
+
console.error("Val: could not fetch modules", res.error);
|
|
97
|
+
throw Error(JSON.stringify(res.error, null, 2));
|
|
98
|
+
}
|
|
95
99
|
}
|
|
96
100
|
})["catch"](function (err) {
|
|
97
101
|
console.error("Val: failed while fetching modules", err);
|
|
@@ -90,8 +90,12 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, isEn
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
} else {
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
if (res.error.statusCode === 401) {
|
|
94
|
+
console.warn("Val: authentication error: ", res.error.message);
|
|
95
|
+
} else {
|
|
96
|
+
console.error("Val: could not fetch modules", res.error);
|
|
97
|
+
throw Error(JSON.stringify(res.error, null, 2));
|
|
98
|
+
}
|
|
95
99
|
}
|
|
96
100
|
})["catch"](function (err) {
|
|
97
101
|
console.error("Val: failed while fetching modules", err);
|
|
@@ -86,8 +86,12 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, isEn
|
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
} else {
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
if (res.error.statusCode === 401) {
|
|
90
|
+
console.warn("Val: authentication error: ", res.error.message);
|
|
91
|
+
} else {
|
|
92
|
+
console.error("Val: could not fetch modules", res.error);
|
|
93
|
+
throw Error(JSON.stringify(res.error, null, 2));
|
|
94
|
+
}
|
|
91
95
|
}
|
|
92
96
|
})["catch"](function (err) {
|
|
93
97
|
console.error("Val: failed while fetching modules", err);
|