Skip to content

Commit d951d48

Browse files
authored
Merge pull request #395 from iLib-js/fixIsomorphicTest
Fix isomorphic test failures
2 parents 2b0c787 + 5919c10 commit d951d48

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
version=14.15.0
16+
version=14.15.1

docs/ReleaseNotes.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Release Notes for Version 14
22
============================
33

4+
Build 024
5+
-------
6+
Published as version 14.15.1
7+
New Features:
8+
9+
Bug Fixes:
10+
* Fixed isomorphic test failures by adding a value check
411

512
Build 023
613
-------

js/lib/IString.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ IString.prototype = {
694694
if (typeof(Intl) !== 'undefined') {
695695
if (ilib._getPlatform() === 'nodejs') {
696696
var version = process.versions["node"];
697+
if (!version) return false;
697698
var majorVersion = version.split(".")[0];
698699
if (Number(majorVersion) >= 10 && (Intl.PluralRules.supportedLocalesOf(locale.getSpec()).length > 0)) {
699700
return true;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ilib",
3-
"version": "14.15.0",
3+
"version": "14.15.1",
44
"main": "js/index.js",
55
"description": "iLib is a cross-engine library of internationalization (i18n) classes written in pure JS",
66
"keywords": [

0 commit comments

Comments
 (0)