intertext
Advanced tools
Comparing version 4.1.1 to 4.1.2
@@ -936,3 +936,3 @@ (function() { | ||
if ((arity = arguments.length) !== 1) { | ||
throw new Error(`^intertext/html/link_css@2935^ expected 1 argument, got ${arity}`); | ||
throw new Error(`^intertext/cupofhtml/link_css@2935^ expected 1 argument, got ${arity}`); | ||
} | ||
@@ -950,3 +950,3 @@ validate.nonempty_text(href); | ||
if ((arity = arguments.length) !== 1) { | ||
throw new Error(`^intertext//html/link_js@3502^ expected 1 argument, got ${arity}`); | ||
throw new Error(`^intertext//cupofhtml/link_js@3502^ expected 1 argument, got ${arity}`); | ||
} | ||
@@ -959,3 +959,3 @@ switch (type = type_of(x)) { | ||
} | ||
throw new Error(`^intertext/script@4069^ expected a text or a function, got a ${type}`); | ||
throw new Error(`^intertext/cupofhtml/script@4069^ expected a text or a function, got a ${type}`); | ||
} | ||
@@ -1033,6 +1033,12 @@ | ||
var atxt, bnl, i, is_block_tag, is_empty_tag, key, len, ref2, ref3, ref4, ref5, ref6, sigil, slash, src, tagname, value, x_key, x_sys_key, xnl; | ||
if (isa.text(d)) { | ||
return this._html_from_datom((this.text(d))[0]); | ||
if (!DATOM.types.isa.datom_datom(d)) { | ||
if (!isa.text(d)) { | ||
throw new Error(`^intertext/cupofhtml/_html_from_datom@4786^ unable to convert a ${type_of(d)} to HTML; got ${rpr(d)}`); | ||
} | ||
d = { | ||
$key: '^text', | ||
text: d | ||
}; | ||
} | ||
/* TAINT ??? */ DATOM.types.validate.datom_datom(d); | ||
//......................................................................................................... | ||
atxt = ''; | ||
@@ -1039,0 +1045,0 @@ sigil = d.$key[0]; |
{ | ||
"name": "intertext", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "Services for Recurrent Text-related Tasks", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
708043
5363