@moxn/kb-migrate 0.4.9 → 0.4.10

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.
@@ -168,11 +168,11 @@ async function updateExistingNotionDatabase(ctx, notionDatabaseId, resolved) {
168
168
  let hasMore = true;
169
169
  let startCursor;
170
170
  while (hasMore) {
171
- const queryResult = await ctx.notionClient.databases.query({
172
- database_id: notionDatabaseId,
173
- start_cursor: startCursor,
174
- page_size: 100,
175
- });
171
+ const queryResult = (await ctx.notionClient.request({
172
+ method: 'post',
173
+ path: `databases/${notionDatabaseId}/query`,
174
+ body: { start_cursor: startCursor, page_size: 100 },
175
+ }));
176
176
  for (const page of queryResult.results) {
177
177
  await sleep(RATE_LIMIT_MS);
178
178
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moxn/kb-migrate",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "Migration tool for importing documents into Moxn Knowledge Base from local files, Notion, Google Docs, and more",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -82,7 +82,7 @@
82
82
  "prepublishOnly": "npm run build"
83
83
  },
84
84
  "dependencies": {
85
- "@notionhq/client": "^2.3.0",
85
+ "@notionhq/client": "^5.9.0",
86
86
  "@tryfabric/martian": "^1.2.4",
87
87
  "commander": "^12.0.0",
88
88
  "glob": "^10.0.0",