parse 3.5.0-alpha.2 → 3.5.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Parse JavaScript SDK v3.5.0-alpha.2
2
+ * Parse JavaScript SDK v3.5.0-alpha.3
3
3
  *
4
4
  * The source tree of this library can be found at
5
5
  * https://github.com/ParsePlatform/Parse-SDK-JS
@@ -699,7 +699,7 @@ var config
699
699
  SERVER_AUTH_TOKEN: null,
700
700
  LIVEQUERY_SERVER_URL: null,
701
701
  ENCRYPTED_KEY: null,
702
- VERSION: 'js' + "3.5.0-alpha.2",
702
+ VERSION: 'js' + "3.5.0-alpha.3",
703
703
  APPLICATION_ID: null,
704
704
  JAVASCRIPT_KEY: null,
705
705
  MASTER_KEY: null,
@@ -18508,6 +18508,15 @@ var ParseSchema = /*#__PURE__*/function () {
18508
18508
  fieldOptions.defaultValue = options.defaultValue;
18509
18509
  }
18510
18510
 
18511
+ if (type === 'Date') {
18512
+ if (options && options.defaultValue) {
18513
+ fieldOptions.defaultValue = {
18514
+ __type: 'Date',
18515
+ iso: new Date(options.defaultValue)
18516
+ };
18517
+ }
18518
+ }
18519
+
18511
18520
  this._fields[name] = fieldOptions;
18512
18521
  return this;
18513
18522
  }
@@ -18607,13 +18616,6 @@ var ParseSchema = /*#__PURE__*/function () {
18607
18616
  , options
18608
18617
  /*: FieldOptions*/
18609
18618
  ) {
18610
- if (options && options.defaultValue) {
18611
- options.defaultValue = {
18612
- __type: 'Date',
18613
- iso: new Date(options.defaultValue)
18614
- };
18615
- }
18616
-
18617
18619
  return this.addField(name, 'Date', options);
18618
18620
  }
18619
18621
  /**