New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

notion-utils

Package Overview
Dependencies
Maintainers
2
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notion-utils - npm Package Compare versions

Comparing version 4.8.6 to 4.10.0

2

build/cjs/get-all-pages-in-space.js

@@ -70,3 +70,3 @@ "use strict";

}
pageId = parse_page_id_1.parsePageId(pageId);
pageId = (0, parse_page_id_1.parsePageId)(pageId);
if (pageId && !pages[pageId] && !pendingPageIds.has(pageId)) {

@@ -73,0 +73,0 @@ pendingPageIds.add(pageId);

@@ -8,3 +8,3 @@ "use strict";

if ((_a = block.properties) === null || _a === void 0 ? void 0 : _a.title) {
return get_text_content_1.getTextContent(block.properties.title);
return (0, get_text_content_1.getTextContent)(block.properties.title);
}

@@ -15,3 +15,3 @@ if (block.type === 'collection_view_page' ||

if (collection) {
return get_text_content_1.getTextContent(collection.name);
return (0, get_text_content_1.getTextContent)(collection.name);
}

@@ -18,0 +18,0 @@ }

@@ -14,6 +14,6 @@ "use strict";

return null;
var id = uuid_to_id_1.uuidToId(pageId);
var id = (0, uuid_to_id_1.uuidToId)(pageId);
var block = (_b = recordMap.block[pageId]) === null || _b === void 0 ? void 0 : _b.value;
if (block) {
var title = exports.normalizeTitle(get_block_title_1.getBlockTitle(block, recordMap));
var title = (0, exports.normalizeTitle)((0, get_block_title_1.getBlockTitle)(block, recordMap));
if (title) {

@@ -20,0 +20,0 @@ if (uuid) {

@@ -15,3 +15,3 @@ "use strict";

var v = prop_1[_i];
var value = exports.getDateValue(v);
var value = (0, exports.getDateValue)(v);
if (value) {

@@ -18,0 +18,0 @@ return value;

@@ -20,3 +20,3 @@ "use strict";

if (propertyId) {
return get_text_content_1.getTextContent(block.properties[propertyId]);
return (0, get_text_content_1.getTextContent)(block.properties[propertyId]);
}

@@ -23,0 +23,0 @@ }

@@ -28,3 +28,3 @@ "use strict";

type: type,
text: get_text_content_1.getTextContent((_b = block.properties) === null || _b === void 0 ? void 0 : _b.title),
text: (0, get_text_content_1.getTextContent)((_b = block.properties) === null || _b === void 0 ? void 0 : _b.title),
indentLevel: indentLevels[type]

@@ -31,0 +31,0 @@ };

@@ -9,3 +9,3 @@ "use strict";

if (pageBlock) {
return get_block_title_1.getBlockTitle(pageBlock, recordMap);
return (0, get_block_title_1.getBlockTitle)(pageBlock, recordMap);
}

@@ -12,0 +12,0 @@ return null;

@@ -21,3 +21,3 @@ "use strict";

if (match) {
return uuid ? id_to_uuid_1.idToUuid(match[1]) : match[1];
return uuid ? (0, id_to_uuid_1.idToUuid)(match[1]) : match[1];
}

@@ -24,0 +24,0 @@ var match2 = id.match(pageId2Re);

@@ -37,6 +37,6 @@ "use strict";

];
ava_1["default"]('utils.parsePageId non-uuid success', function (t) {
(0, ava_1["default"])('utils.parsePageId non-uuid success', function (t) {
for (var _i = 0, pageIdFixturesSuccess_1 = pageIdFixturesSuccess; _i < pageIdFixturesSuccess_1.length; _i++) {
var id = pageIdFixturesSuccess_1[_i];
var pageId = parse_page_id_1.parsePageId(id, { uuid: false });
var pageId = (0, parse_page_id_1.parsePageId)(id, { uuid: false });
t.truthy(pageId);

@@ -47,6 +47,6 @@ t.falsy(pageId.includes('-'));

});
ava_1["default"]('utils.parsePageId uuid success', function (t) {
(0, ava_1["default"])('utils.parsePageId uuid success', function (t) {
for (var _i = 0, pageIdFixturesSuccess_2 = pageIdFixturesSuccess; _i < pageIdFixturesSuccess_2.length; _i++) {
var id = pageIdFixturesSuccess_2[_i];
var pageId = parse_page_id_1.parsePageId(id, { uuid: true });
var pageId = (0, parse_page_id_1.parsePageId)(id, { uuid: true });
t.truthy(pageId);

@@ -57,6 +57,6 @@ t.truthy(pageId.includes('-'));

});
ava_1["default"]('utils.parsePageId failure', function (t) {
(0, ava_1["default"])('utils.parsePageId failure', function (t) {
for (var _i = 0, pageIdFixturesFailure_1 = pageIdFixturesFailure; _i < pageIdFixturesFailure_1.length; _i++) {
var id = pageIdFixturesFailure_1[_i];
var pageId = parse_page_id_1.parsePageId(id);
var pageId = (0, parse_page_id_1.parsePageId)(id);
t.falsy(pageId);

@@ -63,0 +63,0 @@ }

{
"name": "notion-utils",
"version": "4.8.6",
"version": "4.10.0",
"description": "Useful utilities for working with Notion data. Isomorphic.",

@@ -19,9 +19,9 @@ "repository": "NotionX/react-notion-x",

"dependencies": {
"notion-types": "^4.8.2",
"p-queue": "^6.6.1"
"notion-types": "^4.10.0",
"p-queue": "6"
},
"devDependencies": {
"ava": "^3.13.0"
"ava": "^3.15.0"
},
"gitHead": "e0b8f112d99b086cd72858c2d7d3882029c6ead9"
"gitHead": "6356a85b5fd80266d4fb3bf9c7218644252b3c32"
}
import { idToUuid } from './id-to-uuid'
const pageIdRe = /\b([a-f0-9]{32})\b/
const pageId2Re = /\b([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})\b/
const pageId2Re =
/\b([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})\b/

@@ -6,0 +7,0 @@ /**

@@ -7,3 +7,6 @@ {

"outDir": "build/esm",
"tsBuildInfoFile": "build/esm/index.tsbuildinfo"
"tsBuildInfoFile": "build/esm/index.tsbuildinfo",
"paths": {
"notion-types": ["../notion-types"]
}
},

@@ -10,0 +13,0 @@ "include": ["src"],

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc