@webex/internal-plugin-device
Advanced tools
Comparing version 1.80.186 to 1.80.187
@@ -828,3 +828,3 @@ 'use strict'; | ||
, | ||
version: '1.80.185' | ||
version: '1.80.186' | ||
}, (_applyDecoratedDescriptor(_obj, 'refresh', [_common.oneFlight, _dec], (0, _getOwnPropertyDescriptor2.default)(_obj, 'refresh'), _obj), _applyDecoratedDescriptor(_obj, 'register', [_common.oneFlight, _dec2], (0, _getOwnPropertyDescriptor2.default)(_obj, 'register'), _obj), _applyDecoratedDescriptor(_obj, 'unregister', [_common.oneFlight, _dec3], (0, _getOwnPropertyDescriptor2.default)(_obj, 'unregister'), _obj), _applyDecoratedDescriptor(_obj, 'markUrlFailedAndGetNew', [_dec4], (0, _getOwnPropertyDescriptor2.default)(_obj, 'markUrlFailedAndGetNew'), _obj), _applyDecoratedDescriptor(_obj, 'initialize', [_dec5], (0, _getOwnPropertyDescriptor2.default)(_obj, 'initialize'), _obj)), _obj))); | ||
@@ -831,0 +831,0 @@ |
@@ -153,3 +153,3 @@ 'use strict'; | ||
// Validate if the value should be a true boolean. | ||
else if (val === 'true') { | ||
else if (typeof val === 'string' && val.toLowerCase() === 'true') { | ||
parsedModel.type = _constants.FEATURE_TYPES.BOOLEAN; | ||
@@ -159,3 +159,3 @@ parsedModel.value = true; | ||
// Validate if the value should be a false boolean. | ||
else if (val === 'false') { | ||
else if (typeof val === 'string' && val.toLowerCase() === 'false') { | ||
parsedModel.type = _constants.FEATURE_TYPES.BOOLEAN; | ||
@@ -162,0 +162,0 @@ parsedModel.value = false; |
{ | ||
"name": "@webex/internal-plugin-device", | ||
"version": "1.80.186", | ||
"version": "1.80.187", | ||
"description": "", | ||
@@ -20,11 +20,11 @@ "license": "MIT", | ||
"babel-runtime": "^6.26.0", | ||
"@webex/common": "1.80.186", | ||
"@webex/webex-core": "1.80.186", | ||
"@webex/common-timers": "1.80.186", | ||
"@webex/common": "1.80.187", | ||
"@webex/webex-core": "1.80.187", | ||
"@webex/common-timers": "1.80.187", | ||
"ampersand-state": "^5.0.3", | ||
"ampersand-collection": "^2.0.2", | ||
"lodash": "^4.17.15", | ||
"@webex/http-core": "1.80.186", | ||
"@webex/http-core": "1.80.187", | ||
"envify": "^4.1.0" | ||
} | ||
} |
@@ -120,3 +120,3 @@ // External dependencies. | ||
// Validate if the value should be a true boolean. | ||
else if (val === 'true') { | ||
else if (typeof val === 'string' && val.toLowerCase() === 'true') { | ||
parsedModel.type = FEATURE_TYPES.BOOLEAN; | ||
@@ -126,3 +126,3 @@ parsedModel.value = true; | ||
// Validate if the value should be a false boolean. | ||
else if (val === 'false') { | ||
else if (typeof val === 'string' && val.toLowerCase() === 'false') { | ||
parsedModel.type = FEATURE_TYPES.BOOLEAN; | ||
@@ -129,0 +129,0 @@ parsedModel.value = false; |
@@ -106,2 +106,15 @@ import {assert} from '@webex/test-helper-chai'; | ||
describe('when the value is a True boolean', () => { | ||
beforeEach('set the value to a True string', () => { | ||
fixture.val = 'True'; | ||
model = featureModel.parse(fixture); | ||
}); | ||
it('should set the value to a boolean true', () => | ||
assert.equal(model.value, true)); | ||
it('should set the type to \'boolean\'', () => | ||
assert.equal(model.type, 'boolean')); | ||
}); | ||
describe('when the value is a false string', () => { | ||
@@ -120,2 +133,15 @@ beforeEach('set the value to a false boolean', () => { | ||
describe('when the value is a False string', () => { | ||
beforeEach('set the value to a false boolean', () => { | ||
fixture.val = 'False'; | ||
model = featureModel.parse(fixture); | ||
}); | ||
it('should set the value to a boolean false', () => | ||
assert.equal(model.value, false)); | ||
it('should set the type to \'boolean\'', () => | ||
assert.equal(model.type, 'boolean')); | ||
}); | ||
describe('when the value is a string', () => { | ||
@@ -122,0 +148,0 @@ beforeEach('set the value to a string', () => { |
Sorry, the diff of this file is not supported yet
199254
3909
+ Added@webex/common@1.80.187(transitive)
+ Added@webex/common-timers@1.80.187(transitive)
+ Added@webex/http-core@1.80.187(transitive)
+ Added@webex/webex-core@1.80.187(transitive)
- Removed@webex/common@1.80.186(transitive)
- Removed@webex/common-timers@1.80.186(transitive)
- Removed@webex/http-core@1.80.186(transitive)
- Removed@webex/webex-core@1.80.186(transitive)
Updated@webex/common@1.80.187
Updated@webex/http-core@1.80.187
Updated@webex/webex-core@1.80.187