steampipes
Advanced tools
Comparing version 3.5.0 to 3.5.1
@@ -0,4 +1,5 @@ | ||
// Generated by CoffeeScript 2.5.0 | ||
(function() { | ||
'use strict'; | ||
var CND, DATOM, HtmlParser, Htmlparser, L, Multimix, alert, badge, cast, debug, echo, help, info, isa, last_of, log, new_datom, rpr, select, type_of, types, urge, validate, warn, whisper, wrap_datom; | ||
var CND, DATOM, HtmlParser, Htmlparser, L, Multimix, alert, badge, cast, debug, echo, help, info, isa, last_of, log, new_datom, rpr, select, type_of, types, urge, validate, warn, whisper; | ||
@@ -46,4 +47,3 @@ //########################################################################################################### | ||
// lets | ||
({new_datom, wrap_datom, select} = DATOM.export()); | ||
({new_datom, select} = DATOM.export()); | ||
@@ -58,2 +58,44 @@ //........................................................................................................... | ||
//----------------------------------------------------------------------------------------------------------- | ||
this.html5_block_level_tagnames = new Set(`address article aside blockquote dd details dialog div dl dt | ||
fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hgroup hr li main nav ol p pre section table | ||
td th ul`.split(/\s+/)); | ||
//----------------------------------------------------------------------------------------------------------- | ||
this._new_datom = function(name, data, text) { | ||
var has_keys, is_block, key, value; | ||
if (text != null) { | ||
return new_datom('^text', {text}); | ||
} | ||
//......................................................................................................... | ||
is_block = this.html5_block_level_tagnames.has(name); | ||
if (data == null) { | ||
if (!is_block) { | ||
return new_datom('>' + name); | ||
} | ||
return new_datom('>' + name, {is_block}); | ||
} | ||
//......................................................................................................... | ||
has_keys = false; | ||
for (key in data) { | ||
value = data[key]; | ||
has_keys = true; | ||
if (value === '') { | ||
data[key] = true; | ||
} | ||
} | ||
//......................................................................................................... | ||
if (!has_keys) { | ||
if (!is_block) { | ||
return new_datom('<' + name); | ||
} | ||
return new_datom('<' + name, {is_block}); | ||
} | ||
if (!is_block) { | ||
//......................................................................................................... | ||
return new_datom('<' + name, {data}); | ||
} | ||
return new_datom('<' + name, {data, is_block}); | ||
}; | ||
//----------------------------------------------------------------------------------------------------------- | ||
this.new_onepiece_parser = function() { | ||
@@ -76,21 +118,3 @@ return this._new_parse_method(false); | ||
parser.on('data', ({name, data, text}) => { | ||
var has_keys, key, value; | ||
if (text != null) { | ||
return R.push(new_datom('^text', {text})); | ||
} | ||
if (data == null) { | ||
return R.push(new_datom('>' + name)); | ||
} | ||
has_keys = false; | ||
for (key in data) { | ||
value = data[key]; | ||
has_keys = true; | ||
if (value === '') { | ||
data[key] = true; | ||
} | ||
} | ||
if (!has_keys) { | ||
return R.push(new_datom('<' + name)); | ||
} | ||
return R.push(new_datom('<' + name, {data})); | ||
return R.push(this._new_datom(name, data, text)); | ||
}); | ||
@@ -148,1 +172,3 @@ parser.on('error', function(error) { | ||
}).call(this); | ||
//# sourceMappingURL=_html-parser.js.map |
@@ -0,1 +1,2 @@ | ||
// Generated by CoffeeScript 2.5.0 | ||
(function() { | ||
@@ -157,1 +158,3 @@ /* | ||
}).call(this); | ||
//# sourceMappingURL=frameworkless-pipelines.js.map |
@@ -0,1 +1,2 @@ | ||
// Generated by CoffeeScript 2.5.0 | ||
(function() { | ||
@@ -258,1 +259,3 @@ 'use strict'; | ||
}).call(this); | ||
//# sourceMappingURL=tail-stream.js.map |
@@ -0,1 +1,2 @@ | ||
// Generated by CoffeeScript 2.5.0 | ||
(function() { | ||
@@ -88,1 +89,3 @@ 'use strict'; | ||
}).call(this); | ||
//# sourceMappingURL=main.js.map |
@@ -392,2 +392,3 @@ // Generated by CoffeeScript 2.5.0 | ||
var A_has_ended, B_has_ended, duct_A, duct_B, duct_C, end_source_C, last, pipeline_A, pipeline_B, pipeline_C, source_A, source_B, source_C; | ||
throw new Error("not yet implemented"); | ||
last = Symbol('last'); | ||
@@ -457,3 +458,3 @@ //......................................................................................................... | ||
this._integrate_wyes = function(...transforms) { | ||
debug('^776665^', transforms); | ||
// debug '^776665^', transforms | ||
// for transform, wye_idx in transforms | ||
@@ -460,0 +461,0 @@ // if transform[ @marks.isa_wye ] |
@@ -0,1 +1,2 @@ | ||
// Generated by CoffeeScript 2.5.0 | ||
(function() { | ||
@@ -189,2 +190,3 @@ //########################################################################################################### | ||
}, | ||
"is_block": true, | ||
"$key": "<p" | ||
@@ -197,2 +199,3 @@ }, | ||
{ | ||
"is_block": true, | ||
"$key": ">p" | ||
@@ -277,2 +280,3 @@ } | ||
}, | ||
"is_block": true, | ||
"$key": "<p" | ||
@@ -285,2 +289,3 @@ }, | ||
{ | ||
"is_block": true, | ||
"$key": ">p" | ||
@@ -302,2 +307,3 @@ }, | ||
}, | ||
"is_block": true, | ||
"$key": "<p" | ||
@@ -316,2 +322,3 @@ }, | ||
{ | ||
"is_block": true, | ||
"$key": ">p" | ||
@@ -330,2 +337,3 @@ } | ||
}, | ||
"is_block": true, | ||
"$key": "<p" | ||
@@ -344,2 +352,3 @@ }, | ||
{ | ||
"is_block": true, | ||
"$key": ">p" | ||
@@ -358,2 +367,3 @@ } | ||
}, | ||
"is_block": true, | ||
"$key": "<p" | ||
@@ -369,2 +379,3 @@ }, | ||
{ | ||
"is_block": true, | ||
"$key": ">p" | ||
@@ -425,2 +436,3 @@ } | ||
}, | ||
"is_block": true, | ||
"$key": "<p" | ||
@@ -433,2 +445,3 @@ }, | ||
{ | ||
"is_block": true, | ||
"$key": ">p" | ||
@@ -447,2 +460,3 @@ } | ||
}, | ||
"is_block": true, | ||
"$key": "<p" | ||
@@ -455,2 +469,3 @@ }, | ||
{ | ||
"is_block": true, | ||
"$key": ">p" | ||
@@ -469,2 +484,3 @@ } | ||
}, | ||
"is_block": true, | ||
"$key": "<p" | ||
@@ -477,2 +493,3 @@ }, | ||
{ | ||
"is_block": true, | ||
"$key": ">p" | ||
@@ -517,2 +534,3 @@ } | ||
{ | ||
"is_block": true, | ||
"$key": "<p" | ||
@@ -602,1 +620,3 @@ }, | ||
}).call(this); | ||
//# sourceMappingURL=html-parser.js.map |
// Generated by CoffeeScript 2.5.0 | ||
(function() { | ||
'use strict'; | ||
var $, $async, $show, $watch, CND, FS, OS, PATH, PD, SP, alert, badge, debug, echo, help, info, jr, log, rpr, test, urge, warn, whisper; | ||
var $, $async, $show, $watch, CND, FS, OS, PATH, SP, alert, badge, debug, echo, help, info, jr, log, rpr, test, urge, warn, whisper; | ||
@@ -47,7 +47,17 @@ //########################################################################################################### | ||
PD = require('pipedreams'); | ||
//----------------------------------------------------------------------------------------------------------- | ||
this["adapt 1"] = async function(T, done) { | ||
var error, matcher, probe; | ||
var PD, error, matcher, message, probe; | ||
try { | ||
PD = require('pipedreams'); | ||
} catch (error1) { | ||
error = error1; | ||
if (error.code !== 'MODULE_NOT_FOUND') { | ||
throw error; | ||
} | ||
message = "^33877^ must install pipedreams to run adapter test; skipping"; | ||
warn(message); | ||
// T.fail message | ||
return done(); | ||
} | ||
probe = "just a bunch of words really".split(/\s+/); | ||
@@ -54,0 +64,0 @@ matcher = [...probe]; |
@@ -498,6 +498,8 @@ // Generated by CoffeeScript 2.5.0 | ||
//########################################################################################################### | ||
if (module.parent == null) { | ||
test(this, { | ||
'timeout': 30000 | ||
}); | ||
if (module === require.main) { | ||
(() => { // await do => | ||
return test(this, { | ||
'timeout': 30000 | ||
}); | ||
})(); | ||
} | ||
@@ -504,0 +506,0 @@ |
{ | ||
"name": "steampipes", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"description": "Fast, simple data pipelines", | ||
@@ -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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1115462
8306