Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit f048e72

Browse files
committed
Bump to v1.3.6.
1 parent 4ef5ffd commit f048e72

File tree

4 files changed

+32
-48
lines changed

4 files changed

+32
-48
lines changed

bump/bump.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
var replace = require("replace");
2-
var version = process.argv.slice(2);
1+
var replace = require('replace');
2+
var version = process.argv[2];
33

44
var banner = `/*!
5-
* Platform.js v<VERSION>
5+
* Platform.js v${version}
66
* Copyright 2014-2020 Benjamin Tan
77
* Copyright 2011-2013 John-David Dalton
88
* Available under MIT license
9-
*/`.replace("<VERSION>", version);
9+
*/`;
1010

1111
replace({
12-
regex: /\/\*!(\*(?!\/)|[^*])*\*\//g,
13-
replacement: banner,
14-
paths: ['platform.js'],
15-
recursive: false,
16-
silent: false
12+
'regex': /\/\*!(\*(?!\/)|[^*])*\*\//,
13+
'replacement': banner,
14+
'paths': ['platform.js'],
15+
'recursive': false,
16+
'silent': false
1717
});

doc/README.md

Lines changed: 19 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Platform.js <sup>v1.3.5</sup>
1+
# Platform.js v1.3.6
22

33
<!-- div class="toc-container" -->
44

@@ -41,8 +41,7 @@
4141
<!-- div -->
4242

4343
<h3 id="platform"><code>platform</code></h3>
44-
45-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1038 "View in source") [&#x24C9;][1]
44+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1081 "View in source") [&#x24C9;][1]
4645

4746
The platform object.
4847

@@ -53,8 +52,7 @@ The platform object.
5352
<!-- div -->
5453

5554
<h3 id="platformdescription"><code>platform.description</code></h3>
56-
57-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1046 "View in source") [&#x24C9;][1]
55+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1089 "View in source") [&#x24C9;][1]
5856

5957
The platform description.
6058

@@ -65,8 +63,7 @@ The platform description.
6563
<!-- div -->
6664

6765
<h3 id="platformlayout"><code>platform.layout</code></h3>
68-
69-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1057 "View in source") [&#x24C9;][1]
66+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1100 "View in source") [&#x24C9;][1]
7067

7168
The name of the browser's layout engine.
7269
<br>
@@ -81,8 +78,7 @@ The list of common layout engines include:<br>
8178
<!-- div -->
8279

8380
<h3 id="platformmanufacturer"><code>platform.manufacturer</code></h3>
84-
85-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1070 "View in source") [&#x24C9;][1]
81+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1113 "View in source") [&#x24C9;][1]
8682

8783
The name of the product's manufacturer.
8884
<br>
@@ -99,8 +95,7 @@ The list of manufacturers include:<br>
9995
<!-- div -->
10096

10197
<h3 id="platformname"><code>platform.name</code></h3>
102-
103-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1086 "View in source") [&#x24C9;][1]
98+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1129 "View in source") [&#x24C9;][1]
10499

105100
The name of the browser/environment.
106101
<br>
@@ -121,8 +116,7 @@ eg. "Chrome Mobile", "Firefox Mobile", "IE Mobile" and "Opera Mobile"
121116
<!-- div -->
122117

123118
<h3 id="platformos"><code>platform.os</code></h3>
124-
125-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1131 "View in source") [&#x24C9;][1]
119+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1174 "View in source") [&#x24C9;][1]
126120

127121
The name of the operating system.
128122

@@ -133,8 +127,7 @@ The name of the operating system.
133127
<!-- div -->
134128

135129
<h3 id="platformparseuanavigatoruseragent"><code>platform.parse([ua=navigator.userAgent])</code></h3>
136-
137-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L253 "View in source") [&#x24C9;][1]
130+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L253 "View in source") [&#x24C9;][1]
138131

139132
Creates a new platform object.
140133

@@ -151,8 +144,7 @@ Creates a new platform object.
151144
<!-- div -->
152145

153146
<h3 id="platformprerelease"><code>platform.prerelease</code></h3>
154-
155-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1094 "View in source") [&#x24C9;][1]
147+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1137 "View in source") [&#x24C9;][1]
156148

157149
The alpha/beta release indicator.
158150

@@ -163,8 +155,7 @@ The alpha/beta release indicator.
163155
<!-- div -->
164156

165157
<h3 id="platformproduct"><code>platform.product</code></h3>
166-
167-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1107 "View in source") [&#x24C9;][1]
158+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1150 "View in source") [&#x24C9;][1]
168159

169160
The name of the product hosting the browser.
170161
<br>
@@ -182,8 +173,7 @@ The list of common products include:
182173
<!-- div -->
183174

184175
<h3 id="platformtostring"><code>platform.toString()</code></h3>
185-
186-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L610 "View in source") [&#x24C9;][1]
176+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L622 "View in source") [&#x24C9;][1]
187177

188178
Returns `platform.description` when the platform object is coerced to a string.
189179

@@ -197,8 +187,7 @@ Returns `platform.description` when the platform object is coerced to a string.
197187
<!-- div -->
198188

199189
<h3 id="platformua"><code>platform.ua</code></h3>
200-
201-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1115 "View in source") [&#x24C9;][1]
190+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1158 "View in source") [&#x24C9;][1]
202191

203192
The browser's user agent string.
204193

@@ -209,8 +198,7 @@ The browser's user agent string.
209198
<!-- div -->
210199

211200
<h3 id="platformversion"><code>platform.version</code></h3>
212-
213-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1123 "View in source") [&#x24C9;][1]
201+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1166 "View in source") [&#x24C9;][1]
214202

215203
The browser/environment version.
216204

@@ -227,8 +215,7 @@ The browser/environment version.
227215
<!-- div -->
228216

229217
<h3 id="platformosarchitecture"><code>platform.os.architecture</code></h3>
230-
231-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1139 "View in source") [&#x24C9;][1]
218+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1182 "View in source") [&#x24C9;][1]
232219

233220
The CPU architecture the OS is built for.
234221

@@ -239,16 +226,15 @@ The CPU architecture the OS is built for.
239226
<!-- div -->
240227

241228
<h3 id="platformosfamily"><code>platform.os.family</code></h3>
242-
243-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1152 "View in source") [&#x24C9;][1]
229+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1195 "View in source") [&#x24C9;][1]
244230

245231
The family of the OS.
246232
<br>
247233
<br>
248234
Common values include:<br>
249235
"Windows", "Windows Server `2008` R2 / `7`", "Windows Server `2008` / Vista",
250-
"Windows XP", "OS X", "Ubuntu", "Debian", "Fedora", "Red Hat", "SuSE",
251-
"Android", "iOS" and "Windows Phone"
236+
"Windows XP", "OS X", "Linux", "Ubuntu", "Debian", "Fedora", "Red Hat",
237+
"SuSE", "Android", "iOS" and "Windows Phone"
252238

253239
---
254240

@@ -257,8 +243,7 @@ Common values include:<br>
257243
<!-- div -->
258244

259245
<h3 id="platformostostring"><code>platform.os.toString()</code></h3>
260-
261-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1168 "View in source") [&#x24C9;][1]
246+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1211 "View in source") [&#x24C9;][1]
262247

263248
Returns the OS string.
264249

@@ -272,8 +257,7 @@ Returns the OS string.
272257
<!-- div -->
273258

274259
<h3 id="platformosversion"><code>platform.os.version</code></h3>
275-
276-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.5/platform.js#L1160 "View in source") [&#x24C9;][1]
260+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.6/platform.js#L1203 "View in source") [&#x24C9;][1]
277261

278262
The version of the OS.
279263

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "platform",
3-
"version": "1.3.5",
3+
"version": "1.3.6",
44
"description": "A platform detection library that works on nearly all JavaScript platforms.",
55
"license": "MIT",
66
"main": "platform.js",
@@ -13,9 +13,9 @@
1313
],
1414
"repository": "bestiejs/platform.js",
1515
"scripts": {
16-
"doc": "docdown platform.js doc/README.md style=github title=\"Platform.js <sup>v${npm_package_version}</sup>\" toc=properties url=https://github.com/bestiejs/platform.js/blob/${npm_package_version}/platform.js",
16+
"doc": "docdown platform.js doc/README.md style=github title=\"Platform.js v${npm_package_version}\" toc=properties url=https://github.com/bestiejs/platform.js/blob/${npm_package_version}/platform.js",
1717
"prepublishOnly": "node bump/bump.js ${npm_package_version}",
18-
"test": "node test/test"
18+
"test": "node test/test.js"
1919
},
2020
"devDependencies": {
2121
"docdown": "^0.7.3",

0 commit comments

Comments
 (0)