cqm-models 4.1.0 → 4.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 824c04168aff91f769c20c2ebdb0eebc5b5b63f457ca424002e71c833260b6fc
4
- data.tar.gz: ec4fad1105bef87c9e4acde4ec0639db03b6b96d77146ebb62a7e1a64068d2df
3
+ metadata.gz: 930fdd6c260f1cf2e8b97f3abb93fe74fafe8c5caf418c4fb41f7975a733d555
4
+ data.tar.gz: 896a73479c131df363f00dcd8627b83a6fd39e5b3ced36c3b8983e9d96a549c7
5
5
  SHA512:
6
- metadata.gz: d4c6e1020981220cb7227caef2dc7423d3bc3374e1b9ff5b1a85ffabe226e2fb8428fbe63abce00cbfda68f21ede488fc9d6122d5fd8ccf8a641cd7903d0baa4
7
- data.tar.gz: b8cf4f3ede2e516a194f3879ce5a96980782b9227bffdc6d3a3c1a2779945b9d0d7455a9b33c84b59ed3ac89c4756eedfda6a8cb230285e8c620396fd8a0b723
6
+ metadata.gz: 3b91579699b17533ace81ac84e05997fd903b3d6ca415f912dbcf03bd93a0dfdacd1889f27cbd1e25ef5db23bb9090dc5a377a66084f0fe532dd22600d46042e
7
+ data.tar.gz: 6ef858a99cbec230afc9661690318838a72882837dac94440fab97327da096164aba4947083d06caac036bd7d9531ac31b2ae55ae6bb1be9ac4e80b9af9ecfab
@@ -7,7 +7,7 @@ function Any(key, options) {
7
7
  Any.prototype = Object.create(mongoose.SchemaType.prototype);
8
8
 
9
9
  function RecursiveCast(any) {
10
- if (any && any.value && any.unit) {
10
+ if (any && any.value !== undefined && any.unit) {
11
11
  return new cql.Quantity(any.value, any.unit);
12
12
  }
13
13
 
data/cqm-models.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'cqm-models'
7
- spec.version = '4.1.0'
7
+ spec.version = '4.1.1'
8
8
  spec.authors = ['aholmes@mitre.org', 'mokeefe@mitre.org', 'lades@mitre.org']
9
9
 
10
10
  spec.summary = 'Mongo models that correspond to the QDM specification.'
data/dist/browser.js CHANGED
@@ -3429,7 +3429,7 @@ function Any(key, options) {
3429
3429
  Any.prototype = Object.create(mongoose.SchemaType.prototype);
3430
3430
 
3431
3431
  function RecursiveCast(any) {
3432
- if (any && any.value && any.unit) {
3432
+ if (any && any.value !== undefined && any.unit) {
3433
3433
  return new cql.Quantity(any.value, any.unit);
3434
3434
  }
3435
3435
 
data/dist/index.js CHANGED
@@ -3429,7 +3429,7 @@ function Any(key, options) {
3429
3429
  Any.prototype = Object.create(mongoose.SchemaType.prototype);
3430
3430
 
3431
3431
  function RecursiveCast(any) {
3432
- if (any && any.value && any.unit) {
3432
+ if (any && any.value !== undefined && any.unit) {
3433
3433
  return new cql.Quantity(any.value, any.unit);
3434
3434
  }
3435
3435