Skip to content

Commit

Permalink
Merge branch 'release/v0.5.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkGriffiths committed Aug 12, 2019
2 parents b268a10 + ded82f1 commit 98d3f7a
Show file tree
Hide file tree
Showing 8 changed files with 1,992 additions and 1,825 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ branches:
language: node_js
node_js:
- stable
- 11
- 10
- 9
- 8
env:
global:
- CC_TEST_REPORTER_ID=5fb5515c61643d8dd2f603726d5f92fb728a0ca42e9f81c2090dffd0afc3aa7c
- CC_TEST_REPORTER_ID=40b1513b98e60239cc6d5ee9b6a98ba1cf8438189dd2066c67a75fdfb8be5cff
before_install:
- '[[ $(node -v) =~ ^v10.*$ ]] || npm install -g npm@latest'
- '[[ $(node -v) =~ ^v12.*$ ]] || npm install -g npm@latest'
- npm install -g greenkeeper-lockfile
install: npm install
before_script:
Expand Down
36 changes: 18 additions & 18 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8" />
<title>@thebespokepixel/string 0.5.7 | Documentation</title>
<title>@thebespokepixel/string 0.5.8 | Documentation</title>
<meta name='description' content='Esoteric string formatting'>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="assets/css/ace.min.css" rel="stylesheet">
Expand All @@ -15,7 +15,7 @@
<div id='split-left' class='overflow-auto fs0 height-viewport-100 sidebar'>
<div class='py1 px2'>
<h3 class="m0 no-anchor">@thebespokepixel/string</h3>
<div class="mb1"><code>0.5.7</code></div>
<div class="mb1"><code>0.5.8</code></div>
<input
placeholder="Filter"
id="filter-input"
Expand Down Expand Up @@ -166,10 +166,10 @@ <h3 class="m0 no-anchor">@thebespokepixel/string</h3>

</ul>
</div>
<div class="badges"><p><p><a href="https://github.com/MarkGriffiths/string" title="Github"><img src="https://img.shields.io/badge/github-source-4E73B6.svg?style=flat" alt="Github"></a> <a href="https://travis-ci.org/MarkGriffiths/string" title="Travis"><img src="https://img.shields.io/travis/MarkGriffiths/string.svg?branch=master&#x26;style=flat&#x26;logo=travis" alt="Travis"></a> <br>
</p> <p><a href="https://codeclimate.com/github/MarkGriffiths/string/maintainability" title="Code-climate"><img src="https://api.codeclimate.com/v1/badges/778e48bd070243673683/maintainability?style=flat" alt="Code-climate"></a> <br>
</p> <p><a href="https://codeclimate.com/github/MarkGriffiths/string/test_coverage" title="Coverage"><img src="https://api.codeclimate.com/v1/badges/778e48bd070243673683/test_coverage?style=flat" alt="Coverage"></a> <br>
</p> <p><a href="https://david-dm.org/MarkGriffiths/string/master" title="David"><img src="https://img.shields.io/david/MarkGriffiths/string.svg?branch=master&#x26;style=flat" alt="David"></a> <br>
<div class="badges"><p><p><a href="https://github.com/thebespokepixel/string" title="Github"><img src="https://img.shields.io/badge/github-source-4E73B6.svg?style=flat" alt="Github"></a> <a href="https://travis-ci.org/thebespokepixel/string" title="Travis"><img src="https://img.shields.io/travis/thebespokepixel/string.svg?branch=master&#x26;style=flat&#x26;logo=travis" alt="Travis"></a> <br>
</p> <p><a href="https://codeclimate.com/github/thebespokepixel/string/maintainability" title="Code-climate"><img src="https://api.codeclimate.com/v1/badges/57bf94c1bc96b928b8cd/maintainability?style=flat" alt="Code-climate"></a> <br>
</p> <p><a href="https://codeclimate.com/github/thebespokepixel/string/test_coverage" title="Coverage"><img src="https://api.codeclimate.com/v1/badges/57bf94c1bc96b928b8cd/test_coverage?style=flat" alt="Coverage"></a> <br>
</p> <p><a href="https://david-dm.org/thebespokepixel/string/master" title="David"><img src="https://img.shields.io/david/thebespokepixel/string.svg?branch=master&#x26;style=flat" alt="David"></a> <br>
</p> <br>
</p></div>
<div class="mt1 h6 quiet">
Expand Down Expand Up @@ -271,7 +271,7 @@ <h3 class='left m0 panel-title' id='constructor'>
</h3>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/string/blob/853814a3951085b297acd3183d672c0f8d7b5d05/src/index.js#L13-L15'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/thebespokepixel/string/blob/35b67a86d8d10eff4303304d04815421e414df5e/src/index.js#L13-L15'>
<span>src/index.js</span>
</a>

Expand Down Expand Up @@ -339,7 +339,7 @@ <h3 class='left m0 panel-title' id='pad'>
</h3>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/string/blob/853814a3951085b297acd3183d672c0f8d7b5d05/src/index.js#L51-L55'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/thebespokepixel/string/blob/35b67a86d8d10eff4303304d04815421e414df5e/src/index.js#L51-L55'>
<span>src/index.js</span>
</a>

Expand Down Expand Up @@ -426,7 +426,7 @@ <h3 class='left m0 panel-title' id='tosub'>
</h3>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/string/blob/853814a3951085b297acd3183d672c0f8d7b5d05/src/index.js#L61-L63'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/thebespokepixel/string/blob/35b67a86d8d10eff4303304d04815421e414df5e/src/index.js#L61-L63'>
<span>src/index.js</span>
</a>

Expand Down Expand Up @@ -488,7 +488,7 @@ <h3 class='left m0 panel-title' id='tosuper'>
</h3>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/string/blob/853814a3951085b297acd3183d672c0f8d7b5d05/src/index.js#L69-L71'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/thebespokepixel/string/blob/35b67a86d8d10eff4303304d04815421e414df5e/src/index.js#L69-L71'>
<span>src/index.js</span>
</a>

Expand Down Expand Up @@ -550,7 +550,7 @@ <h3 class='left m0 panel-title' id='asemoji'>
</h3>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/string/blob/853814a3951085b297acd3183d672c0f8d7b5d05/src/index.js#L79-L82'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/thebespokepixel/string/blob/35b67a86d8d10eff4303304d04815421e414df5e/src/index.js#L79-L82'>
<span>src/index.js</span>
</a>

Expand Down Expand Up @@ -613,7 +613,7 @@ <h3 class='left m0 panel-title' id='inbox'>
</h3>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/string/blob/853814a3951085b297acd3183d672c0f8d7b5d05/src/index.js#L89-L106'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/thebespokepixel/string/blob/35b67a86d8d10eff4303304d04815421e414df5e/src/index.js#L89-L106'>
<span>src/index.js</span>
</a>

Expand Down Expand Up @@ -690,7 +690,7 @@ <h3 class='left m0 panel-title' id='bespokestring'>
</h3>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/string/blob/853814a3951085b297acd3183d672c0f8d7b5d05/src/index.js#L122-L124'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/thebespokepixel/string/blob/35b67a86d8d10eff4303304d04815421e414df5e/src/index.js#L122-L124'>
<span>src/index.js</span>
</a>

Expand Down Expand Up @@ -766,7 +766,7 @@ <h3 class='left m0 panel-title' id='pad'>
</h3>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/string/blob/853814a3951085b297acd3183d672c0f8d7b5d05/src/index.js#L133-L135'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/thebespokepixel/string/blob/35b67a86d8d10eff4303304d04815421e414df5e/src/index.js#L133-L135'>
<span>src/index.js</span>
</a>

Expand Down Expand Up @@ -860,7 +860,7 @@ <h3 class='left m0 panel-title' id='box'>
</h3>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/string/blob/853814a3951085b297acd3183d672c0f8d7b5d05/src/index.js#L143-L145'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/thebespokepixel/string/blob/35b67a86d8d10eff4303304d04815421e414df5e/src/index.js#L143-L145'>
<span>src/index.js</span>
</a>

Expand Down Expand Up @@ -945,7 +945,7 @@ <h3 class='left m0 panel-title' id='tosubscript'>
</h3>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/string/blob/853814a3951085b297acd3183d672c0f8d7b5d05/src/index.js#L152-L154'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/thebespokepixel/string/blob/35b67a86d8d10eff4303304d04815421e414df5e/src/index.js#L152-L154'>
<span>src/index.js</span>
</a>

Expand Down Expand Up @@ -1021,7 +1021,7 @@ <h3 class='left m0 panel-title' id='tosuperscript'>
</h3>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/string/blob/853814a3951085b297acd3183d672c0f8d7b5d05/src/index.js#L161-L163'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/thebespokepixel/string/blob/35b67a86d8d10eff4303304d04815421e414df5e/src/index.js#L161-L163'>
<span>src/index.js</span>
</a>

Expand Down Expand Up @@ -1097,7 +1097,7 @@ <h3 class='left m0 panel-title' id='emoji'>
</h3>


<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/MarkGriffiths/string/blob/853814a3951085b297acd3183d672c0f8d7b5d05/src/index.js#L170-L172'>
<a class='pl3 pr1 right rounded github' href='https://MarkGriffiths@github.com/thebespokepixel/string/blob/35b67a86d8d10eff4303304d04815421e414df5e/src/index.js#L170-L172'>
<span>src/index.js</span>
</a>

Expand Down
37 changes: 26 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,35 @@ function _defineProperty(obj, key, value) {
return obj;
}

function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);

if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}

return keys;
}

function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);

if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}

ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}

return target;
Expand Down Expand Up @@ -88,7 +103,7 @@ class BespokeString {
}

inBox(options = {}) {
return new BespokeString(boxen(this.valueOf(), _objectSpread({
return new BespokeString(boxen(this.valueOf(), _objectSpread2({
borderColor: 'blue',
borderStyle: 'round',
dimBorder: true,
Expand Down
37 changes: 26 additions & 11 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,35 @@ function _defineProperty(obj, key, value) {
return obj;
}

function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);

if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}

return keys;
}

function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);

if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}

ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}

return target;
Expand Down Expand Up @@ -82,7 +97,7 @@ class BespokeString {
}

inBox(options = {}) {
return new BespokeString(boxen(this.valueOf(), _objectSpread({
return new BespokeString(boxen(this.valueOf(), _objectSpread2({
borderColor: 'blue',
borderStyle: 'round',
dimBorder: true,
Expand Down
Loading

0 comments on commit 98d3f7a

Please sign in to comment.