Showing 4 of 4 files from the diff.
Newly tracked file
src/ParseObject.js changed.
Newly tracked file
src/ParseQuery.js changed.
Newly tracked file
src/ParseGeoPoint.js changed.
Newly tracked file
src/ParseUser.js changed.

@@ -1237,26 +1237,9 @@
Loading
1237 1237
      options = arg3;
1238 1238
    }
1239 1239
1240 -
    // TODO: safely remove me
1241 -
    // Support save({ success: function() {}, error: function() {} })
1242 -
    if (!options && attrs) {
1243 -
      options = {};
1244 -
      if (typeof attrs.success === 'function') {
1245 -
        options.success = attrs.success;
1246 -
        delete attrs.success;
1247 -
      }
1248 -
      if (typeof attrs.error === 'function') {
1249 -
        options.error = attrs.error;
1250 -
        delete attrs.error;
1251 -
      }
1252 -
    }
1253 -
1254 1240
    if (attrs) {
1255 1241
      const validation = this.validate(attrs);
1256 1242
      if (validation) {
1257 -
        if (options && typeof options.error === 'function') {
1258 -
          options.error(this, validation);
1259 -
        }
1260 1243
        return Promise.reject(validation);
1261 1244
      }
1262 1245
      this.set(attrs, options);

@@ -554,8 +554,7 @@
Loading
554 554
555 555
  /**
556 556
   * Constructs a Parse.Object whose id is already known by fetching data from
557 -
   * the server.  Either options.success or options.error is called when the
558 -
   * find completes. Unlike the <code>first</code> method, it never returns undefined.
557 +
   * the server. Unlike the <code>first</code> method, it never returns undefined.
559 558
   *
560 559
   * @param {String} objectId The id of the object to be fetched.
561 560
   * @param {Object} options
@@ -599,8 +598,6 @@
Loading
599 598
600 599
  /**
601 600
   * Retrieves a list of ParseObjects that satisfy this query.
602 -
   * Either options.success or options.error is called when the find
603 -
   * completes.
604 601
   *
605 602
   * @param {Object} options Valid options
606 603
   * are:<ul>
@@ -697,8 +694,6 @@
Loading
697 694
698 695
  /**
699 696
   * Counts the number of objects that match this query.
700 -
   * Either options.success or options.error is called when the count
701 -
   * completes.
702 697
   *
703 698
   * @param {Object} options
704 699
   * Valid options are:<ul>
@@ -826,8 +821,7 @@
Loading
826 821
  /**
827 822
   * Retrieves at most one Parse.Object that satisfies this query.
828 823
   *
829 -
   * Either options.success or options.error is called when it completes.
830 -
   * success is passed the object if there is one. otherwise, undefined.
824 +
   * Returns the object if there is one, otherwise undefined.
831 825
   *
832 826
   * @param {Object} options Valid options are:<ul>
833 827
   *   <li>useMasterKey: In Cloud Code and Node only, causes the Master Key to

@@ -195,7 +195,6 @@
Loading
195 195
196 196
  /**
197 197
   * Creates a GeoPoint with the user's current location, if available.
198 -
   * Calls options.success with a new GeoPoint instance or calls options.error.
199 198
   * @static
200 199
   */
201 200
  static current() {

@@ -398,9 +398,6 @@
Loading
398 398
   *
399 399
   * <p>A username and password must be set before calling signUp.</p>
400 400
   *
401 -
   * <p>Calls options.success or options.error on completion.</p>
402 -
   *
403 -
404 401
   * @param {Object} attrs Extra fields to set on the new user, or null.
405 402
   * @param {Object} options
406 403
   * @return {Promise} A promise that is fulfilled when the signup
@@ -432,9 +429,6 @@
Loading
432 429
   *
433 430
   * <p>A username and password must be set before calling logIn.</p>
434 431
   *
435 -
   * <p>Calls options.success or options.error on completion.</p>
436 -
   *
437 -
438 432
   * @param {Object} options
439 433
   * @return {Promise} A promise that is fulfilled with the user when
440 434
   *     the login is complete.
@@ -601,9 +595,6 @@
Loading
601 595
   * session in localStorage so that you can access the user using
602 596
   * {@link #current}.
603 597
   *
604 -
   * <p>Calls options.success or options.error on completion.</p>
605 -
   *
606 -
607 598
   * @param {String} username The username (or email) to sign up with.
608 599
   * @param {String} password The password to sign up with.
609 600
   * @param {Object} attrs Extra fields to set on the new user.
@@ -625,9 +616,6 @@
Loading
625 616
   * saves the session to disk, so you can retrieve the currently logged in
626 617
   * user using <code>current</code>.
627 618
   *
628 -
   * <p>Calls options.success or options.error on completion.</p>
629 -
   *
630 -
631 619
   * @param {String} username The username (or email) to log in with.
632 620
   * @param {String} password The password to log in with.
633 621
   * @param {Object} options
@@ -661,9 +649,6 @@
Loading
661 649
   * to disk, so you can retrieve the currently logged in user using
662 650
   * <code>current</code>.
663 651
   *
664 -
   * <p>Calls options.success or options.error on completion.</p>
665 -
   *
666 -
667 652
   * @param {String} sessionToken The sessionToken to log in with.
668 653
   * @param {Object} options
669 654
   * @static
@@ -755,9 +740,6 @@
Loading
755 740
   * associated with the user account. This email allows the user to securely
756 741
   * reset their password on the Parse site.
757 742
   *
758 -
   * <p>Calls options.success or options.error on completion.</p>
759 -
   *
760 -
761 743
   * @param {String} email The email address associated with the user that
762 744
   *     forgot their password.
763 745
   * @param {Object} options
@@ -781,8 +763,6 @@
Loading
781 763
  /**
782 764
   * Request an email verification.
783 765
   *
784 -
   * <p>Calls options.success or options.error on completion.</p>
785 -
   *
786 766
   * @param {String} email The email address associated with the user that
787 767
   *     forgot their password.
788 768
   * @param {Object} options
Files Coverage
src 92.46%
Project Totals (54 files) 92.46%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading