Skip to content

Commit 27bb87a

Browse files
committedAug 12, 2019
Merge branch 'release/v0.5.8' into develop
2 parents 35b67a8 + ded82f1 commit 27bb87a

File tree

5 files changed

+68
-38
lines changed

5 files changed

+68
-38
lines changed
 

‎docs/index.html

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8" />
5-
<title>@thebespokepixel/string 0.5.7 | Documentation</title>
5+
<title>@thebespokepixel/string 0.5.8 | Documentation</title>
66
<meta name='description' content='Esoteric string formatting'>
77
<meta name="viewport" content="width=device-width,initial-scale=1">
88
<link href="assets/css/ace.min.css" rel="stylesheet">
@@ -15,7 +15,7 @@
1515
<div id='split-left' class='overflow-auto fs0 height-viewport-100 sidebar'>
1616
<div class='py1 px2'>
1717
<h3 class="m0 no-anchor">@thebespokepixel/string</h3>
18-
<div class="mb1"><code>0.5.7</code></div>
18+
<div class="mb1"><code>0.5.8</code></div>
1919
<input
2020
placeholder="Filter"
2121
id="filter-input"
@@ -271,7 +271,7 @@ <h3 class='left m0 panel-title' id='constructor'>
271271
</h3>
272272

273273

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

@@ -339,7 +339,7 @@ <h3 class='left m0 panel-title' id='pad'>
339339
</h3>
340340

341341

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

@@ -426,7 +426,7 @@ <h3 class='left m0 panel-title' id='tosub'>
426426
</h3>
427427

428428

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

@@ -488,7 +488,7 @@ <h3 class='left m0 panel-title' id='tosuper'>
488488
</h3>
489489

490490

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

@@ -550,7 +550,7 @@ <h3 class='left m0 panel-title' id='asemoji'>
550550
</h3>
551551

552552

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

@@ -613,7 +613,7 @@ <h3 class='left m0 panel-title' id='inbox'>
613613
</h3>
614614

615615

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

@@ -690,7 +690,7 @@ <h3 class='left m0 panel-title' id='bespokestring'>
690690
</h3>
691691

692692

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

@@ -766,7 +766,7 @@ <h3 class='left m0 panel-title' id='pad'>
766766
</h3>
767767

768768

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

@@ -860,7 +860,7 @@ <h3 class='left m0 panel-title' id='box'>
860860
</h3>
861861

862862

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

@@ -945,7 +945,7 @@ <h3 class='left m0 panel-title' id='tosubscript'>
945945
</h3>
946946

947947

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

@@ -1021,7 +1021,7 @@ <h3 class='left m0 panel-title' id='tosuperscript'>
10211021
</h3>
10221022

10231023

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

@@ -1097,7 +1097,7 @@ <h3 class='left m0 panel-title' id='emoji'>
10971097
</h3>
10981098

10991099

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

‎index.js

+26-11
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,35 @@ function _defineProperty(obj, key, value) {
2222
return obj;
2323
}
2424

25-
function _objectSpread(target) {
25+
function ownKeys(object, enumerableOnly) {
26+
var keys = Object.keys(object);
27+
28+
if (Object.getOwnPropertySymbols) {
29+
var symbols = Object.getOwnPropertySymbols(object);
30+
if (enumerableOnly) symbols = symbols.filter(function (sym) {
31+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
32+
});
33+
keys.push.apply(keys, symbols);
34+
}
35+
36+
return keys;
37+
}
38+
39+
function _objectSpread2(target) {
2640
for (var i = 1; i < arguments.length; i++) {
2741
var source = arguments[i] != null ? arguments[i] : {};
28-
var ownKeys = Object.keys(source);
2942

30-
if (typeof Object.getOwnPropertySymbols === 'function') {
31-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
32-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
33-
}));
43+
if (i % 2) {
44+
ownKeys(source, true).forEach(function (key) {
45+
_defineProperty(target, key, source[key]);
46+
});
47+
} else if (Object.getOwnPropertyDescriptors) {
48+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
49+
} else {
50+
ownKeys(source).forEach(function (key) {
51+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
52+
});
3453
}
35-
36-
ownKeys.forEach(function (key) {
37-
_defineProperty(target, key, source[key]);
38-
});
3954
}
4055

4156
return target;
@@ -88,7 +103,7 @@ class BespokeString {
88103
}
89104

90105
inBox(options = {}) {
91-
return new BespokeString(boxen(this.valueOf(), _objectSpread({
106+
return new BespokeString(boxen(this.valueOf(), _objectSpread2({
92107
borderColor: 'blue',
93108
borderStyle: 'round',
94109
dimBorder: true,

‎index.mjs

+26-11
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,35 @@ function _defineProperty(obj, key, value) {
1616
return obj;
1717
}
1818

19-
function _objectSpread(target) {
19+
function ownKeys(object, enumerableOnly) {
20+
var keys = Object.keys(object);
21+
22+
if (Object.getOwnPropertySymbols) {
23+
var symbols = Object.getOwnPropertySymbols(object);
24+
if (enumerableOnly) symbols = symbols.filter(function (sym) {
25+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
26+
});
27+
keys.push.apply(keys, symbols);
28+
}
29+
30+
return keys;
31+
}
32+
33+
function _objectSpread2(target) {
2034
for (var i = 1; i < arguments.length; i++) {
2135
var source = arguments[i] != null ? arguments[i] : {};
22-
var ownKeys = Object.keys(source);
2336

24-
if (typeof Object.getOwnPropertySymbols === 'function') {
25-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
26-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
27-
}));
37+
if (i % 2) {
38+
ownKeys(source, true).forEach(function (key) {
39+
_defineProperty(target, key, source[key]);
40+
});
41+
} else if (Object.getOwnPropertyDescriptors) {
42+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
43+
} else {
44+
ownKeys(source).forEach(function (key) {
45+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
46+
});
2847
}
29-
30-
ownKeys.forEach(function (key) {
31-
_defineProperty(target, key, source[key]);
32-
});
3348
}
3449

3550
return target;
@@ -82,7 +97,7 @@ class BespokeString {
8297
}
8398

8499
inBox(options = {}) {
85-
return new BespokeString(boxen(this.valueOf(), _objectSpread({
100+
return new BespokeString(boxen(this.valueOf(), _objectSpread2({
86101
borderColor: 'blue',
87102
borderStyle: 'round',
88103
dimBorder: true,

‎package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thebespokepixel/string",
3-
"version": "0.5.7",
3+
"version": "0.5.8",
44
"description": "Esoteric string formatting",
55
"main": "index.js",
66
"module": "index.mjs",

0 commit comments

Comments
 (0)
Please sign in to comment.