quill-delta-to-object
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -90,2 +90,5 @@ "use strict"; | ||
} | ||
if (resultList.length == 0) { | ||
return resultList.concat([{ type: 'textBlock', value: [currentValue] }]); | ||
} | ||
var beforeElement = resultList.pop(); | ||
@@ -92,0 +95,0 @@ var isBeforeElementHasTextBlockType = beforeElement.type === 'textBlock'; |
@@ -9,2 +9,5 @@ "use strict"; | ||
{ | ||
insert: 'Hello World', | ||
}, | ||
{ | ||
attributes: { | ||
@@ -11,0 +14,0 @@ header: 1, |
{ | ||
"name": "quill-delta-to-object", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Converts Quill's delta ops to Object", | ||
@@ -5,0 +5,0 @@ "main": "./dist/commonjs/src/main.js", |
@@ -117,2 +117,5 @@ import { InsertOpsConverter } from './InsertOpsConverter'; | ||
if (resultList.length == 0) { | ||
return [...resultList, { type: 'textBlock', value: [currentValue] }]; | ||
} | ||
const beforeElement: any = resultList.pop(); | ||
@@ -119,0 +122,0 @@ const isBeforeElementHasTextBlockType = |
@@ -10,2 +10,5 @@ // ./node_modules/.bin/ts-node src/sample.ts | ||
{ | ||
insert: 'Hello World', | ||
}, | ||
{ | ||
attributes: { | ||
@@ -12,0 +15,0 @@ header: 1, |
297669
8066