parse 4.0.0-beta.1 → 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.
Files changed (154) hide show
  1. package/LICENSE +167 -25
  2. package/NOTICE +10 -0
  3. package/README.md +1 -3
  4. package/dist/parse.js +188 -374
  5. package/dist/parse.min.js +7 -6
  6. package/dist/parse.weapp.js +188 -374
  7. package/dist/parse.weapp.min.js +7 -6
  8. package/lib/browser/Analytics.js +0 -7
  9. package/lib/browser/AnonymousUtils.js +0 -7
  10. package/lib/browser/Cloud.js +0 -7
  11. package/lib/browser/CoreManager.js +1 -8
  12. package/lib/browser/EventEmitter.js +0 -7
  13. package/lib/browser/FacebookUtils.js +0 -7
  14. package/lib/browser/InstallationController.js +0 -7
  15. package/lib/browser/LocalDatastoreUtils.js +0 -7
  16. package/lib/browser/OfflineQuery.js +27 -8
  17. package/lib/browser/Parse.js +0 -9
  18. package/lib/browser/ParseACL.js +0 -7
  19. package/lib/browser/ParseConfig.js +0 -7
  20. package/lib/browser/ParseError.js +0 -9
  21. package/lib/browser/ParseGeoPoint.js +0 -7
  22. package/lib/browser/ParseObject.js +158 -126
  23. package/lib/browser/ParsePolygon.js +0 -7
  24. package/lib/browser/ParseRelation.js +0 -7
  25. package/lib/browser/ParseSchema.js +0 -7
  26. package/lib/browser/Push.js +0 -7
  27. package/lib/browser/RESTController.js +0 -7
  28. package/lib/browser/SingleInstanceStateController.js +0 -7
  29. package/lib/browser/Storage.js +0 -7
  30. package/lib/browser/StorageController.browser.js +0 -7
  31. package/lib/browser/StorageController.default.js +0 -7
  32. package/lib/browser/StorageController.react-native.js +0 -7
  33. package/lib/browser/StorageController.weapp.js +0 -7
  34. package/lib/browser/TaskQueue.js +0 -7
  35. package/lib/browser/UniqueInstanceStateController.js +0 -7
  36. package/lib/browser/arrayContainsObject.js +0 -7
  37. package/lib/browser/canBeSerialized.js +0 -7
  38. package/lib/browser/decode.js +0 -7
  39. package/lib/browser/encode.js +0 -7
  40. package/lib/browser/equals.js +0 -9
  41. package/lib/browser/escape.js +0 -7
  42. package/lib/browser/isRevocableSession.js +0 -7
  43. package/lib/browser/parseDate.js +0 -7
  44. package/lib/browser/unique.js +0 -7
  45. package/lib/browser/unsavedChildren.js +0 -7
  46. package/lib/node/Analytics.js +0 -7
  47. package/lib/node/AnonymousUtils.js +0 -7
  48. package/lib/node/Cloud.js +0 -7
  49. package/lib/node/CoreManager.js +1 -8
  50. package/lib/node/EventEmitter.js +0 -7
  51. package/lib/node/FacebookUtils.js +0 -7
  52. package/lib/node/InstallationController.js +0 -7
  53. package/lib/node/LiveQueryClient.js +0 -10
  54. package/lib/node/LiveQuerySubscription.js +0 -10
  55. package/lib/node/LocalDatastore.js +0 -7
  56. package/lib/node/LocalDatastoreController.js +0 -7
  57. package/lib/node/LocalDatastoreController.react-native.js +0 -7
  58. package/lib/node/LocalDatastoreUtils.js +0 -7
  59. package/lib/node/ObjectStateMutations.js +0 -7
  60. package/lib/node/OfflineQuery.js +8 -0
  61. package/lib/node/Parse.js +0 -9
  62. package/lib/node/ParseACL.js +0 -7
  63. package/lib/node/ParseCLP.js +0 -7
  64. package/lib/node/ParseConfig.js +0 -7
  65. package/lib/node/ParseError.js +0 -9
  66. package/lib/node/ParseFile.js +0 -7
  67. package/lib/node/ParseGeoPoint.js +0 -7
  68. package/lib/node/ParseInstallation.js +0 -7
  69. package/lib/node/ParseLiveQuery.js +0 -7
  70. package/lib/node/ParseObject.js +40 -29
  71. package/lib/node/ParseOp.js +0 -7
  72. package/lib/node/ParsePolygon.js +0 -7
  73. package/lib/node/ParseQuery.js +0 -7
  74. package/lib/node/ParseRelation.js +0 -7
  75. package/lib/node/ParseRole.js +0 -7
  76. package/lib/node/ParseSchema.js +0 -7
  77. package/lib/node/ParseSession.js +0 -7
  78. package/lib/node/ParseUser.js +0 -7
  79. package/lib/node/Push.js +0 -7
  80. package/lib/node/RESTController.js +0 -7
  81. package/lib/node/SingleInstanceStateController.js +0 -7
  82. package/lib/node/Storage.js +0 -7
  83. package/lib/node/StorageController.browser.js +0 -7
  84. package/lib/node/StorageController.default.js +0 -7
  85. package/lib/node/StorageController.react-native.js +0 -7
  86. package/lib/node/StorageController.weapp.js +0 -7
  87. package/lib/node/TaskQueue.js +0 -7
  88. package/lib/node/UniqueInstanceStateController.js +0 -7
  89. package/lib/node/arrayContainsObject.js +0 -7
  90. package/lib/node/canBeSerialized.js +0 -7
  91. package/lib/node/decode.js +0 -7
  92. package/lib/node/encode.js +0 -7
  93. package/lib/node/equals.js +0 -9
  94. package/lib/node/escape.js +0 -7
  95. package/lib/node/isRevocableSession.js +0 -7
  96. package/lib/node/parseDate.js +0 -7
  97. package/lib/node/unique.js +0 -7
  98. package/lib/node/unsavedChildren.js +0 -7
  99. package/lib/react-native/CoreManager.js +2 -2
  100. package/lib/react-native/EventuallyQueue.js +169 -676
  101. package/lib/react-native/LiveQueryClient.js +3 -46
  102. package/lib/react-native/LocalDatastore.js +303 -863
  103. package/lib/react-native/LocalDatastoreController.js +75 -535
  104. package/lib/react-native/LocalDatastoreController.react-native.js +95 -503
  105. package/lib/react-native/ObjectStateMutations.js +2 -31
  106. package/lib/react-native/OfflineQuery.js +24 -60
  107. package/lib/react-native/ParseCLP.js +55 -129
  108. package/lib/react-native/ParseFile.js +63 -468
  109. package/lib/react-native/ParseLiveQuery.js +60 -455
  110. package/lib/react-native/ParseObject.js +263 -897
  111. package/lib/react-native/ParseQuery.js +207 -643
  112. package/lib/react-native/ParseSchema.js +3 -3
  113. package/lib/react-native/ParseUser.js +118 -573
  114. package/lib/react-native/RESTController.js +1 -29
  115. package/lib/weapp/Analytics.js +0 -7
  116. package/lib/weapp/AnonymousUtils.js +0 -7
  117. package/lib/weapp/Cloud.js +0 -7
  118. package/lib/weapp/CoreManager.js +1 -8
  119. package/lib/weapp/EventEmitter.js +0 -7
  120. package/lib/weapp/FacebookUtils.js +0 -7
  121. package/lib/weapp/InstallationController.js +0 -7
  122. package/lib/weapp/LocalDatastoreUtils.js +0 -7
  123. package/lib/weapp/OfflineQuery.js +27 -8
  124. package/lib/weapp/Parse.js +0 -9
  125. package/lib/weapp/ParseACL.js +0 -7
  126. package/lib/weapp/ParseConfig.js +0 -7
  127. package/lib/weapp/ParseError.js +0 -9
  128. package/lib/weapp/ParseGeoPoint.js +0 -7
  129. package/lib/weapp/ParseObject.js +158 -126
  130. package/lib/weapp/ParsePolygon.js +0 -7
  131. package/lib/weapp/ParseRelation.js +0 -7
  132. package/lib/weapp/ParseSchema.js +0 -7
  133. package/lib/weapp/Push.js +0 -7
  134. package/lib/weapp/RESTController.js +0 -7
  135. package/lib/weapp/SingleInstanceStateController.js +0 -7
  136. package/lib/weapp/Storage.js +0 -7
  137. package/lib/weapp/StorageController.browser.js +0 -7
  138. package/lib/weapp/StorageController.default.js +0 -7
  139. package/lib/weapp/StorageController.react-native.js +0 -7
  140. package/lib/weapp/StorageController.weapp.js +0 -7
  141. package/lib/weapp/TaskQueue.js +0 -7
  142. package/lib/weapp/UniqueInstanceStateController.js +0 -7
  143. package/lib/weapp/arrayContainsObject.js +0 -7
  144. package/lib/weapp/canBeSerialized.js +0 -7
  145. package/lib/weapp/decode.js +0 -7
  146. package/lib/weapp/encode.js +0 -7
  147. package/lib/weapp/equals.js +0 -9
  148. package/lib/weapp/escape.js +0 -7
  149. package/lib/weapp/isRevocableSession.js +0 -7
  150. package/lib/weapp/parseDate.js +0 -7
  151. package/lib/weapp/unique.js +0 -7
  152. package/lib/weapp/unsavedChildren.js +0 -7
  153. package/package.json +9 -9
  154. package/PATENTS +0 -37
@@ -81,13 +81,6 @@ function _interopRequireWildcard(obj, nodeInterop) {
81
81
  return newObj;
82
82
  }
83
83
  /**
84
- * Copyright (c) 2015-present, Parse, LLC.
85
- * All rights reserved.
86
- *
87
- * This source code is licensed under the BSD-style license found in the
88
- * LICENSE file in the root directory of this source tree. An additional grant
89
- * of patent rights can be found in the PATENTS file in the same directory.
90
- *
91
84
  * @flow
92
85
  */
93
86
 
@@ -6,13 +6,6 @@ var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-st
6
6
 
7
7
  var _CoreManager = _interopRequireDefault(require("./CoreManager"));
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
 
@@ -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
  * @flow
11
4
  * @private
12
5
  */
@@ -4,13 +4,6 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
4
4
 
5
5
  var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/keys"));
6
6
  /**
7
- * Copyright (c) 2015-present, Parse, LLC.
8
- * All rights reserved.
9
- *
10
- * This source code is licensed under the BSD-style license found in the
11
- * LICENSE file in the root directory of this source tree. An additional grant
12
- * of patent rights can be found in the PATENTS file in the same directory.
13
- *
14
7
  * @flow
15
8
  * @private
16
9
  */
@@ -6,13 +6,6 @@ var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-st
6
6
 
7
7
  var _CoreManager = _interopRequireDefault(require("./CoreManager"));
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
  * @private
18
11
  */
@@ -4,13 +4,6 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
4
4
 
5
5
  var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/keys"));
6
6
  /**
7
- * Copyright (c) 2015-present, Parse, LLC.
8
- * All rights reserved.
9
- *
10
- * This source code is licensed under the BSD-style license found in the
11
- * LICENSE file in the root directory of this source tree. An additional grant
12
- * of patent rights can be found in the PATENTS file in the same directory.
13
- *
14
7
  * @flow
15
8
  * @private
16
9
  */
@@ -10,13 +10,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/he
10
10
 
11
11
  var _promiseUtils = require("./promiseUtils");
12
12
  /**
13
- * Copyright (c) 2015-present, Parse, LLC.
14
- * All rights reserved.
15
- *
16
- * This source code is licensed under the BSD-style license found in the
17
- * LICENSE file in the root directory of this source tree. An additional grant
18
- * of patent rights can be found in the PATENTS file in the same directory.
19
- *
20
13
  * @flow
21
14
  */
22
15
 
@@ -87,13 +87,6 @@ function _interopRequireWildcard(obj, nodeInterop) {
87
87
  return newObj;
88
88
  }
89
89
  /**
90
- * Copyright (c) 2015-present, Parse, LLC.
91
- * All rights reserved.
92
- *
93
- * This source code is licensed under the BSD-style license found in the
94
- * LICENSE file in the root directory of this source tree. An additional grant
95
- * of patent rights can be found in the PATENTS file in the same directory.
96
- *
97
90
  * @flow
98
91
  */
99
92
 
@@ -14,13 +14,6 @@ var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-st
14
14
 
15
15
  var _ParseObject = _interopRequireDefault(require("./ParseObject"));
16
16
  /**
17
- * Copyright (c) 2015-present, Parse, LLC.
18
- * All rights reserved.
19
- *
20
- * This source code is licensed under the BSD-style license found in the
21
- * LICENSE file in the root directory of this source tree. An additional grant
22
- * of patent rights can be found in the PATENTS file in the same directory.
23
- *
24
17
  * @flow
25
18
  */
26
19
 
@@ -20,13 +20,6 @@ var _ParseObject = _interopRequireDefault(require("./ParseObject"));
20
20
 
21
21
  var _ParseRelation = _interopRequireDefault(require("./ParseRelation"));
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
 
@@ -30,13 +30,6 @@ var _ParseOp = require("./ParseOp");
30
30
 
31
31
  var _ParseRelation = _interopRequireDefault(require("./ParseRelation"));
32
32
  /**
33
- * Copyright (c) 2015-present, Parse, LLC.
34
- * All rights reserved.
35
- *
36
- * This source code is licensed under the BSD-style license found in the
37
- * LICENSE file in the root directory of this source tree. An additional grant
38
- * of patent rights can be found in the PATENTS file in the same directory.
39
- *
40
33
  * @flow
41
34
  */
42
35
  // eslint-disable-line no-unused-vars
@@ -38,13 +38,6 @@ var _ParseOp = require("./ParseOp");
38
38
 
39
39
  var _ParseRelation = _interopRequireDefault(require("./ParseRelation"));
40
40
  /**
41
- * Copyright (c) 2015-present, Parse, LLC.
42
- * All rights reserved.
43
- *
44
- * This source code is licensed under the BSD-style license found in the
45
- * LICENSE file in the root directory of this source tree. An additional grant
46
- * of patent rights can be found in the PATENTS file in the same directory.
47
- *
48
41
  * @flow
49
42
  */
50
43
 
@@ -23,15 +23,6 @@ var _ParseFile = _interopRequireDefault(require("./ParseFile"));
23
23
  var _ParseGeoPoint = _interopRequireDefault(require("./ParseGeoPoint"));
24
24
 
25
25
  var _ParseObject = _interopRequireDefault(require("./ParseObject"));
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
-
35
26
 
36
27
  function equals(a, b) {
37
28
  var toString = Object.prototype.toString;
@@ -8,13 +8,6 @@ _Object$defineProperty(exports, "__esModule", {
8
8
 
9
9
  exports.default = escape;
10
10
  /*
11
- * Copyright (c) 2015-present, Parse, LLC.
12
- * All rights reserved.
13
- *
14
- * This source code is licensed under the BSD-style license found in the
15
- * LICENSE file in the root directory of this source tree. An additional grant
16
- * of patent rights can be found in the PATENTS file in the same directory.
17
- *
18
11
  * @flow
19
12
  */
20
13
 
@@ -12,13 +12,6 @@ exports.default = isRevocableSession;
12
12
 
13
13
  var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
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 = parseDate;
12
12
 
13
13
  var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/parse-int"));
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
 
@@ -18,13 +18,6 @@ var _arrayContainsObject = _interopRequireDefault(require("./arrayContainsObject
18
18
 
19
19
  var _ParseObject = _interopRequireDefault(require("./ParseObject"));
20
20
  /**
21
- * Copyright (c) 2015-present, Parse, LLC.
22
- * All rights reserved.
23
- *
24
- * This source code is licensed under the BSD-style license found in the
25
- * LICENSE file in the root directory of this source tree. An additional grant
26
- * of patent rights can be found in the PATENTS file in the same directory.
27
- *
28
21
  * @flow
29
22
  */
30
23
 
@@ -26,13 +26,6 @@ var _ParseObject = _interopRequireDefault(require("./ParseObject"));
26
26
 
27
27
  var _ParseRelation = _interopRequireDefault(require("./ParseRelation"));
28
28
  /**
29
- * Copyright (c) 2015-present, Parse, LLC.
30
- * All rights reserved.
31
- *
32
- * This source code is licensed under the BSD-style license found in the
33
- * LICENSE file in the root directory of this source tree. An additional grant
34
- * of patent rights can be found in the PATENTS file in the same directory.
35
- *
36
29
  * @flow
37
30
  */
38
31
 
@@ -13,13 +13,6 @@ function _interopRequireDefault(obj) {
13
13
  };
14
14
  }
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
  */
25
18
 
@@ -13,13 +13,6 @@ function _interopRequireDefault(obj) {
13
13
  };
14
14
  }
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-weak
24
17
  */
25
18
 
package/lib/node/Cloud.js CHANGED
@@ -26,13 +26,6 @@ function _interopRequireDefault(obj) {
26
26
  };
27
27
  }
28
28
  /**
29
- * Copyright (c) 2015-present, Parse, LLC.
30
- * All rights reserved.
31
- *
32
- * This source code is licensed under the BSD-style license found in the
33
- * LICENSE file in the root directory of this source tree. An additional grant
34
- * of patent rights can be found in the PATENTS file in the same directory.
35
- *
36
29
  * @flow
37
30
  */
38
31
 
@@ -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
  * @flow
11
4
  */
12
5
 
@@ -217,7 +210,7 @@ const config
217
210
  SERVER_AUTH_TOKEN: null,
218
211
  LIVEQUERY_SERVER_URL: null,
219
212
  ENCRYPTED_KEY: null,
220
- VERSION: 'js' + "4.0.0-beta.1",
213
+ VERSION: 'js' + "4.0.1-beta.1",
221
214
  APPLICATION_ID: null,
222
215
  JAVASCRIPT_KEY: null,
223
216
  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
 
@@ -13,13 +13,6 @@ function _interopRequireDefault(obj) {
13
13
  };
14
14
  }
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-weak
24
17
  */
25
18
 
@@ -8,13 +8,6 @@ function _interopRequireDefault(obj) {
8
8
  };
9
9
  }
10
10
  /**
11
- * Copyright (c) 2015-present, Parse, LLC.
12
- * All rights reserved.
13
- *
14
- * This source code is licensed under the BSD-style license found in the
15
- * LICENSE file in the root directory of this source tree. An additional grant
16
- * of patent rights can be found in the PATENTS file in the same directory.
17
- *
18
11
  * @flow
19
12
  */
20
13
 
@@ -22,16 +22,6 @@ function _interopRequireDefault(obj) {
22
22
  default: obj
23
23
  };
24
24
  }
25
- /**
26
- * Copyright (c) 2015-present, Parse, LLC.
27
- * All rights reserved.
28
- *
29
- * This source code is licensed under the BSD-style license found in the
30
- * LICENSE file in the root directory of this source tree. An additional grant
31
- * of patent rights can be found in the PATENTS file in the same directory.
32
- *
33
- */
34
-
35
25
  /* global WebSocket */
36
26
  // The LiveQuery client inner state
37
27
 
@@ -16,16 +16,6 @@ function _interopRequireDefault(obj) {
16
16
  default: obj
17
17
  };
18
18
  }
19
- /*
20
- * Copyright (c) 2015-present, Parse, LLC.
21
- * All rights reserved.
22
- *
23
- * This source code is licensed under the BSD-style license found in the
24
- * LICENSE file in the root directory of this source tree. An additional grant
25
- * of patent rights can be found in the PATENTS file in the same directory.
26
- *
27
- */
28
-
29
19
  /**
30
20
  * Creates a new LiveQuery Subscription.
31
21
  * Extends events.EventEmitter
@@ -12,13 +12,6 @@ function _interopRequireDefault(obj) {
12
12
  };
13
13
  }
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
 
@@ -10,13 +10,6 @@ function _interopRequireDefault(obj) {
10
10
  };
11
11
  }
12
12
  /**
13
- * Copyright (c) 2015-present, Parse, LLC.
14
- * All rights reserved.
15
- *
16
- * This source code is licensed under the BSD-style license found in the
17
- * LICENSE file in the root directory of this source tree. An additional grant
18
- * of patent rights can be found in the PATENTS file in the same directory.
19
- *
20
13
  * @flow
21
14
  */
22
15
 
@@ -2,13 +2,6 @@
2
2
 
3
3
  var _LocalDatastoreUtils = require("./LocalDatastoreUtils");
4
4
  /**
5
- * Copyright (c) 2015-present, Parse, LLC.
6
- * All rights reserved.
7
- *
8
- * This source code is licensed under the BSD-style license found in the
9
- * LICENSE file in the root directory of this source tree. An additional grant
10
- * of patent rights can be found in the PATENTS file in the same directory.
11
- *
12
5
  * @flow
13
6
  * @private
14
7
  */
@@ -6,13 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.PIN_PREFIX = exports.OBJECT_PREFIX = exports.DEFAULT_PIN = void 0;
7
7
  exports.isLocalDatastoreKey = isLocalDatastoreKey;
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
  * @private
18
11
  */
@@ -31,13 +31,6 @@ function _interopRequireDefault(obj) {
31
31
  };
32
32
  }
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
 
@@ -36,6 +36,14 @@ function contains(haystack, needle) {
36
36
  return false;
37
37
  }
38
38
 
39
+ if (Array.isArray(needle)) {
40
+ for (const need of needle) {
41
+ if (contains(haystack, need)) {
42
+ return true;
43
+ }
44
+ }
45
+ }
46
+
39
47
  return haystack.indexOf(needle) > -1;
40
48
  }
41
49
 
package/lib/node/Parse.js CHANGED
@@ -71,15 +71,6 @@ function _interopRequireDefault(obj) {
71
71
  default: obj
72
72
  };
73
73
  }
74
- /**
75
- * Copyright (c) 2015-present, Parse, LLC.
76
- * All rights reserved.
77
- *
78
- * This source code is licensed under the BSD-style license found in the
79
- * LICENSE file in the root directory of this source tree. An additional grant
80
- * of patent rights can be found in the PATENTS file in the same directory.
81
- */
82
-
83
74
  /**
84
75
  * Contains all Parse API classes and functions.
85
76
  *
@@ -15,13 +15,6 @@ function _interopRequireDefault(obj) {
15
15
  };
16
16
  }
17
17
  /**
18
- * Copyright (c) 2015-present, Parse, LLC.
19
- * All rights reserved.
20
- *
21
- * This source code is licensed under the BSD-style license found in the
22
- * LICENSE file in the root directory of this source tree. An additional grant
23
- * of patent rights can be found in the PATENTS file in the same directory.
24
- *
25
18
  * @flow
26
19
  */
27
20
 
@@ -15,13 +15,6 @@ function _interopRequireDefault(obj) {
15
15
  };
16
16
  }
17
17
  /**
18
- * Copyright (c) 2015-present, Parse, LLC.
19
- * All rights reserved.
20
- *
21
- * This source code is licensed under the BSD-style license found in the
22
- * LICENSE file in the root directory of this source tree. An additional grant
23
- * of patent rights can be found in the PATENTS file in the same directory.
24
- *
25
18
  * @flow
26
19
  */
27
20
 
@@ -23,13 +23,6 @@ function _interopRequireDefault(obj) {
23
23
  };
24
24
  }
25
25
  /**
26
- * Copyright (c) 2015-present, Parse, LLC.
27
- * All rights reserved.
28
- *
29
- * This source code is licensed under the BSD-style license found in the
30
- * LICENSE file in the root directory of this source tree. An additional grant
31
- * of patent rights can be found in the PATENTS file in the same directory.
32
- *
33
26
  * @flow
34
27
  */
35
28
 
@@ -4,15 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- /**
8
- * Copyright (c) 2015-present, Parse, LLC.
9
- * All rights reserved.
10
- *
11
- * This source code is licensed under the BSD-style license found in the
12
- * LICENSE file in the root directory of this source tree. An additional grant
13
- * of patent rights can be found in the PATENTS file in the same directory.
14
- */
15
-
16
7
  /**
17
8
  * Constructs a new Parse.Error object with the given code and message.
18
9
  *
@@ -13,13 +13,6 @@ function _interopRequireDefault(obj) {
13
13
  };
14
14
  }
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
  */
25
18
 
@@ -5,13 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  /**
8
- * Copyright (c) 2015-present, Parse, LLC.
9
- * All rights reserved.
10
- *
11
- * This source code is licensed under the BSD-style license found in the
12
- * LICENSE file in the root directory of this source tree. An additional grant
13
- * of patent rights can be found in the PATENTS file in the same directory.
14
- *
15
8
  * @flow
16
9
  */
17
10
 
@@ -13,13 +13,6 @@ function _interopRequireDefault(obj) {
13
13
  };
14
14
  }
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
  */
25
18
 
@@ -17,13 +17,6 @@ function _interopRequireDefault(obj) {
17
17
  };
18
18
  }
19
19
  /**
20
- * Copyright (c) 2015-present, Parse, LLC.
21
- * All rights reserved.
22
- *
23
- * This source code is licensed under the BSD-style license found in the
24
- * LICENSE file in the root directory of this source tree. An additional grant
25
- * of patent rights can be found in the PATENTS file in the same directory.
26
- *
27
20
  * @flow
28
21
  */
29
22