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
@@ -99,13 +99,6 @@ function _interopRequireDefault(obj) {
99
99
  };
100
100
  }
101
101
  /**
102
- * Copyright (c) 2015-present, Parse, LLC.
103
- * All rights reserved.
104
- *
105
- * This source code is licensed under the BSD-style license found in the
106
- * LICENSE file in the root directory of this source tree. An additional grant
107
- * of patent rights can be found in the PATENTS file in the same directory.
108
- *
109
102
  * @flow
110
103
  */
111
104
 
@@ -2522,11 +2515,9 @@ class ParseObject {
2522
2515
 
2523
2516
  if (this.hasOwnProperty('__super__') && this.__super__) {
2524
2517
  parentProto = this.prototype;
2525
- } else if (classMap[adjustedClassName]) {
2526
- parentProto = classMap[adjustedClassName].prototype;
2527
2518
  }
2528
2519
 
2529
- const ParseObjectSubclass = function (attributes, options) {
2520
+ let ParseObjectSubclass = function (attributes, options) {
2530
2521
  this.className = adjustedClassName;
2531
2522
  this._objCount = objectCount++; // Enable legacy initializers
2532
2523
 
@@ -2534,6 +2525,12 @@ class ParseObject {
2534
2525
  this.initialize.apply(this, arguments);
2535
2526
  }
2536
2527
 
2528
+ if (this._initializers) {
2529
+ for (const initializer of this._initializers) {
2530
+ initializer.apply(this, arguments);
2531
+ }
2532
+ }
2533
+
2537
2534
  if (attributes && typeof attributes === 'object') {
2538
2535
  if (!this.set(attributes || {}, options)) {
2539
2536
  throw new Error("Can't create an invalid Parse Object");
@@ -2541,19 +2538,42 @@ class ParseObject {
2541
2538
  }
2542
2539
  };
2543
2540
 
2544
- ParseObjectSubclass.className = adjustedClassName;
2545
- ParseObjectSubclass.__super__ = parentProto;
2546
- ParseObjectSubclass.prototype = Object.create(parentProto, {
2547
- constructor: {
2548
- value: ParseObjectSubclass,
2549
- enumerable: false,
2550
- writable: true,
2551
- configurable: true
2552
- }
2553
- });
2541
+ if (classMap[adjustedClassName]) {
2542
+ ParseObjectSubclass = classMap[adjustedClassName];
2543
+ } else {
2544
+ ParseObjectSubclass.extend = function (name, protoProps, classProps) {
2545
+ if (typeof name === 'string') {
2546
+ return ParseObject.extend.call(ParseObjectSubclass, name, protoProps, classProps);
2547
+ }
2548
+
2549
+ return ParseObject.extend.call(ParseObjectSubclass, adjustedClassName, name, protoProps);
2550
+ };
2551
+
2552
+ ParseObjectSubclass.createWithoutData = ParseObject.createWithoutData;
2553
+ ParseObjectSubclass.className = adjustedClassName;
2554
+ ParseObjectSubclass.__super__ = parentProto;
2555
+ ParseObjectSubclass.prototype = Object.create(parentProto, {
2556
+ constructor: {
2557
+ value: ParseObjectSubclass,
2558
+ enumerable: false,
2559
+ writable: true,
2560
+ configurable: true
2561
+ }
2562
+ });
2563
+ }
2554
2564
 
2555
2565
  if (protoProps) {
2556
2566
  for (const prop in protoProps) {
2567
+ if (prop === 'initialize') {
2568
+ Object.defineProperty(ParseObjectSubclass.prototype, '_initializers', {
2569
+ value: [...(ParseObjectSubclass.prototype._initializers || []), protoProps[prop]],
2570
+ enumerable: false,
2571
+ writable: true,
2572
+ configurable: true
2573
+ });
2574
+ continue;
2575
+ }
2576
+
2557
2577
  if (prop !== 'className') {
2558
2578
  Object.defineProperty(ParseObjectSubclass.prototype, prop, {
2559
2579
  value: protoProps[prop],
@@ -2578,15 +2598,6 @@ class ParseObject {
2578
2598
  }
2579
2599
  }
2580
2600
 
2581
- ParseObjectSubclass.extend = function (name, protoProps, classProps) {
2582
- if (typeof name === 'string') {
2583
- return ParseObject.extend.call(ParseObjectSubclass, name, protoProps, classProps);
2584
- }
2585
-
2586
- return ParseObject.extend.call(ParseObjectSubclass, adjustedClassName, name, protoProps);
2587
- };
2588
-
2589
- ParseObjectSubclass.createWithoutData = ParseObject.createWithoutData;
2590
2601
  classMap[adjustedClassName] = ParseObjectSubclass;
2591
2602
  return ParseObjectSubclass;
2592
2603
  }
@@ -24,13 +24,6 @@ function _interopRequireDefault(obj) {
24
24
  };
25
25
  }
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
 
@@ -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
 
@@ -27,13 +27,6 @@ function _interopRequireDefault(obj) {
27
27
  };
28
28
  }
29
29
  /*
30
- * Copyright (c) 2015-present, Parse, LLC.
31
- * All rights reserved.
32
- *
33
- * This source code is licensed under the BSD-style license found in the
34
- * LICENSE file in the root directory of this source tree. An additional grant
35
- * of patent rights can be found in the PATENTS file in the same directory.
36
- *
37
30
  * @flow
38
31
  */
39
32
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -19,13 +19,6 @@ function _interopRequireDefault(obj) {
19
19
  };
20
20
  }
21
21
  /**
22
- * Copyright (c) 2015-present, Parse, LLC.
23
- * All rights reserved.
24
- *
25
- * This source code is licensed under the BSD-style license found in the
26
- * LICENSE file in the root directory of this source tree. An additional grant
27
- * of patent rights can be found in the PATENTS file in the same directory.
28
- *
29
22
  * @flow
30
23
  */
31
24
 
@@ -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
 
package/lib/node/Push.js CHANGED
@@ -16,13 +16,6 @@ function _interopRequireDefault(obj) {
16
16
  };
17
17
  }
18
18
  /**
19
- * Copyright (c) 2015-present, Parse, LLC.
20
- * All rights reserved.
21
- *
22
- * This source code is licensed under the BSD-style license found in the
23
- * LICENSE file in the root directory of this source tree. An additional grant
24
- * of patent rights can be found in the PATENTS file in the same directory.
25
- *
26
19
  * @flow
27
20
  */
28
21
 
@@ -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
 
@@ -73,13 +73,6 @@ function _interopRequireWildcard(obj, nodeInterop) {
73
73
  return newObj;
74
74
  }
75
75
  /**
76
- * Copyright (c) 2015-present, Parse, LLC.
77
- * All rights reserved.
78
- *
79
- * This source code is licensed under the BSD-style license found in the
80
- * LICENSE file in the root directory of this source tree. An additional grant
81
- * of patent rights can be found in the PATENTS file in the same directory.
82
- *
83
76
  * @flow
84
77
  */
85
78
 
@@ -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
 
@@ -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
  */
@@ -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
  */
@@ -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
  * @private
20
13
  */
@@ -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
  */
@@ -2,13 +2,6 @@
2
2
 
3
3
  var _promiseUtils = require("./promiseUtils");
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
  */
14
7
 
@@ -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
 
@@ -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
 
@@ -25,13 +25,6 @@ function _interopRequireDefault(obj) {
25
25
  };
26
26
  }
27
27
  /**
28
- * Copyright (c) 2015-present, Parse, LLC.
29
- * All rights reserved.
30
- *
31
- * This source code is licensed under the BSD-style license found in the
32
- * LICENSE file in the root directory of this source tree. An additional grant
33
- * of patent rights can be found in the PATENTS file in the same directory.
34
- *
35
28
  * @flow
36
29
  */
37
30
  // eslint-disable-line no-unused-vars
@@ -25,13 +25,6 @@ function _interopRequireDefault(obj) {
25
25
  };
26
26
  }
27
27
  /**
28
- * Copyright (c) 2015-present, Parse, LLC.
29
- * All rights reserved.
30
- *
31
- * This source code is licensed under the BSD-style license found in the
32
- * LICENSE file in the root directory of this source tree. An additional grant
33
- * of patent rights can be found in the PATENTS file in the same directory.
34
- *
35
28
  * @flow
36
29
  */
37
30
 
@@ -18,15 +18,6 @@ function _interopRequireDefault(obj) {
18
18
  default: obj
19
19
  };
20
20
  }
21
- /**
22
- * Copyright (c) 2015-present, Parse, LLC.
23
- * All rights reserved.
24
- *
25
- * This source code is licensed under the BSD-style license found in the
26
- * LICENSE file in the root directory of this source tree. An additional grant
27
- * of patent rights can be found in the PATENTS file in the same directory.
28
- */
29
-
30
21
 
31
22
  function equals(a, b) {
32
23
  const toString = Object.prototype.toString;
@@ -5,13 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = escape;
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
 
@@ -5,13 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = isRevocableSession;
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
 
@@ -5,13 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = parseDate;
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
 
@@ -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
 
@@ -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
 
@@ -8,7 +8,7 @@ var config = {
8
8
  SERVER_AUTH_TOKEN: null,
9
9
  LIVEQUERY_SERVER_URL: null,
10
10
  ENCRYPTED_KEY: null,
11
- VERSION: 'js' + "4.0.0-beta.1",
11
+ VERSION: 'js' + "4.0.1-beta.1",
12
12
  APPLICATION_ID: null,
13
13
  JAVASCRIPT_KEY: null,
14
14
  MASTER_KEY: null,
@@ -23,7 +23,7 @@ var config = {
23
23
  function requireMethods(name, methods, controller) {
24
24
  methods.forEach(function (func) {
25
25
  if (typeof controller[func] !== 'function') {
26
- throw new Error(name + " must implement " + func + "()");
26
+ throw new Error(`${name} must implement ${func}()`);
27
27
  }
28
28
  });
29
29
  }