@studiocms/devapps 0.1.0-beta.27 → 0.1.0-beta.28
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.
|
@@ -24,6 +24,7 @@ declare const WordPressAPIConverters_base: Effect.Service.Class<WordPressAPIConv
|
|
|
24
24
|
showAuthor?: boolean | null | undefined;
|
|
25
25
|
showContributors?: boolean | null | undefined;
|
|
26
26
|
parentFolder?: string | null | undefined;
|
|
27
|
+
augments?: unknown;
|
|
27
28
|
}, boolean | Error | import("effect/ParseResult").ParseError, ImportEndpointConfig | RawPageData>;
|
|
28
29
|
convertToPageContent: Effect.Effect<CombinedInsertContent, boolean | Error | import("effect/ParseResult").ParseError, RawPageData | FullPageData>;
|
|
29
30
|
convertToPostData: Effect.Effect<{
|
|
@@ -45,6 +46,7 @@ declare const WordPressAPIConverters_base: Effect.Service.Class<WordPressAPIConv
|
|
|
45
46
|
showAuthor?: boolean | null | undefined;
|
|
46
47
|
showContributors?: boolean | null | undefined;
|
|
47
48
|
parentFolder?: string | null | undefined;
|
|
49
|
+
augments?: unknown;
|
|
48
50
|
}, boolean | import("astro/errors").AstroError | import("effect/Cause").UnknownException | import("effect/ParseResult").ParseError | import("@withstudiocms/effect/drizzle").LibSQLClientError, ImportEndpointConfig | RawPageData | UseBlogPkgConfig>;
|
|
49
51
|
convertToPostContent: Effect.Effect<CombinedInsertContent, boolean | Error | import("effect/ParseResult").ParseError, RawPageData | FullPageData>;
|
|
50
52
|
}, never, WordPressAPIUtils>;
|
|
@@ -99,7 +99,7 @@ ${JSON.stringify(data, null, 2)}
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
results.push(...data);
|
|
102
|
-
const totalPages = Number.parseInt(res.headers.get("X-WP-TotalPages") || "1");
|
|
102
|
+
const totalPages = Number.parseInt(res.headers.get("X-WP-TotalPages") || "1", 10);
|
|
103
103
|
yield* Console.log("Fetched page", page, "of", totalPages);
|
|
104
104
|
if (page < totalPages) {
|
|
105
105
|
yield* Console.log("Fetching next page...");
|
|
@@ -155,7 +155,7 @@ ${JSON.stringify(data, null, 2)}
|
|
|
155
155
|
}
|
|
156
156
|
const contentLength = response.headers.get("content-length");
|
|
157
157
|
const maxSize = 100 * 1024 * 1024;
|
|
158
|
-
if (contentLength && Number.parseInt(contentLength) > maxSize) {
|
|
158
|
+
if (contentLength && Number.parseInt(contentLength, 10) > maxSize) {
|
|
159
159
|
yield* Console.error("File too large:", contentLength);
|
|
160
160
|
return false;
|
|
161
161
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studiocms/devapps",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.28",
|
|
4
4
|
"description": "A dedicated CMS for Astro DB. Built from the ground up by the Astro community.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "withstudiocms",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"type": "module",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"astro-integration-kit": "^0.19.
|
|
57
|
+
"astro-integration-kit": "^0.19.1",
|
|
58
58
|
"cheerio": "^1.1.2",
|
|
59
59
|
"turndown": "^7.2.1",
|
|
60
60
|
"sanitize-html": "^2.17.0"
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/turndown": "^5.0.5",
|
|
64
64
|
"@types/sanitize-html": "^2.16.0",
|
|
65
|
-
"typescript": "^5.9.
|
|
65
|
+
"typescript": "^5.9.3"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@astrojs/db": ">=0.17.2",
|
|
69
69
|
"astro": "^5.12.9",
|
|
70
|
-
"effect": "^3.
|
|
70
|
+
"effect": "^3.18.4",
|
|
71
71
|
"vite": "^6.3.4",
|
|
72
|
-
"studiocms": "0.1.0-beta.
|
|
72
|
+
"studiocms": "0.1.0-beta.28"
|
|
73
73
|
},
|
|
74
74
|
"peerDependenciesMeta": {
|
|
75
75
|
"studiocms": {
|