Skip to content

Commit 37e2404

Browse files
committed
Bump v1.8.8
1 parent 09b5110 commit 37e2404

File tree

9 files changed

+34
-34
lines changed

9 files changed

+34
-34
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Just add a link tag in your HTML to install and start your bundle:
7575
<link rel="system" type="application/json" href="app.json">
7676

7777
<!-- load System Runtime -->
78-
<script src="https://cdn.jsdelivr.net/system-runtime/1.8.7/system-runtime.min.js"></script>
78+
<script src="https://cdn.jsdelivr.net/system-runtime/1.8.8/system-runtime.min.js"></script>
7979
```
8080

8181
#### Install the bundle in Node.js
@@ -155,7 +155,7 @@ runtime.version();
155155

156156
Add a `<script>` tag to your HTML page:
157157
```html
158-
<script src="https://cdn.jsdelivr.net/system-runtime/1.8.7/system-runtime.min.js"></script>
158+
<script src="https://cdn.jsdelivr.net/system-runtime/1.8.8/system-runtime.min.js"></script>
159159
```
160160

161161
Then you can use runtime on your script:

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "system-runtime",
3-
"version": "1.8.7",
3+
"version": "1.8.8",
44
"description": "A JavaScript library that runs systems",
55
"license": "Apache-2.0",
66
"homepage": "https://system-runtime.github.io",

build/system/system.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ var system = {
17861786
"Runtime": {
17871787
"runtime": {
17881788
"_id": "runtime",
1789-
"version": "1.8.7"
1789+
"version": "1.8.8"
17901790
}
17911791
},
17921792
"RuntimeDatabase": {
@@ -1812,7 +1812,7 @@ var system = {
18121812
}
18131813
},
18141814
"name": "system-runtime",
1815-
"version": "1.8.7",
1815+
"version": "1.8.8",
18161816
"description": "System Runtime",
18171817
"_id": "e89c617b6b15d24",
18181818
"master": false,

build/sytem-runtime.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@
19201920
"Runtime": {
19211921
"runtime": {
19221922
"_id": "runtime",
1923-
"version": "1.8.7"
1923+
"version": "1.8.8"
19241924
}
19251925
},
19261926
"RuntimeDatabase": {
@@ -1946,7 +1946,7 @@
19461946
}
19471947
},
19481948
"name": "system-runtime",
1949-
"version": "1.8.7",
1949+
"version": "1.8.8",
19501950
"description": "System Runtime",
19511951
"_id": "e89c617b6b15d24",
19521952
"master": false,

dist/system-runtime.js

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/system-runtime.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "system-runtime",
3-
"version": "1.8.7",
3+
"version": "1.8.8",
44
"description": "A JavaScript library that runs systems",
55
"homepage": "https://system-runtime.github.io",
66
"keywords": [

src/metamodel.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,12 +1406,14 @@ function isValidType(value, typeName) {
14061406
var typeRef = getReference(typeName);
14071407
var component = value;
14081408

1409-
if (hasType(value, 'string')) {
1410-
component = $component.get(value);
1411-
}
1412-
if (getClassName(component) !== typeRef && JSON.stringify(component) !== '{}') {
1413-
isValid = false;
1414-
$log.invalidType(value, typeName.replace('@', ''));
1409+
if (value !== '') {
1410+
if (hasType(value, 'string')) {
1411+
component = $component.get(value);
1412+
}
1413+
if (getClassName(component) !== typeRef && JSON.stringify(component) !== '{}') {
1414+
isValid = false;
1415+
$log.invalidType(value, typeName.replace('@', ''));
1416+
}
14151417
}
14161418
return isValid;
14171419
}
@@ -1765,10 +1767,8 @@ function isValidObject(object, schema, strict, cleanRef) {
17651767
// check for default value of an object ({} or null)
17661768
switch (true) {
17671769
case (hasType(field, 'object') && field !== null && Object.keys(field).length > 0):
1768-
case hasType(field, 'string'):
1769-
if (field !== '') {
1770-
$log.canNotYetValidate(field, typeRef);
1771-
}
1770+
case hasType(field, 'string') && field !== '':
1771+
$log.canNotYetValidate(field, typeRef);
17721772
break;
17731773
default:
17741774
break;

src/system/system-runtime.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)