get-notion-contents
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -59,2 +59,3 @@ export declare type Option = { | ||
}; | ||
export declare type Type = 'NotionContent' | 'NotionBoard' | 'NotionList' | 'NotionTable' | 'NotionGallery'; | ||
export {}; |
@@ -123,3 +123,3 @@ "use strict"; | ||
{ | ||
const type = (_p = (_o = (_m = view$.getAttribute('class')) === null || _m === void 0 ? void 0 : _m.match(/^(?:notion-)(.+)(-view)$/)) === null || _o === void 0 ? void 0 : _o[1], (_p !== null && _p !== void 0 ? _p : 'Resource')); | ||
const type = (_p = (_o = (_m = view$.getAttribute('class')) === null || _m === void 0 ? void 0 : _m.match(/^(?:notion-)(.+)(-view)$/)) === null || _o === void 0 ? void 0 : _o[1], (_p !== null && _p !== void 0 ? _p : 'Content')); | ||
const wrapper$ = view$.parentElement.parentElement; | ||
@@ -134,3 +134,3 @@ const cover$ = (_q = wrapper$.querySelector('img')) === null || _q === void 0 ? void 0 : _q.parentElement; | ||
return { | ||
type: 'Notion' + type.slice(0, 1).toUpperCase() + type.slice(1), | ||
type: ('Notion' + type.slice(0, 1).toUpperCase() + type.slice(1)), | ||
title, | ||
@@ -137,0 +137,0 @@ titleString, |
{ | ||
"name": "get-notion-contents", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Get contents from notion", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20205
386