@graphy/core.class.scribable
Advanced tools
Comparing version 4.1.0 to 4.2.0
32
main.js
// queueMicrotask shim | ||
{ | ||
// not defined or not a function | ||
if('function' !== typeof queueMicrotask) { | ||
// create resolved promise | ||
let dp_resolve = Promise.resolve(); | ||
// try to redefine | ||
try { | ||
// eslint-disable-next-line no-global-assign | ||
queueMicrotask = fk => dp_resolve.then(fk) | ||
.catch(e_callback => setTimeout(() => { | ||
throw e_callback; | ||
}, 0)); | ||
} | ||
// oh well, at least we tried | ||
catch(e_define) {} | ||
} | ||
} | ||
const factory = require('@graphy/core.data.factory'); | ||
@@ -182,3 +203,3 @@ const stream = require('@graphy/core.iso.stream'); | ||
// do not worry about clearing timeouts | ||
setTimeout(Scribable._flush_buffer, 0, this); | ||
queueMicrotask(() => Scribable._flush_buffer(this)); | ||
} | ||
@@ -201,3 +222,3 @@ } | ||
// do not worry about clearing timeouts | ||
setTimeout(Scribable._flush_buffer, 0, this); | ||
queueMicrotask(() => Scribable._flush_buffer(this)); | ||
} | ||
@@ -263,3 +284,2 @@ } | ||
case 'comment': { | ||
debugger; | ||
return this._serialize_comment(g_event.value); | ||
@@ -281,2 +301,8 @@ } | ||
// rinse off buffer to writable | ||
rinse() { | ||
this._reset(); | ||
Scribable._flush_buffer(this); | ||
} | ||
_flush() { | ||
@@ -283,0 +309,0 @@ // flush buffer |
{ | ||
"name": "@graphy/core.class.scribable", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "Serialize RDF fast", | ||
@@ -26,4 +26,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@graphy/core.data.factory": "^4.1.0", | ||
"@graphy/core.iso.stream": "^4.1.0" | ||
"@graphy/core.data.factory": "^4.2.0", | ||
"@graphy/core.iso.stream": "^4.2.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "engines": { |
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
8012
250