rotion 1.14.1 → 1.15.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/exporter/database.js +63 -59
- package/dist/exporter/database.js.map +1 -1
- package/dist/exporter/files.d.ts +1 -1
- package/dist/exporter/files.js +37 -14
- package/dist/exporter/files.js.map +1 -1
- package/dist/exporter/mutex.d.ts +10 -0
- package/dist/exporter/mutex.js +110 -0
- package/dist/exporter/mutex.js.map +1 -0
- package/dist/exporter/page.js +51 -47
- package/dist/exporter/page.js.map +1 -1
- package/dist/ui/cjs/index.css +1 -1
- package/dist/ui/cjs/index.js +1 -1
- package/dist/ui/cjs/index.js.map +1 -1
- package/dist/ui/cjs/types/exporter/files.d.ts +1 -1
- package/dist/ui/cjs/types/exporter/mutex.d.ts +10 -0
- package/dist/ui/esm/index.css +1 -1
- package/dist/ui/esm/index.js +1 -1
- package/dist/ui/esm/index.js.map +1 -1
- package/dist/ui/esm/types/exporter/files.d.ts +1 -1
- package/dist/ui/esm/types/exporter/mutex.d.ts +10 -0
- package/dist/ui/style-without-dark.css +1 -1
- package/dist/ui/umd/index.css +1 -1
- package/dist/ui/umd/index.js +1 -1
- package/dist/ui/umd/index.js.map +1 -1
- package/dist/ui/umd/types/exporter/files.d.ts +1 -1
- package/dist/ui/umd/types/exporter/mutex.d.ts +10 -0
- package/package.json +5 -5
|
@@ -13,7 +13,7 @@ export declare function saveFile(fileUrl: string, prefix: string): Promise<{
|
|
|
13
13
|
size: number;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const saveImage: (imageUrl: string, prefix: string) => Promise<ImagePathWithSize>;
|
|
16
|
-
export declare const findHtmlByRegexp: (regexps: RegExp[], html: string) => string | null;
|
|
16
|
+
export declare const findHtmlByRegexp: (regexps: RegExp[], html: string, removeJS?: boolean) => string | null;
|
|
17
17
|
export declare const titleRegexps: RegExp[];
|
|
18
18
|
export declare const descRegexps: RegExp[];
|
|
19
19
|
export declare const imageRegexps: RegExp[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface LockOptions {
|
|
2
|
+
timeout?: number;
|
|
3
|
+
retryInterval?: number;
|
|
4
|
+
maxAge?: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Performs exclusive control using file-based mutex
|
|
8
|
+
*/
|
|
9
|
+
export declare function withFileLock<T>(key: string, operation: () => Promise<T>, options?: LockOptions): Promise<T>;
|
|
10
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rotion",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "linyows/rotion",
|
|
6
6
|
"description": "This is react components that uses the notion API to display the notion's database and page.",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"@types/katex": "^0.16.7",
|
|
90
90
|
"@types/node": "^22.13.1",
|
|
91
91
|
"@types/prismjs": "^1.26.5",
|
|
92
|
-
"@types/react": "^19.
|
|
93
|
-
"@types/react-dom": "^19.
|
|
92
|
+
"@types/react": "^19.2.0",
|
|
93
|
+
"@types/react-dom": "^19.2.0",
|
|
94
94
|
"@types/replace-ext": "^2.0.2",
|
|
95
95
|
"@typescript-eslint/eslint-plugin": "^8.23.0",
|
|
96
96
|
"@typescript-eslint/parser": "^8.23.0",
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"eslint-plugin-react": "^7.37.4",
|
|
102
102
|
"eslint-plugin-storybook": "^9.0.4",
|
|
103
103
|
"globals": "^15.14.0",
|
|
104
|
-
"react": "^19.
|
|
105
|
-
"react-dom": "^19.
|
|
104
|
+
"react": "^19.2.0",
|
|
105
|
+
"react-dom": "^19.2.0",
|
|
106
106
|
"rollup": "^4.34.6",
|
|
107
107
|
"rollup-plugin-delete": "^2.1.0",
|
|
108
108
|
"rollup-plugin-dts": "^6.1.1",
|