@easy-cms/core 0.9.0 → 0.10.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.
- package/README.md +1 -1
- package/dist/index.d.ts +5 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @easy-cms/core
|
|
2
2
|
|
|
3
|
-
Core of [Easy CMS](https://github.com/maritonx/easy-
|
|
3
|
+
Core of [Easy CMS](https://github.com/maritonx/easy-cms) — an embedded, code-first headless CMS for Nuxt and Next.js.
|
|
4
4
|
|
|
5
5
|
> ⚠️ Pre-release. Not ready for production.
|
|
6
6
|
|
package/dist/index.d.ts
CHANGED
|
@@ -164,6 +164,11 @@ interface Database {
|
|
|
164
164
|
/** Applies pending migrations in order. Returns the names applied. */
|
|
165
165
|
migrate(): Promise<string[]>;
|
|
166
166
|
migrationStatus(): Promise<MigrationInfo[]>;
|
|
167
|
+
/**
|
|
168
|
+
* Copies the database to `file` (an absolute path) while it is in use, when the database can
|
|
169
|
+
* do that itself (SQLite). Others (Postgres) leave it out; use their own tools.
|
|
170
|
+
*/
|
|
171
|
+
readonly backup?: ((file: string) => Promise<void>) | undefined;
|
|
167
172
|
destroy(): Promise<void>;
|
|
168
173
|
}
|
|
169
174
|
/** What `sqlite()` / `postgres()` return and what `config.db` holds. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easy-cms/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Embedded, code-first headless CMS for Nuxt and Next.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
33
|
-
"url": "git+https://github.com/maritonx/easy-
|
|
33
|
+
"url": "git+https://github.com/maritonx/easy-cms.git",
|
|
34
34
|
"directory": "packages/core"
|
|
35
35
|
},
|
|
36
36
|
"keywords": [
|