Skip to content

Commit

Permalink
Release version 1.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Sep 23, 2018
1 parent d77f0e4 commit 84082ca
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v1.5.4 (23 Sep 2018)

* Fix network url start with //
* Smaller padding for logs

## v1.5.3 (2 Sep 2018)

* Add load dom plugin snippet
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eruda",
"version": "1.5.3",
"version": "1.5.4",
"description": "Console for Mobile Browsers",
"main": "eruda.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/Console/Console.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { noop, evalCss, $, Emitter } from '../lib/util'
import emitter from '../lib/emitter'
import Settings from '../Settings/Settings'
import stringify from './stringify'
import libStringify from '../lib/stringify'

export default class Console extends Tool {
constructor() {
Expand Down Expand Up @@ -311,6 +312,8 @@ export default class Console extends Tool {
}
}

Console.stringify = libStringify

const CONSOLE_METHOD = [
'log',
'error',
Expand Down
6 changes: 3 additions & 3 deletions src/lib/stringify.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ function getKeys(obj) {

// $, upperCase, lowerCase, _
function sortObjName(a, b) {
let lenA = a.length,
lenB = b.length,
len = lenA > lenB ? lenB : lenA
let lenA = a.length
let lenB = b.length
let len = lenA > lenB ? lenB : lenA

for (let i = 0; i < len; i++) {
let codeA = a.charCodeAt(i)
Expand Down
8 changes: 8 additions & 0 deletions test/manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
<li>
<a href="#" id="override-style">Override Style</a>
</li>
<li>
<a href="#" id="stringify-timing">Stringify Timing</a>
</li>
</ul>
</nav>
<script>
Expand Down Expand Up @@ -116,6 +119,11 @@
{
util.evalCss('.eruda-nav-bar {background: red !important;}');
});
addClickEvent('stringify-timing', function () {
console.time('stringify window')
eruda.Console.stringify(window)
console.timeEnd('stringify window')
})
</script>
<script>
eruda.init();
Expand Down

0 comments on commit 84082ca

Please sign in to comment.