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.
- package/dist/parse.js +11 -9
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +11 -9
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/CoreManager.js +1 -1
- package/lib/browser/ParseSchema.js +9 -7
- package/lib/node/CoreManager.js +1 -1
- package/lib/node/ParseSchema.js +9 -7
- package/lib/react-native/CoreManager.js +1 -1
- package/lib/react-native/ParseSchema.js +9 -7
- package/lib/weapp/CoreManager.js +1 -1
- package/lib/weapp/ParseSchema.js +9 -7
- package/package.json +1 -1
package/dist/parse.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Parse JavaScript SDK v3.5.0-alpha.
|
|
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.
|
|
702
|
+
VERSION: 'js' + "3.5.0-alpha.3",
|
|
703
703
|
APPLICATION_ID: null,
|
|
704
704
|
JAVASCRIPT_KEY: null,
|
|
705
705
|
MASTER_KEY: null,
|
|
@@ -18514,6 +18514,15 @@ var ParseSchema = /*#__PURE__*/function () {
|
|
|
18514
18514
|
fieldOptions.defaultValue = options.defaultValue;
|
|
18515
18515
|
}
|
|
18516
18516
|
|
|
18517
|
+
if (type === 'Date') {
|
|
18518
|
+
if (options && options.defaultValue) {
|
|
18519
|
+
fieldOptions.defaultValue = {
|
|
18520
|
+
__type: 'Date',
|
|
18521
|
+
iso: new Date(options.defaultValue)
|
|
18522
|
+
};
|
|
18523
|
+
}
|
|
18524
|
+
}
|
|
18525
|
+
|
|
18517
18526
|
this._fields[name] = fieldOptions;
|
|
18518
18527
|
return this;
|
|
18519
18528
|
}
|
|
@@ -18613,13 +18622,6 @@ var ParseSchema = /*#__PURE__*/function () {
|
|
|
18613
18622
|
, options
|
|
18614
18623
|
/*: FieldOptions*/
|
|
18615
18624
|
) {
|
|
18616
|
-
if (options && options.defaultValue) {
|
|
18617
|
-
options.defaultValue = {
|
|
18618
|
-
__type: 'Date',
|
|
18619
|
-
iso: new Date(options.defaultValue)
|
|
18620
|
-
};
|
|
18621
|
-
}
|
|
18622
|
-
|
|
18623
18625
|
return this.addField(name, 'Date', options);
|
|
18624
18626
|
}
|
|
18625
18627
|
/**
|