parse 4.0.0 → 4.0.1-beta.1
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/LICENSE +167 -25
- package/NOTICE +10 -0
- package/README.md +1 -3
- package/dist/parse.js +188 -374
- package/dist/parse.min.js +7 -6
- package/dist/parse.weapp.js +188 -374
- package/dist/parse.weapp.min.js +7 -6
- package/lib/browser/Analytics.js +0 -7
- package/lib/browser/AnonymousUtils.js +0 -7
- package/lib/browser/Cloud.js +0 -7
- package/lib/browser/CoreManager.js +1 -8
- package/lib/browser/EventEmitter.js +0 -7
- package/lib/browser/FacebookUtils.js +0 -7
- package/lib/browser/InstallationController.js +0 -7
- package/lib/browser/LocalDatastoreUtils.js +0 -7
- package/lib/browser/OfflineQuery.js +27 -8
- package/lib/browser/Parse.js +0 -9
- package/lib/browser/ParseACL.js +0 -7
- package/lib/browser/ParseConfig.js +0 -7
- package/lib/browser/ParseError.js +0 -9
- package/lib/browser/ParseGeoPoint.js +0 -7
- package/lib/browser/ParseObject.js +158 -126
- package/lib/browser/ParsePolygon.js +0 -7
- package/lib/browser/ParseRelation.js +0 -7
- package/lib/browser/ParseSchema.js +0 -7
- package/lib/browser/Push.js +0 -7
- package/lib/browser/RESTController.js +0 -7
- package/lib/browser/SingleInstanceStateController.js +0 -7
- package/lib/browser/Storage.js +0 -7
- package/lib/browser/StorageController.browser.js +0 -7
- package/lib/browser/StorageController.default.js +0 -7
- package/lib/browser/StorageController.react-native.js +0 -7
- package/lib/browser/StorageController.weapp.js +0 -7
- package/lib/browser/TaskQueue.js +0 -7
- package/lib/browser/UniqueInstanceStateController.js +0 -7
- package/lib/browser/arrayContainsObject.js +0 -7
- package/lib/browser/canBeSerialized.js +0 -7
- package/lib/browser/decode.js +0 -7
- package/lib/browser/encode.js +0 -7
- package/lib/browser/equals.js +0 -9
- package/lib/browser/escape.js +0 -7
- package/lib/browser/isRevocableSession.js +0 -7
- package/lib/browser/parseDate.js +0 -7
- package/lib/browser/unique.js +0 -7
- package/lib/browser/unsavedChildren.js +0 -7
- package/lib/node/Analytics.js +0 -7
- package/lib/node/AnonymousUtils.js +0 -7
- package/lib/node/Cloud.js +0 -7
- package/lib/node/CoreManager.js +1 -8
- package/lib/node/EventEmitter.js +0 -7
- package/lib/node/FacebookUtils.js +0 -7
- package/lib/node/InstallationController.js +0 -7
- package/lib/node/LiveQueryClient.js +0 -10
- package/lib/node/LiveQuerySubscription.js +0 -10
- package/lib/node/LocalDatastore.js +0 -7
- package/lib/node/LocalDatastoreController.js +0 -7
- package/lib/node/LocalDatastoreController.react-native.js +0 -7
- package/lib/node/LocalDatastoreUtils.js +0 -7
- package/lib/node/ObjectStateMutations.js +0 -7
- package/lib/node/OfflineQuery.js +8 -0
- package/lib/node/Parse.js +0 -9
- package/lib/node/ParseACL.js +0 -7
- package/lib/node/ParseCLP.js +0 -7
- package/lib/node/ParseConfig.js +0 -7
- package/lib/node/ParseError.js +0 -9
- package/lib/node/ParseFile.js +0 -7
- package/lib/node/ParseGeoPoint.js +0 -7
- package/lib/node/ParseInstallation.js +0 -7
- package/lib/node/ParseLiveQuery.js +0 -7
- package/lib/node/ParseObject.js +40 -29
- package/lib/node/ParseOp.js +0 -7
- package/lib/node/ParsePolygon.js +0 -7
- package/lib/node/ParseQuery.js +0 -7
- package/lib/node/ParseRelation.js +0 -7
- package/lib/node/ParseRole.js +0 -7
- package/lib/node/ParseSchema.js +0 -7
- package/lib/node/ParseSession.js +0 -7
- package/lib/node/ParseUser.js +0 -7
- package/lib/node/Push.js +0 -7
- package/lib/node/RESTController.js +0 -7
- package/lib/node/SingleInstanceStateController.js +0 -7
- package/lib/node/Storage.js +0 -7
- package/lib/node/StorageController.browser.js +0 -7
- package/lib/node/StorageController.default.js +0 -7
- package/lib/node/StorageController.react-native.js +0 -7
- package/lib/node/StorageController.weapp.js +0 -7
- package/lib/node/TaskQueue.js +0 -7
- package/lib/node/UniqueInstanceStateController.js +0 -7
- package/lib/node/arrayContainsObject.js +0 -7
- package/lib/node/canBeSerialized.js +0 -7
- package/lib/node/decode.js +0 -7
- package/lib/node/encode.js +0 -7
- package/lib/node/equals.js +0 -9
- package/lib/node/escape.js +0 -7
- package/lib/node/isRevocableSession.js +0 -7
- package/lib/node/parseDate.js +0 -7
- package/lib/node/unique.js +0 -7
- package/lib/node/unsavedChildren.js +0 -7
- package/lib/react-native/CoreManager.js +2 -2
- package/lib/react-native/EventuallyQueue.js +169 -676
- package/lib/react-native/LiveQueryClient.js +3 -46
- package/lib/react-native/LocalDatastore.js +303 -863
- package/lib/react-native/LocalDatastoreController.js +75 -535
- package/lib/react-native/LocalDatastoreController.react-native.js +95 -503
- package/lib/react-native/ObjectStateMutations.js +2 -31
- package/lib/react-native/OfflineQuery.js +24 -60
- package/lib/react-native/ParseCLP.js +55 -129
- package/lib/react-native/ParseFile.js +63 -468
- package/lib/react-native/ParseLiveQuery.js +60 -455
- package/lib/react-native/ParseObject.js +263 -897
- package/lib/react-native/ParseQuery.js +207 -643
- package/lib/react-native/ParseSchema.js +3 -3
- package/lib/react-native/ParseUser.js +118 -573
- package/lib/react-native/RESTController.js +1 -29
- package/lib/weapp/Analytics.js +0 -7
- package/lib/weapp/AnonymousUtils.js +0 -7
- package/lib/weapp/Cloud.js +0 -7
- package/lib/weapp/CoreManager.js +1 -8
- package/lib/weapp/EventEmitter.js +0 -7
- package/lib/weapp/FacebookUtils.js +0 -7
- package/lib/weapp/InstallationController.js +0 -7
- package/lib/weapp/LocalDatastoreUtils.js +0 -7
- package/lib/weapp/OfflineQuery.js +27 -8
- package/lib/weapp/Parse.js +0 -9
- package/lib/weapp/ParseACL.js +0 -7
- package/lib/weapp/ParseConfig.js +0 -7
- package/lib/weapp/ParseError.js +0 -9
- package/lib/weapp/ParseGeoPoint.js +0 -7
- package/lib/weapp/ParseObject.js +158 -126
- package/lib/weapp/ParsePolygon.js +0 -7
- package/lib/weapp/ParseRelation.js +0 -7
- package/lib/weapp/ParseSchema.js +0 -7
- package/lib/weapp/Push.js +0 -7
- package/lib/weapp/RESTController.js +0 -7
- package/lib/weapp/SingleInstanceStateController.js +0 -7
- package/lib/weapp/Storage.js +0 -7
- package/lib/weapp/StorageController.browser.js +0 -7
- package/lib/weapp/StorageController.default.js +0 -7
- package/lib/weapp/StorageController.react-native.js +0 -7
- package/lib/weapp/StorageController.weapp.js +0 -7
- package/lib/weapp/TaskQueue.js +0 -7
- package/lib/weapp/UniqueInstanceStateController.js +0 -7
- package/lib/weapp/arrayContainsObject.js +0 -7
- package/lib/weapp/canBeSerialized.js +0 -7
- package/lib/weapp/decode.js +0 -7
- package/lib/weapp/encode.js +0 -7
- package/lib/weapp/equals.js +0 -9
- package/lib/weapp/escape.js +0 -7
- package/lib/weapp/isRevocableSession.js +0 -7
- package/lib/weapp/parseDate.js +0 -7
- package/lib/weapp/unique.js +0 -7
- package/lib/weapp/unsavedChildren.js +0 -7
- package/package.json +9 -9
- package/PATENTS +0 -37
package/lib/browser/Analytics.js
CHANGED
|
@@ -12,13 +12,6 @@ exports.track = track;
|
|
|
12
12
|
|
|
13
13
|
var _CoreManager = _interopRequireDefault(require("./CoreManager"));
|
|
14
14
|
/**
|
|
15
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
16
|
-
* All rights reserved.
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the BSD-style license found in the
|
|
19
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
20
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
21
|
-
*
|
|
22
15
|
* @flow
|
|
23
16
|
*/
|
|
24
17
|
|
|
@@ -12,13 +12,6 @@ exports.default = void 0;
|
|
|
12
12
|
|
|
13
13
|
var _ParseUser = _interopRequireDefault(require("./ParseUser"));
|
|
14
14
|
/**
|
|
15
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
16
|
-
* All rights reserved.
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the BSD-style license found in the
|
|
19
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
20
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
21
|
-
*
|
|
22
15
|
* @flow-weak
|
|
23
16
|
*/
|
|
24
17
|
|
package/lib/browser/Cloud.js
CHANGED
|
@@ -31,13 +31,6 @@ var _ParseQuery = _interopRequireDefault(require("./ParseQuery"));
|
|
|
31
31
|
|
|
32
32
|
var _ParseObject = _interopRequireDefault(require("./ParseObject"));
|
|
33
33
|
/**
|
|
34
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
35
|
-
* All rights reserved.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the BSD-style license found in the
|
|
38
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
39
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
40
|
-
*
|
|
41
34
|
* @flow
|
|
42
35
|
*/
|
|
43
36
|
|
|
@@ -6,13 +6,6 @@ var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-sta
|
|
|
6
6
|
|
|
7
7
|
var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
|
|
8
8
|
/*
|
|
9
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
10
|
-
* All rights reserved.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the BSD-style license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
14
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
15
|
-
*
|
|
16
9
|
* @flow
|
|
17
10
|
*/
|
|
18
11
|
|
|
@@ -224,7 +217,7 @@ var config
|
|
|
224
217
|
SERVER_AUTH_TOKEN: null,
|
|
225
218
|
LIVEQUERY_SERVER_URL: null,
|
|
226
219
|
ENCRYPTED_KEY: null,
|
|
227
|
-
VERSION: 'js' + "4.0.
|
|
220
|
+
VERSION: 'js' + "4.0.1-beta.1",
|
|
228
221
|
APPLICATION_ID: null,
|
|
229
222
|
JAVASCRIPT_KEY: null,
|
|
230
223
|
MASTER_KEY: null,
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the BSD-style license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
8
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
9
|
-
*
|
|
10
3
|
* This is a simple wrapper to unify EventEmitter implementations across platforms.
|
|
11
4
|
*/
|
|
12
5
|
|
|
@@ -12,13 +12,6 @@ exports.default = void 0;
|
|
|
12
12
|
|
|
13
13
|
var _ParseUser = _interopRequireDefault(require("./ParseUser"));
|
|
14
14
|
/**
|
|
15
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
16
|
-
* All rights reserved.
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the BSD-style license found in the
|
|
19
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
20
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
21
|
-
*
|
|
22
15
|
* @flow-weak
|
|
23
16
|
*/
|
|
24
17
|
|
|
@@ -6,13 +6,6 @@ var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-st
|
|
|
6
6
|
|
|
7
7
|
var _Storage = _interopRequireDefault(require("./Storage"));
|
|
8
8
|
/**
|
|
9
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
10
|
-
* All rights reserved.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the BSD-style license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
14
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
15
|
-
*
|
|
16
9
|
* @flow
|
|
17
10
|
*/
|
|
18
11
|
|
|
@@ -13,13 +13,6 @@ exports.isLocalDatastoreKey = isLocalDatastoreKey;
|
|
|
13
13
|
|
|
14
14
|
var _startsWith = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/starts-with"));
|
|
15
15
|
/**
|
|
16
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
17
|
-
* All rights reserved.
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the BSD-style license found in the
|
|
20
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
21
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
22
|
-
*
|
|
23
16
|
* @flow
|
|
24
17
|
* @private
|
|
25
18
|
*/
|
|
@@ -30,10 +30,10 @@ var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stab
|
|
|
30
30
|
|
|
31
31
|
var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
|
|
32
32
|
|
|
33
|
-
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
|
|
34
|
-
|
|
35
33
|
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
|
|
36
34
|
|
|
35
|
+
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
|
|
36
|
+
|
|
37
37
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
38
38
|
var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"];
|
|
39
39
|
|
|
@@ -150,6 +150,25 @@ function contains(haystack, needle) {
|
|
|
150
150
|
return false;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
if ((0, _isArray.default)(needle)) {
|
|
154
|
+
var _iterator = _createForOfIteratorHelper(needle),
|
|
155
|
+
_step;
|
|
156
|
+
|
|
157
|
+
try {
|
|
158
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
159
|
+
var need = _step.value;
|
|
160
|
+
|
|
161
|
+
if (contains(haystack, need)) {
|
|
162
|
+
return true;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
} catch (err) {
|
|
166
|
+
_iterator.e(err);
|
|
167
|
+
} finally {
|
|
168
|
+
_iterator.f();
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
153
172
|
return (0, _indexOf.default)(haystack).call(haystack, needle) > -1;
|
|
154
173
|
}
|
|
155
174
|
|
|
@@ -707,21 +726,21 @@ function matchesKeyConstraints(className, object, objects, key, constraints) {
|
|
|
707
726
|
|
|
708
727
|
case '$containedBy':
|
|
709
728
|
{
|
|
710
|
-
var
|
|
711
|
-
|
|
729
|
+
var _iterator2 = _createForOfIteratorHelper(object[key]),
|
|
730
|
+
_step2;
|
|
712
731
|
|
|
713
732
|
try {
|
|
714
|
-
for (
|
|
715
|
-
var value =
|
|
733
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
734
|
+
var value = _step2.value;
|
|
716
735
|
|
|
717
736
|
if (!contains(compareTo, value)) {
|
|
718
737
|
return false;
|
|
719
738
|
}
|
|
720
739
|
}
|
|
721
740
|
} catch (err) {
|
|
722
|
-
|
|
741
|
+
_iterator2.e(err);
|
|
723
742
|
} finally {
|
|
724
|
-
|
|
743
|
+
_iterator2.f();
|
|
725
744
|
}
|
|
726
745
|
|
|
727
746
|
return true;
|
package/lib/browser/Parse.js
CHANGED
|
@@ -76,15 +76,6 @@ function _interopRequireWildcard(obj, nodeInterop) {
|
|
|
76
76
|
|
|
77
77
|
return newObj;
|
|
78
78
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
81
|
-
* All rights reserved.
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the BSD-style license found in the
|
|
84
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
85
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
86
|
-
*/
|
|
87
|
-
|
|
88
79
|
/**
|
|
89
80
|
* Contains all Parse API classes and functions.
|
|
90
81
|
*
|
package/lib/browser/ParseACL.js
CHANGED
|
@@ -24,13 +24,6 @@ var _ParseRole = _interopRequireDefault(require("./ParseRole"));
|
|
|
24
24
|
|
|
25
25
|
var _ParseUser = _interopRequireDefault(require("./ParseUser"));
|
|
26
26
|
/**
|
|
27
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
28
|
-
* All rights reserved.
|
|
29
|
-
*
|
|
30
|
-
* This source code is licensed under the BSD-style license found in the
|
|
31
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
32
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
33
|
-
*
|
|
34
27
|
* @flow
|
|
35
28
|
*/
|
|
36
29
|
|
|
@@ -34,13 +34,6 @@ var _ParseError = _interopRequireDefault(require("./ParseError"));
|
|
|
34
34
|
|
|
35
35
|
var _Storage = _interopRequireDefault(require("./Storage"));
|
|
36
36
|
/**
|
|
37
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
38
|
-
* All rights reserved.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the BSD-style license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
42
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
43
|
-
*
|
|
44
37
|
* @flow
|
|
45
38
|
*/
|
|
46
39
|
|
|
@@ -58,15 +58,6 @@ function _isNativeReflectConstruct() {
|
|
|
58
58
|
return false;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
/**
|
|
62
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
63
|
-
* All rights reserved.
|
|
64
|
-
*
|
|
65
|
-
* This source code is licensed under the BSD-style license found in the
|
|
66
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
67
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
61
|
/**
|
|
71
62
|
* Constructs a new Parse.Error object with the given code and message.
|
|
72
63
|
*
|
|
@@ -20,13 +20,6 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpe
|
|
|
20
20
|
|
|
21
21
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
22
22
|
/**
|
|
23
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
24
|
-
* All rights reserved.
|
|
25
|
-
*
|
|
26
|
-
* This source code is licensed under the BSD-style license found in the
|
|
27
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
28
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
29
|
-
*
|
|
30
23
|
* @flow
|
|
31
24
|
*/
|
|
32
25
|
|