Sha256: cea1b2de71c88ff013ab31e23af84a5b93af368eda0f24977ff98e8bda27cd31

Contents?: true

Size: 888 Bytes

Versions: 23

Compression:

Stored size: 888 Bytes

Contents

{"version":3,"sources":["../src/truncateTableData.js"],"names":["rows","config","map","cells","content","index","length","columns","truncate"],"mappings":";;;;;;;;;;;AAEA;;;;;;2BAMgBA,I,EAAMC,M,KAAW;AAC/B,SAAOD,IAAI,CAACE,GAAL,CAAUC,KAAD,IAAW;AACzB,WAAOA,KAAK,CAACD,GAAN,CAAU,CAACE,OAAD,EAAUC,KAAV,KAAoB;AACnC,aAAO,wBAAWD,OAAX,EAAoB;AACzBE,QAAAA,MAAM,EAAEL,MAAM,CAACM,OAAP,CAAeF,KAAf,EAAsBG;AADL,OAApB,CAAP;AAGD,KAJM,CAAP;AAKD,GANM,CAAP;AAOD,C","sourcesContent":["import _ from 'lodash';\n\n/**\n * @todo Make it work with ASCII content.\n * @param {table~row[]} rows\n * @param {Object} config\n * @returns {table~row[]}\n */\nexport default (rows, config) => {\n  return rows.map((cells) => {\n    return cells.map((content, index) => {\n      return _.truncate(content, {\n        length: config.columns[index].truncate\n      });\n    });\n  });\n};\n"],"file":"truncateTableData.js"}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-5.0.7 node_modules/table/dist/truncateTableData.js.map
trusty-cms-5.0.6 node_modules/table/dist/truncateTableData.js.map
trusty-cms-5.0.5 node_modules/table/dist/truncateTableData.js.map
trusty-cms-5.0.4 node_modules/table/dist/truncateTableData.js.map
trusty-cms-5.0.3 node_modules/table/dist/truncateTableData.js.map
trusty-cms-5.0.2 node_modules/table/dist/truncateTableData.js.map
trusty-cms-5.0.1 node_modules/table/dist/truncateTableData.js.map
trusty-cms-4.3.5 node_modules/table/dist/truncateTableData.js.map
trusty-cms-5.0.0 node_modules/table/dist/truncateTableData.js.map
trusty-cms-4.3.4 node_modules/table/dist/truncateTableData.js.map
trusty-cms-4.3.3 node_modules/table/dist/truncateTableData.js.map
trusty-cms-4.3.2 node_modules/table/dist/truncateTableData.js.map
trusty-cms-4.3.1 node_modules/table/dist/truncateTableData.js.map
trusty-cms-4.3 node_modules/table/dist/truncateTableData.js.map
trusty-cms-4.2.3 node_modules/table/dist/truncateTableData.js.map
trusty-cms-4.2.2 node_modules/table/dist/truncateTableData.js.map
trusty-cms-4.2.1 node_modules/table/dist/truncateTableData.js.map
trusty-cms-4.2 node_modules/table/dist/truncateTableData.js.map
trusty-cms-4.1.9 node_modules/table/dist/truncateTableData.js.map
trusty-cms-4.1.8 node_modules/table/dist/truncateTableData.js.map