bumped version + docs + notes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-09-15 18:23:09 +03:00
parent 1e5aa9fc50
commit dce24493ff
3 changed files with 4 additions and 6 deletions

View File

@ -86,7 +86,7 @@ function(text, tab_size, leading_tabs){
: leading_tabs) : leading_tabs)
* tab_size * tab_size
// prepare text... // prepare text...
var tab = ' '.repeat(tab_size) var tab = ' '.repeat(tab_size || 0)
text = tab != '' ? text = tab != '' ?
text.replace(/\t/g, tab) text.replace(/\t/g, tab)
: text : text

View File

@ -1,6 +1,6 @@
{ {
"name": "ig-object", "name": "ig-object",
"version": "5.2.6", "version": "5.2.7",
"description": "", "description": "",
"main": "object.js", "main": "object.js",
"scripts": { "scripts": {

View File

@ -9,10 +9,8 @@
* - sub-instance * - sub-instance
* - callable * - callable
* - .call(..) and friends * - .call(..) and friends
* - normalizeIndent(..)/normalizeTextIndent(..) -- tab_size values...
* - object.mixout(..) * - object.mixout(..)
* - object.normalizeTextIndent(..)
* - object.doc`...`
* - object.text`...`
* - callback STOP in object.mixins(..) * - callback STOP in object.mixins(..)
* - props arg in object.values(..) * - props arg in object.values(..)
* - RawInstance(..).toString() * - RawInstance(..).toString()
@ -672,6 +670,7 @@ var cases = test.Cases({
assert(xx.call(null), 'xx.call(null)') assert(xx.call(null), 'xx.call(null)')
}, },
// XXX still need to test tab_size values (0, ...)
text_cases: [ text_cases: [
// sanity checks... // sanity checks...
{ input: 'abc', { input: 'abc',
@ -684,7 +683,6 @@ var cases = test.Cases({
{ input: `a { input: `a
c`, c`,
text: 'a\nc', text: 'a\nc',
// XXX fail...
doc: 'a\n c'}, doc: 'a\n c'},
{ input: `a\nc`, { input: `a\nc`,
text: 'a\nc', text: 'a\nc',