notion-client
Advanced tools
Comparing version 4.9.7 to 4.9.9
@@ -179,3 +179,3 @@ "use strict"; | ||
allFileInstances = contentBlockIds.flatMap(function (blockId) { | ||
var _a, _b, _c; | ||
var _a, _b, _c, _d; | ||
var block = recordMap.block[blockId].value; | ||
@@ -185,5 +185,6 @@ if (block && | ||
block.type === 'audio' || | ||
(block.type === 'image' && ((_a = block.file_ids) === null || _a === void 0 ? void 0 : _a.length)) || | ||
block.type === 'video' || | ||
block.type === 'file')) { | ||
var source = (_c = (_b = (_a = block.properties) === null || _a === void 0 ? void 0 : _a.source) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c[0]; | ||
var source = (_d = (_c = (_b = block.properties) === null || _b === void 0 ? void 0 : _b.source) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d[0]; | ||
// console.log(block, source) | ||
@@ -190,0 +191,0 @@ if (source) { |
@@ -173,3 +173,3 @@ var __assign = (this && this.__assign) || function () { | ||
allFileInstances = contentBlockIds.flatMap(function (blockId) { | ||
var _a, _b, _c; | ||
var _a, _b, _c, _d; | ||
var block = recordMap.block[blockId].value; | ||
@@ -179,5 +179,6 @@ if (block && | ||
block.type === 'audio' || | ||
(block.type === 'image' && ((_a = block.file_ids) === null || _a === void 0 ? void 0 : _a.length)) || | ||
block.type === 'video' || | ||
block.type === 'file')) { | ||
var source = (_c = (_b = (_a = block.properties) === null || _a === void 0 ? void 0 : _a.source) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c[0]; | ||
var source = (_d = (_c = (_b = block.properties) === null || _b === void 0 ? void 0 : _b.source) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d[0]; | ||
// console.log(block, source) | ||
@@ -184,0 +185,0 @@ if (source) { |
{ | ||
"name": "notion-client", | ||
"version": "4.9.7", | ||
"version": "4.9.9", | ||
"description": "Robust TypeScript client for the unofficial Notion API.", | ||
@@ -28,3 +28,3 @@ "repository": "NotionX/react-notion-x", | ||
}, | ||
"gitHead": "6532aecb13c597ae8a00eec1d78747a8836fe1ee" | ||
"gitHead": "8b611e82add7650bac9381c0d250bc0789757f08" | ||
} |
@@ -189,2 +189,3 @@ import got, { OptionsOfJSONResponseBody } from 'got' | ||
block.type === 'audio' || | ||
(block.type === 'image' && block.file_ids?.length) || | ||
block.type === 'video' || | ||
@@ -191,0 +192,0 @@ block.type === 'file') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
988798
12166