File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ const _ = require ( 'underscore' ) ;
12const { tap } = require ( './utils' ) ;
23
34module . exports = ( AV ) => {
@@ -43,7 +44,7 @@ module.exports = (AV) => {
4344 return AV . Cloud . _requestCaptcha ( this . _options , this . _authOptions ) . then ( ( {
4445 captchaToken, url,
4546 } ) => {
46- Object . assign ( this , { captchaToken, url } ) ;
47+ _ . extend ( this , { captchaToken, url } ) ;
4748 return url ;
4849 } ) ;
4950 } ;
Original file line number Diff line number Diff line change 1+ const _ = require ( 'underscore' ) ;
12const EventEmitter = require ( 'eventemitter3' ) ;
23const Promise = require ( './promise' ) ;
34const { inherits } = require ( './utils' ) ;
@@ -25,7 +26,7 @@ module.exports = (AV) => {
2526 updatedKeys,
2627 } ) => {
2728 if ( queryId !== this . id ) return ;
28- const target = AV . parseJSON ( Object . assign ( {
29+ const target = AV . parseJSON ( _ . extend ( {
2930 __type : object . className === '_File' ? 'File' : 'Object' ,
3031 } , object ) ) ;
3132 if ( updatedKeys ) {
You can’t perform that action at this time.
0 commit comments