Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

notionbox-parser

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notionbox-parser - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

11

dist/examples/parseAndSendToNotion.js

@@ -24,2 +24,11 @@ "use strict";

},
Author: {
type: 'rich_text',
rich_text: [
{
type: 'text',
text: { content: 'test' },
},
],
},
},

@@ -953,2 +962,2 @@ children: blocks,

})();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2VBbmRTZW5kVG9Ob3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZXhhbXBsZXMvcGFyc2VBbmRTZW5kVG9Ob3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBMEM7QUFFMUMsMENBQXdEO0FBRXhELDhEQUE4RDtBQUM5RCxPQUFPLENBQUMsUUFBUSxDQUFDLENBQUMsTUFBTSxFQUFFLENBQUM7QUFFM0IsTUFBTSxNQUFNLEdBQUcsSUFBSSxlQUFNLENBQUMsRUFBRSxJQUFJLEVBQUUsT0FBTyxDQUFDLEdBQUcsQ0FBQyxtQkFBbUIsRUFBRSxDQUFDLENBQUM7QUFFckUsQ0FBQyxLQUFLLElBQUksRUFBRTtJQUNWLE1BQU0sTUFBTSxHQUFHLGdDQUF1QixDQUFDLGlCQUFpQixFQUFFLENBQUMsQ0FBQztJQUM1RCxNQUFNLFFBQVEsR0FBRyxNQUFNLE1BQU0sQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDO1FBQ3pDLE1BQU0sRUFBRTtZQUNOLFdBQVcsRUFBRSxrQ0FBa0M7U0FDaEQ7UUFDRCxVQUFVLEVBQUU7WUFDVixJQUFJLEVBQUU7Z0JBQ0osSUFBSS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xFQUFFO2dDQUNKO29DQUNFLElBQUksRUFBRSxNQUFNO29DQUNaLElBQUksRUFBRTt3Q0FDSixPQUFPLEVBQUUsR0FBRyxHQUFHLFlBQVk7d0NBQzNCLElBQUksRUFBRTs0Q0FDSixHQUFHLEVBQUUsVUFBVTt5Q0FDaEI7cUNBQ0Y7aUNBQ0Y7NkJBQ0Y7eUJBQ0Y7cUJBQ0YsQ0FBQztvQkFDRixnQkFBZ0IsR0FBRyxXQUFXLENBQUM7aUJBQ2hDO3FCQUFNO29CQUNMLFlBQVksQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7d0JBQ3ZDLElBQUksRUFBRSxNQUFNO3dCQUNaLElBQUksRUFBRTs0QkFDSixPQUFPLEVBQUUsR0FBRyxHQUFHLFlBQVk7NEJBQzNCLElBQUksRUFBRTtnQ0FDSixHQUFHLEVBQUUsVUFBVTs2QkFDaEI7eUJBQ0Y7cUJBQ0YsQ0FBQyxDQUFDO2lCQUNKO2FBQ0Y7UUFDSCxDQUFDO1FBQ0QsVUFBVTtZQUNSLElBQUksWUFBWSxJQUFJLGlCQUFpQixDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUU7Z0JBQ2xELE1BQU0sQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLENBQUM7Z0JBQzFCLFlBQVksR0FBRyxTQUFTLENBQUM7Z0JBQ3pCLGdCQUFnQixHQUFHLFNBQVMsQ0FBQzthQUM5QjtZQUNELGlCQUFpQixDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztRQUNsQyxDQUFDO0tBQ0YsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDIn0=
{
"name": "notionbox-parser",
"version": "0.1.2",
"version": "0.1.3",
"description": "notionbox-parser",

@@ -14,3 +14,3 @@ "main": "dist/index.js",

"scripts": {
"start": "run-s build && node build/main/examples/parseAndSendToNotion",
"start": "run-s build && node dist/examples/parseAndSendToNotion",
"build": "tsc -p tsconfig.json",

@@ -17,0 +17,0 @@ "fix": "run-s fix:*",

@@ -26,2 +26,11 @@ import { Client } from '@notionhq/client';

},
Author: {
type: 'rich_text',
rich_text: [
{
type: 'text',
text: { content: 'test' },
},
],
},
},

@@ -28,0 +37,0 @@ children: blocks,

@@ -0,4 +1,5 @@

import { Block } from '@notionhq/client/build/src/api-types';
import { Parser } from 'htmlparser2';
export const parseHtmlToNotionBlocks = (html: string) => {
export const parseHtmlToNotionBlocks = (html: string): Block[] => {
const blocks = [];

@@ -11,3 +12,3 @@ const parser = initParser(blocks);

const initParser = (blocks) => {
const initParser = (blocks: Block[]) => {
let exploringElements: string[] = [];

@@ -14,0 +15,0 @@ let currentBlock;

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