parse 6.1.0-alpha.1 → 6.1.0-alpha.3
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/README.md +0 -8
- package/dist/parse.js +93 -105
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +93 -105
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/Cloud.js +1 -0
- package/lib/browser/CoreManager.js +2 -2
- package/lib/browser/CryptoController.js +0 -1
- package/lib/browser/EventEmitter.js +0 -1
- package/lib/browser/EventuallyQueue.js +6 -10
- package/lib/browser/IndexedDBStorageController.js +0 -1
- package/lib/browser/InstallationController.js +0 -1
- package/lib/browser/LiveQuerySubscription.js +4 -4
- package/lib/browser/LocalDatastore.js +0 -1
- package/lib/browser/LocalDatastoreController.default.js +0 -1
- package/lib/browser/LocalDatastoreController.js +0 -1
- package/lib/browser/LocalDatastoreController.react-native.js +0 -1
- package/lib/browser/OfflineQuery.js +0 -1
- package/lib/browser/Parse.js +12 -1
- package/lib/browser/ParseACL.js +1 -1
- package/lib/browser/ParseConfig.js +2 -4
- package/lib/browser/ParseInstallation.js +0 -1
- package/lib/browser/ParseLiveQuery.js +2 -2
- package/lib/browser/ParseObject.js +10 -10
- package/lib/browser/ParseQuery.js +26 -25
- package/lib/browser/ParseRole.js +1 -1
- package/lib/browser/ParseSchema.js +6 -6
- package/lib/browser/ParseUser.js +10 -12
- package/lib/browser/RESTController.js +7 -3
- package/lib/browser/Socket.weapp.js +0 -1
- package/lib/browser/Storage.js +0 -1
- package/lib/browser/StorageController.browser.js +0 -1
- package/lib/browser/StorageController.default.js +0 -1
- package/lib/browser/StorageController.js +0 -1
- package/lib/browser/StorageController.react-native.js +0 -1
- package/lib/browser/StorageController.weapp.js +0 -1
- package/lib/browser/TaskQueue.js +0 -1
- package/lib/browser/WebSocketController.js +0 -1
- package/lib/browser/Xhr.weapp.js +0 -1
- package/lib/browser/uuid.js +0 -1
- package/lib/node/Cloud.js +1 -0
- package/lib/node/CoreManager.js +2 -2
- package/lib/node/CryptoController.js +0 -1
- package/lib/node/EventEmitter.js +0 -1
- package/lib/node/EventuallyQueue.js +6 -7
- package/lib/node/IndexedDBStorageController.js +0 -1
- package/lib/node/InstallationController.js +0 -1
- package/lib/node/LiveQuerySubscription.js +4 -4
- package/lib/node/LocalDatastore.js +0 -1
- package/lib/node/LocalDatastoreController.default.js +0 -1
- package/lib/node/LocalDatastoreController.js +0 -1
- package/lib/node/LocalDatastoreController.react-native.js +0 -1
- package/lib/node/OfflineQuery.js +0 -1
- package/lib/node/Parse.js +12 -1
- package/lib/node/ParseACL.js +1 -1
- package/lib/node/ParseConfig.js +2 -2
- package/lib/node/ParseInstallation.js +0 -1
- package/lib/node/ParseLiveQuery.js +2 -2
- package/lib/node/ParseObject.js +10 -7
- package/lib/node/ParseQuery.js +7 -7
- package/lib/node/ParseRole.js +1 -1
- package/lib/node/ParseSchema.js +6 -4
- package/lib/node/ParseUser.js +10 -10
- package/lib/node/RESTController.js +3 -1
- package/lib/node/Socket.weapp.js +0 -1
- package/lib/node/Storage.js +0 -1
- package/lib/node/StorageController.browser.js +0 -1
- package/lib/node/StorageController.default.js +0 -1
- package/lib/node/StorageController.js +0 -1
- package/lib/node/StorageController.react-native.js +0 -1
- package/lib/node/StorageController.weapp.js +0 -1
- package/lib/node/TaskQueue.js +0 -1
- package/lib/node/WebSocketController.js +0 -1
- package/lib/node/Xhr.weapp.js +0 -1
- package/lib/node/uuid.js +0 -1
- package/lib/react-native/CoreManager.js +2 -2
- package/lib/react-native/CryptoController.js +0 -1
- package/lib/react-native/EventEmitter.js +0 -1
- package/lib/react-native/EventuallyQueue.js +5 -9
- package/lib/react-native/IndexedDBStorageController.js +0 -1
- package/lib/react-native/InstallationController.js +0 -1
- package/lib/react-native/LiveQuerySubscription.js +7 -7
- package/lib/react-native/LocalDatastore.js +0 -1
- package/lib/react-native/LocalDatastoreController.default.js +0 -1
- package/lib/react-native/LocalDatastoreController.js +0 -1
- package/lib/react-native/LocalDatastoreController.react-native.js +0 -1
- package/lib/react-native/OfflineQuery.js +0 -1
- package/lib/react-native/Parse.js +8 -1
- package/lib/react-native/ParseConfig.js +2 -4
- package/lib/react-native/ParseInstallation.js +0 -1
- package/lib/react-native/ParseLiveQuery.js +2 -2
- package/lib/react-native/ParseObject.js +16 -18
- package/lib/react-native/ParseQuery.js +5 -6
- package/lib/react-native/ParseSchema.js +5 -6
- package/lib/react-native/ParseUser.js +3 -5
- package/lib/react-native/RESTController.js +3 -1
- package/lib/react-native/Socket.weapp.js +0 -1
- package/lib/react-native/Storage.js +0 -1
- package/lib/react-native/StorageController.browser.js +0 -1
- package/lib/react-native/StorageController.default.js +0 -1
- package/lib/react-native/StorageController.js +0 -1
- package/lib/react-native/StorageController.react-native.js +0 -1
- package/lib/react-native/StorageController.weapp.js +0 -1
- package/lib/react-native/TaskQueue.js +0 -1
- package/lib/react-native/WebSocketController.js +0 -1
- package/lib/react-native/Xhr.weapp.js +0 -1
- package/lib/react-native/uuid.js +0 -1
- package/lib/weapp/Cloud.js +1 -0
- package/lib/weapp/CoreManager.js +2 -2
- package/lib/weapp/CryptoController.js +0 -1
- package/lib/weapp/EventEmitter.js +0 -1
- package/lib/weapp/EventuallyQueue.js +6 -10
- package/lib/weapp/IndexedDBStorageController.js +0 -1
- package/lib/weapp/InstallationController.js +0 -1
- package/lib/weapp/LiveQuerySubscription.js +4 -4
- package/lib/weapp/LocalDatastore.js +0 -1
- package/lib/weapp/LocalDatastoreController.default.js +0 -1
- package/lib/weapp/LocalDatastoreController.js +0 -1
- package/lib/weapp/LocalDatastoreController.react-native.js +0 -1
- package/lib/weapp/OfflineQuery.js +0 -1
- package/lib/weapp/Parse.js +12 -1
- package/lib/weapp/ParseACL.js +1 -1
- package/lib/weapp/ParseConfig.js +2 -4
- package/lib/weapp/ParseInstallation.js +0 -1
- package/lib/weapp/ParseLiveQuery.js +2 -2
- package/lib/weapp/ParseObject.js +10 -10
- package/lib/weapp/ParseQuery.js +26 -25
- package/lib/weapp/ParseRole.js +1 -1
- package/lib/weapp/ParseSchema.js +6 -6
- package/lib/weapp/ParseUser.js +10 -12
- package/lib/weapp/RESTController.js +7 -3
- package/lib/weapp/Socket.weapp.js +0 -1
- package/lib/weapp/Storage.js +0 -1
- package/lib/weapp/StorageController.browser.js +0 -1
- package/lib/weapp/StorageController.default.js +0 -1
- package/lib/weapp/StorageController.js +0 -1
- package/lib/weapp/StorageController.react-native.js +0 -1
- package/lib/weapp/StorageController.weapp.js +0 -1
- package/lib/weapp/TaskQueue.js +0 -1
- package/lib/weapp/WebSocketController.js +0 -1
- package/lib/weapp/Xhr.weapp.js +0 -1
- package/lib/weapp/uuid.js +0 -1
- package/package.json +15 -12
- package/types/Analytics.d.ts +42 -0
- package/types/AnonymousUtils.d.ts +84 -0
- package/types/Cloud.d.ts +65 -0
- package/types/CloudCode.d.ts +307 -0
- package/types/CoreManager.d.ts +325 -0
- package/types/CryptoController.d.ts +5 -0
- package/types/EventEmitter.d.ts +5 -0
- package/types/EventuallyQueue.d.ts +168 -0
- package/types/FacebookUtils.d.ts +107 -0
- package/types/IndexedDBStorageController.d.ts +2 -0
- package/types/InstallationController.d.ts +10 -0
- package/types/LiveQueryClient.d.ts +128 -0
- package/types/LiveQuerySubscription.d.ts +103 -0
- package/types/LocalDatastore.d.ts +56 -0
- package/types/LocalDatastoreController.d.ts +2 -0
- package/types/LocalDatastoreController.default.d.ts +9 -0
- package/types/LocalDatastoreController.react-native.d.ts +9 -0
- package/types/LocalDatastoreUtils.d.ts +5 -0
- package/types/ObjectStateMutations.d.ts +28 -0
- package/types/OfflineQuery.d.ts +20 -0
- package/types/Parse.d.ts +633 -0
- package/types/ParseACL.d.ts +141 -0
- package/types/ParseCLP.d.ts +293 -0
- package/types/ParseConfig.d.ts +77 -0
- package/types/ParseError.d.ts +476 -0
- package/types/ParseFile.d.ts +192 -0
- package/types/ParseGeoPoint.d.ts +104 -0
- package/types/ParseHooks.d.ts +27 -0
- package/types/ParseInstallation.d.ts +179 -0
- package/types/ParseLiveQuery.d.ts +48 -0
- package/types/ParseObject.d.ts +1072 -0
- package/types/ParseOp.d.ts +78 -0
- package/types/ParsePolygon.d.ts +69 -0
- package/types/ParseQuery.d.ts +961 -0
- package/types/ParseRelation.d.ts +56 -0
- package/types/ParseRole.d.ts +79 -0
- package/types/ParseSchema.d.ts +286 -0
- package/types/ParseSession.d.ts +45 -0
- package/types/ParseUser.d.ts +517 -0
- package/types/Push.d.ts +62 -0
- package/types/RESTController.d.ts +35 -0
- package/types/SingleInstanceStateController.d.ts +24 -0
- package/types/Socket.weapp.d.ts +10 -0
- package/types/Storage.d.ts +14 -0
- package/types/StorageController.browser.d.ts +9 -0
- package/types/StorageController.d.ts +2 -0
- package/types/StorageController.default.d.ts +9 -0
- package/types/StorageController.react-native.d.ts +11 -0
- package/types/StorageController.weapp.d.ts +9 -0
- package/types/TaskQueue.d.ts +11 -0
- package/types/UniqueInstanceStateController.d.ts +20 -0
- package/types/WebSocketController.d.ts +2 -0
- package/types/Xhr.weapp.d.ts +29 -0
- package/types/arrayContainsObject.d.ts +2 -0
- package/types/canBeSerialized.d.ts +2 -0
- package/types/decode.d.ts +1 -0
- package/types/encode.d.ts +1 -0
- package/types/equals.d.ts +1 -0
- package/types/escape.d.ts +1 -0
- package/types/index.d.ts +66 -0
- package/types/isRevocableSession.d.ts +1 -0
- package/types/node.d.ts +3 -0
- package/types/parseDate.d.ts +1 -0
- package/types/promiseUtils.d.ts +9 -0
- package/types/react-native.d.ts +3 -0
- package/types/tests.ts +2256 -0
- package/types/tsconfig.json +25 -0
- package/types/unique.d.ts +1 -0
- package/types/unsavedChildren.d.ts +11 -0
- package/types/uuid.d.ts +2 -0
package/dist/parse.weapp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Parse JavaScript SDK v6.1.0-alpha.
|
|
2
|
+
* Parse JavaScript SDK v6.1.0-alpha.3
|
|
3
3
|
*
|
|
4
4
|
* The source tree of this library can be found at
|
|
5
5
|
* https://github.com/ParsePlatform/Parse-SDK-JS
|
|
@@ -247,6 +247,7 @@ var _ParseObject = _interopRequireDefault(_dereq_("./ParseObject"));
|
|
|
247
247
|
* @returns {Promise} A promise that will be resolved with the result
|
|
248
248
|
* of the function.
|
|
249
249
|
*/
|
|
250
|
+
|
|
250
251
|
function run(name, data, options) {
|
|
251
252
|
if (typeof name !== 'string' || name.length === 0) {
|
|
252
253
|
throw new TypeError('Cloud function name must be a string.');
|
|
@@ -354,9 +355,10 @@ const config = {
|
|
|
354
355
|
SERVER_AUTH_TOKEN: null,
|
|
355
356
|
LIVEQUERY_SERVER_URL: null,
|
|
356
357
|
ENCRYPTED_KEY: null,
|
|
357
|
-
VERSION: 'js' + "6.1.0-alpha.
|
|
358
|
+
VERSION: 'js' + "6.1.0-alpha.3",
|
|
358
359
|
APPLICATION_ID: null,
|
|
359
360
|
JAVASCRIPT_KEY: null,
|
|
361
|
+
MAINTENANCE_KEY: null,
|
|
360
362
|
MASTER_KEY: null,
|
|
361
363
|
USE_MASTER_KEY: false,
|
|
362
364
|
PERFORM_USER_REWRITE: true,
|
|
@@ -589,7 +591,6 @@ const CoreManager = {
|
|
|
589
591
|
return config['ParseUser'];
|
|
590
592
|
}
|
|
591
593
|
};
|
|
592
|
-
module.exports = CoreManager;
|
|
593
594
|
var _default = exports.default = CoreManager;
|
|
594
595
|
}).call(this)}).call(this,_dereq_('_process'))
|
|
595
596
|
},{"@babel/runtime-corejs3/core-js-stable/instance/for-each":74,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/helpers/interopRequireDefault":104,"_process":108}],5:[function(_dereq_,module,exports){
|
|
@@ -616,7 +617,6 @@ const CryptoController = {
|
|
|
616
617
|
return decryptedStr;
|
|
617
618
|
}
|
|
618
619
|
};
|
|
619
|
-
module.exports = CryptoController;
|
|
620
620
|
var _default = exports.default = CryptoController;
|
|
621
621
|
},{"@babel/runtime-corejs3/core-js-stable/json/stringify":86,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/helpers/interopRequireDefault":104,"crypto-js/aes":481,"crypto-js/enc-utf8":485}],6:[function(_dereq_,module,exports){
|
|
622
622
|
"use strict";
|
|
@@ -636,7 +636,6 @@ try {
|
|
|
636
636
|
} catch (_) {
|
|
637
637
|
// EventEmitter unavailable
|
|
638
638
|
}
|
|
639
|
-
module.exports = EventEmitter;
|
|
640
639
|
var _default = exports.default = EventEmitter;
|
|
641
640
|
},{"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"events":490}],7:[function(_dereq_,module,exports){
|
|
642
641
|
"use strict";
|
|
@@ -681,8 +680,7 @@ const EventuallyQueue = {
|
|
|
681
680
|
* @static
|
|
682
681
|
* @see Parse.Object#saveEventually
|
|
683
682
|
*/
|
|
684
|
-
save(object) {
|
|
685
|
-
let serverOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
683
|
+
save(object, serverOptions) {
|
|
686
684
|
return this.enqueue('save', object, serverOptions);
|
|
687
685
|
},
|
|
688
686
|
/**
|
|
@@ -696,8 +694,7 @@ const EventuallyQueue = {
|
|
|
696
694
|
* @static
|
|
697
695
|
* @see Parse.Object#destroyEventually
|
|
698
696
|
*/
|
|
699
|
-
destroy(object) {
|
|
700
|
-
let serverOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
697
|
+
destroy(object, serverOptions) {
|
|
701
698
|
return this.enqueue('destroy', object, serverOptions);
|
|
702
699
|
},
|
|
703
700
|
/**
|
|
@@ -747,7 +744,7 @@ const EventuallyQueue = {
|
|
|
747
744
|
queueId,
|
|
748
745
|
action,
|
|
749
746
|
object: object.toJSON(),
|
|
750
|
-
serverOptions,
|
|
747
|
+
serverOptions: serverOptions || {},
|
|
751
748
|
id: object.id,
|
|
752
749
|
className: object.className,
|
|
753
750
|
hash: object.get('hash'),
|
|
@@ -766,7 +763,7 @@ const EventuallyQueue = {
|
|
|
766
763
|
*
|
|
767
764
|
* @function getQueue
|
|
768
765
|
* @name Parse.EventuallyQueue.getQueue
|
|
769
|
-
* @returns {Promise<
|
|
766
|
+
* @returns {Promise<Queue>}
|
|
770
767
|
* @static
|
|
771
768
|
*/
|
|
772
769
|
async getQueue() {
|
|
@@ -921,8 +918,7 @@ const EventuallyQueue = {
|
|
|
921
918
|
* @param [ms] Milliseconds to ping the server. Default 2000ms
|
|
922
919
|
* @static
|
|
923
920
|
*/
|
|
924
|
-
poll() {
|
|
925
|
-
let ms = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 2000;
|
|
921
|
+
poll(ms) {
|
|
926
922
|
if (polling) {
|
|
927
923
|
return;
|
|
928
924
|
}
|
|
@@ -937,7 +933,7 @@ const EventuallyQueue = {
|
|
|
937
933
|
return this.sendQueue();
|
|
938
934
|
}
|
|
939
935
|
}).catch(e => e);
|
|
940
|
-
}, ms);
|
|
936
|
+
}, ms || 2000);
|
|
941
937
|
},
|
|
942
938
|
/**
|
|
943
939
|
* Turns off polling.
|
|
@@ -996,7 +992,6 @@ const EventuallyQueue = {
|
|
|
996
992
|
}
|
|
997
993
|
}
|
|
998
994
|
};
|
|
999
|
-
module.exports = EventuallyQueue;
|
|
1000
995
|
var _default = exports.default = EventuallyQueue;
|
|
1001
996
|
},{"./CoreManager":4,"./ParseError":24,"./ParseObject":30,"./ParseQuery":33,"./Storage":43,"@babel/runtime-corejs3/core-js-stable/instance/find":73,"@babel/runtime-corejs3/core-js-stable/instance/find-index":72,"@babel/runtime-corejs3/core-js-stable/instance/splice":83,"@babel/runtime-corejs3/core-js-stable/json/stringify":86,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/core-js-stable/set-interval":99,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],8:[function(_dereq_,module,exports){
|
|
1002
997
|
"use strict";
|
|
@@ -1264,7 +1259,6 @@ if (typeof window !== 'undefined' && window.indexedDB) {
|
|
|
1264
1259
|
// IndexedDB not supported
|
|
1265
1260
|
IndexedDBStorageController = undefined;
|
|
1266
1261
|
}
|
|
1267
|
-
module.exports = IndexedDBStorageController;
|
|
1268
1262
|
var _default = exports.default = IndexedDBStorageController;
|
|
1269
1263
|
},{"@babel/runtime-corejs3/core-js-stable/instance/keys":77,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"idb-keyval":491}],10:[function(_dereq_,module,exports){
|
|
1270
1264
|
"use strict";
|
|
@@ -1347,7 +1341,6 @@ const InstallationController = {
|
|
|
1347
1341
|
currentInstallationCacheMatchesDisk = matchesDisk;
|
|
1348
1342
|
}
|
|
1349
1343
|
};
|
|
1350
|
-
module.exports = InstallationController;
|
|
1351
1344
|
var _default = exports.default = InstallationController;
|
|
1352
1345
|
},{"./CoreManager":4,"./ParseInstallation":28,"./Storage":43,"./uuid":64,"@babel/runtime-corejs3/core-js-stable/json/stringify":86,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],11:[function(_dereq_,module,exports){
|
|
1353
1346
|
"use strict";
|
|
@@ -1951,7 +1944,7 @@ var _promiseUtils = _dereq_("./promiseUtils");
|
|
|
1951
1944
|
*
|
|
1952
1945
|
* });</pre></p>
|
|
1953
1946
|
*/
|
|
1954
|
-
class
|
|
1947
|
+
class LiveQuerySubscription {
|
|
1955
1948
|
/*
|
|
1956
1949
|
* @param {string | number} id - subscription id
|
|
1957
1950
|
* @param {string} query - query to subscribe to
|
|
@@ -1974,8 +1967,8 @@ class Subscription {
|
|
|
1974
1967
|
this.subscribePromise = (0, _promiseUtils.resolvingPromise)();
|
|
1975
1968
|
this.unsubscribePromise = (0, _promiseUtils.resolvingPromise)();
|
|
1976
1969
|
this.subscribed = false;
|
|
1977
|
-
const
|
|
1978
|
-
this.emitter = new
|
|
1970
|
+
const Emitter = _CoreManager.default.getEventEmitter();
|
|
1971
|
+
this.emitter = new Emitter();
|
|
1979
1972
|
this.on = (eventName, listener) => this.emitter.on(eventName, listener);
|
|
1980
1973
|
this.emit = function (eventName) {
|
|
1981
1974
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -2000,7 +1993,7 @@ class Subscription {
|
|
|
2000
1993
|
});
|
|
2001
1994
|
}
|
|
2002
1995
|
}
|
|
2003
|
-
var _default = exports.default =
|
|
1996
|
+
var _default = exports.default = LiveQuerySubscription;
|
|
2004
1997
|
},{"./CoreManager":4,"./promiseUtils":61,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/helpers/defineProperty":103,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],13:[function(_dereq_,module,exports){
|
|
2005
1998
|
"use strict";
|
|
2006
1999
|
|
|
@@ -2384,7 +2377,6 @@ const LocalDatastore = {
|
|
|
2384
2377
|
return this.isEnabled;
|
|
2385
2378
|
}
|
|
2386
2379
|
};
|
|
2387
|
-
module.exports = LocalDatastore;
|
|
2388
2380
|
var _default = exports.default = LocalDatastore;
|
|
2389
2381
|
_CoreManager.default.setLocalDatastoreController(_LocalDatastoreController.default);
|
|
2390
2382
|
_CoreManager.default.setLocalDatastore(LocalDatastore);
|
|
@@ -2456,7 +2448,6 @@ const LocalDatastoreController = {
|
|
|
2456
2448
|
return _promise.default.all(promises);
|
|
2457
2449
|
}
|
|
2458
2450
|
};
|
|
2459
|
-
module.exports = LocalDatastoreController;
|
|
2460
2451
|
var _default = exports.default = LocalDatastoreController;
|
|
2461
2452
|
},{"./LocalDatastoreUtils":17,"./Storage":43,"@babel/runtime-corejs3/core-js-stable/instance/map":78,"@babel/runtime-corejs3/core-js-stable/instance/reduce":79,"@babel/runtime-corejs3/core-js-stable/json/stringify":86,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/core-js-stable/promise":98,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],15:[function(_dereq_,module,exports){
|
|
2462
2453
|
"use strict";
|
|
@@ -2470,7 +2461,6 @@ exports.default = void 0;
|
|
|
2470
2461
|
var _LocalDatastoreController = _interopRequireDefault(_dereq_("./LocalDatastoreController.react-native"));
|
|
2471
2462
|
var _LocalDatastoreController2 = _interopRequireDefault(_dereq_("./LocalDatastoreController.default"));
|
|
2472
2463
|
let LocalDatastoreController = _LocalDatastoreController2.default;
|
|
2473
|
-
module.exports = LocalDatastoreController;
|
|
2474
2464
|
var _default = exports.default = LocalDatastoreController;
|
|
2475
2465
|
},{"./LocalDatastoreController.default":14,"./LocalDatastoreController.react-native":16,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],16:[function(_dereq_,module,exports){
|
|
2476
2466
|
"use strict";
|
|
@@ -2558,7 +2548,6 @@ const LocalDatastoreController = {
|
|
|
2558
2548
|
await _StorageController.default.multiRemove(batch).catch(error => console.error('Error clearing local datastore: ', error));
|
|
2559
2549
|
}
|
|
2560
2550
|
};
|
|
2561
|
-
module.exports = LocalDatastoreController;
|
|
2562
2551
|
var _default = exports.default = LocalDatastoreController;
|
|
2563
2552
|
},{"./LocalDatastoreUtils":17,"./StorageController.react-native":47,"@babel/runtime-corejs3/core-js-stable/instance/for-each":74,"@babel/runtime-corejs3/core-js-stable/instance/map":78,"@babel/runtime-corejs3/core-js-stable/json/stringify":86,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],17:[function(_dereq_,module,exports){
|
|
2564
2553
|
"use strict";
|
|
@@ -3308,7 +3297,6 @@ const OfflineQuery = {
|
|
|
3308
3297
|
matchesQuery: matchesQuery,
|
|
3309
3298
|
validateQuery: validateQuery
|
|
3310
3299
|
};
|
|
3311
|
-
module.exports = OfflineQuery;
|
|
3312
3300
|
var _default = exports.default = OfflineQuery;
|
|
3313
3301
|
},{"./ParseError":24,"./ParseGeoPoint":26,"./ParsePolygon":32,"./decode":55,"./equals":57,"@babel/runtime-corejs3/core-js-stable/array/is-array":66,"@babel/runtime-corejs3/core-js-stable/instance/filter":71,"@babel/runtime-corejs3/core-js-stable/instance/for-each":74,"@babel/runtime-corejs3/core-js-stable/instance/index-of":76,"@babel/runtime-corejs3/core-js-stable/instance/map":78,"@babel/runtime-corejs3/core-js-stable/instance/slice":80,"@babel/runtime-corejs3/core-js-stable/number/is-integer":88,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/core-js-stable/object/keys":96,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],20:[function(_dereq_,module,exports){
|
|
3314
3302
|
"use strict";
|
|
@@ -3442,9 +3430,10 @@ const Parse = {
|
|
|
3442
3430
|
initialize(applicationId, javaScriptKey) {
|
|
3443
3431
|
Parse._initialize(applicationId, javaScriptKey);
|
|
3444
3432
|
},
|
|
3445
|
-
_initialize(applicationId, javaScriptKey, masterKey) {
|
|
3433
|
+
_initialize(applicationId, javaScriptKey, masterKey, maintenanceKey) {
|
|
3446
3434
|
_CoreManager.default.set('APPLICATION_ID', applicationId);
|
|
3447
3435
|
_CoreManager.default.set('JAVASCRIPT_KEY', javaScriptKey);
|
|
3436
|
+
_CoreManager.default.set('MAINTENANCE_KEY', maintenanceKey);
|
|
3448
3437
|
_CoreManager.default.set('MASTER_KEY', masterKey);
|
|
3449
3438
|
_CoreManager.default.set('USE_MASTER_KEY', false);
|
|
3450
3439
|
_CoreManager.default.setIfNeeded('EventEmitter', _EventEmitter.default);
|
|
@@ -3516,6 +3505,16 @@ const Parse = {
|
|
|
3516
3505
|
get masterKey() {
|
|
3517
3506
|
return _CoreManager.default.get('MASTER_KEY');
|
|
3518
3507
|
},
|
|
3508
|
+
/**
|
|
3509
|
+
* @member {string} Parse.maintenanceKey
|
|
3510
|
+
* @static
|
|
3511
|
+
*/
|
|
3512
|
+
set maintenanceKey(value) {
|
|
3513
|
+
_CoreManager.default.set('MAINTENANCE_KEY', value);
|
|
3514
|
+
},
|
|
3515
|
+
get maintenanceKey() {
|
|
3516
|
+
return _CoreManager.default.get('MAINTENANCE_KEY');
|
|
3517
|
+
},
|
|
3519
3518
|
/**
|
|
3520
3519
|
* @member {string} Parse.serverURL
|
|
3521
3520
|
* @static
|
|
@@ -3729,7 +3728,7 @@ const PUBLIC_KEY = '*';
|
|
|
3729
3728
|
*/
|
|
3730
3729
|
class ParseACL {
|
|
3731
3730
|
/**
|
|
3732
|
-
* @param {(Parse.User | object)} arg1 The user to initialize the ACL for
|
|
3731
|
+
* @param {(Parse.User | object | null)} arg1 The user to initialize the ACL for
|
|
3733
3732
|
*/
|
|
3734
3733
|
constructor(arg1) {
|
|
3735
3734
|
(0, _defineProperty2.default)(this, "permissionsById", void 0);
|
|
@@ -4689,8 +4688,7 @@ class ParseConfig {
|
|
|
4689
4688
|
* @returns {Promise} A promise that is resolved with a newly-created
|
|
4690
4689
|
* configuration object when the get completes.
|
|
4691
4690
|
*/
|
|
4692
|
-
static get() {
|
|
4693
|
-
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4691
|
+
static get(options) {
|
|
4694
4692
|
const controller = _CoreManager.default.getConfigController();
|
|
4695
4693
|
return controller.get(options);
|
|
4696
4694
|
}
|
|
@@ -4771,8 +4769,7 @@ const DefaultController = {
|
|
|
4771
4769
|
return config;
|
|
4772
4770
|
});
|
|
4773
4771
|
},
|
|
4774
|
-
get() {
|
|
4775
|
-
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4772
|
+
get(options) {
|
|
4776
4773
|
const RESTController = _CoreManager.default.getRESTController();
|
|
4777
4774
|
return RESTController.request('GET', 'config', {}, options).then(response => {
|
|
4778
4775
|
if (!response || !response.params) {
|
|
@@ -6471,7 +6468,6 @@ class ParseInstallation extends _ParseObject.default {
|
|
|
6471
6468
|
}
|
|
6472
6469
|
}
|
|
6473
6470
|
_ParseObject.default.registerSubclass('_Installation', ParseInstallation);
|
|
6474
|
-
module.exports = ParseInstallation;
|
|
6475
6471
|
var _default = exports.default = ParseInstallation;
|
|
6476
6472
|
},{"./CoreManager":4,"./ParseError":24,"./ParseObject":30,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/core-js-stable/object/entries":92,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],29:[function(_dereq_,module,exports){
|
|
6477
6473
|
"use strict";
|
|
@@ -6524,8 +6520,8 @@ class LiveQuery {
|
|
|
6524
6520
|
(0, _defineProperty2.default)(this, "emitter", void 0);
|
|
6525
6521
|
(0, _defineProperty2.default)(this, "on", void 0);
|
|
6526
6522
|
(0, _defineProperty2.default)(this, "emit", void 0);
|
|
6527
|
-
const
|
|
6528
|
-
this.emitter = new
|
|
6523
|
+
const Emitter = _CoreManager.default.getEventEmitter();
|
|
6524
|
+
this.emitter = new Emitter();
|
|
6529
6525
|
this.on = (eventName, listener) => this.emitter.on(eventName, listener);
|
|
6530
6526
|
this.emit = function (eventName) {
|
|
6531
6527
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -6829,7 +6825,7 @@ class ParseObject {
|
|
|
6829
6825
|
id = this._getId();
|
|
6830
6826
|
}
|
|
6831
6827
|
return {
|
|
6832
|
-
id
|
|
6828
|
+
id,
|
|
6833
6829
|
className: this.className
|
|
6834
6830
|
};
|
|
6835
6831
|
} else {
|
|
@@ -7055,6 +7051,9 @@ class ParseObject {
|
|
|
7055
7051
|
if (hasOwn(options, 'useMasterKey')) {
|
|
7056
7052
|
requestOptions.useMasterKey = !!options.useMasterKey;
|
|
7057
7053
|
}
|
|
7054
|
+
if (hasOwn(options, 'useMaintenanceKey')) {
|
|
7055
|
+
requestOptions.useMaintenanceKey = !!options.useMaintenanceKey;
|
|
7056
|
+
}
|
|
7058
7057
|
if (hasOwn(options, 'sessionToken') && typeof options.sessionToken === 'string') {
|
|
7059
7058
|
requestOptions.sessionToken = options.sessionToken;
|
|
7060
7059
|
}
|
|
@@ -7889,6 +7888,7 @@ class ParseObject {
|
|
|
7889
7888
|
* @returns {Promise} A promise that is fulfilled when the save
|
|
7890
7889
|
* completes.
|
|
7891
7890
|
*/
|
|
7891
|
+
|
|
7892
7892
|
async save(arg1, arg2, arg3) {
|
|
7893
7893
|
let attrs;
|
|
7894
7894
|
let options;
|
|
@@ -7919,9 +7919,8 @@ class ParseObject {
|
|
|
7919
7919
|
const filePromise = unsavedFiles.length ? controller.save(unsavedFiles, saveOptions) : _promise.default.resolve();
|
|
7920
7920
|
return filePromise.then(() => controller.save(unsavedObjects, saveOptions)).then(savedOjbects => savedOjbects.pop());
|
|
7921
7921
|
}
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
});
|
|
7922
|
+
await controller.save(unsaved, saveOptions);
|
|
7923
|
+
return controller.save(this, saveOptions);
|
|
7925
7924
|
}
|
|
7926
7925
|
|
|
7927
7926
|
/**
|
|
@@ -8127,8 +8126,7 @@ class ParseObject {
|
|
|
8127
8126
|
* @static
|
|
8128
8127
|
* @returns {Parse.Object[]}
|
|
8129
8128
|
*/
|
|
8130
|
-
static fetchAll(list) {
|
|
8131
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8129
|
+
static fetchAll(list, options) {
|
|
8132
8130
|
const fetchOptions = ParseObject._getRequestOptions(options);
|
|
8133
8131
|
return _CoreManager.default.getObjectController().fetch(list, true, fetchOptions);
|
|
8134
8132
|
}
|
|
@@ -8307,8 +8305,7 @@ class ParseObject {
|
|
|
8307
8305
|
* @returns {Promise} A promise that is fulfilled when the destroyAll
|
|
8308
8306
|
* completes.
|
|
8309
8307
|
*/
|
|
8310
|
-
static destroyAll(list) {
|
|
8311
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8308
|
+
static destroyAll(list, options) {
|
|
8312
8309
|
const destroyOptions = ParseObject._getRequestOptions(options);
|
|
8313
8310
|
return _CoreManager.default.getObjectController().destroy(list, destroyOptions);
|
|
8314
8311
|
}
|
|
@@ -8342,8 +8339,7 @@ class ParseObject {
|
|
|
8342
8339
|
* @static
|
|
8343
8340
|
* @returns {Parse.Object[]}
|
|
8344
8341
|
*/
|
|
8345
|
-
static saveAll(list) {
|
|
8346
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8342
|
+
static saveAll(list, options) {
|
|
8347
8343
|
const saveOptions = ParseObject._getRequestOptions(options);
|
|
8348
8344
|
return _CoreManager.default.getObjectController().save(list, saveOptions);
|
|
8349
8345
|
}
|
|
@@ -9686,6 +9682,7 @@ var _sort = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stabl
|
|
|
9686
9682
|
var _splice = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/splice"));
|
|
9687
9683
|
var _promise = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/promise"));
|
|
9688
9684
|
var _find = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/find"));
|
|
9685
|
+
var _bind = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/bind"));
|
|
9689
9686
|
var _isArray = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/array/is-array"));
|
|
9690
9687
|
var _entries = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/object/entries"));
|
|
9691
9688
|
var _CoreManager = _interopRequireDefault(_dereq_("./CoreManager"));
|
|
@@ -10264,11 +10261,12 @@ class ParseQuery {
|
|
|
10264
10261
|
return this._handleOfflineQuery(this.toJSON());
|
|
10265
10262
|
}
|
|
10266
10263
|
return (0, _find.default)(controller).call(controller, this.className, this.toJSON(), findOptions).then(response => {
|
|
10264
|
+
var _context4, _context5;
|
|
10267
10265
|
// Return generic object when explain is used
|
|
10268
10266
|
if (this._explain) {
|
|
10269
10267
|
return response.results;
|
|
10270
10268
|
}
|
|
10271
|
-
const results = response.results?.
|
|
10269
|
+
const results = ((_context4 = response.results) == null ? void 0 : (0, _bind.default)(_context5 = Function.call).call(_context5, (0, _map.default)(_context4), _context4))?.(data => {
|
|
10272
10270
|
// In cases of relations, the server may send back a className
|
|
10273
10271
|
// on the top level of the payload
|
|
10274
10272
|
const override = response.className || this.className;
|
|
@@ -10716,8 +10714,8 @@ class ParseQuery {
|
|
|
10716
10714
|
*/
|
|
10717
10715
|
equalTo(key, value) {
|
|
10718
10716
|
if (key && typeof key === 'object') {
|
|
10719
|
-
var
|
|
10720
|
-
(0, _forEach.default)(
|
|
10717
|
+
var _context6;
|
|
10718
|
+
(0, _forEach.default)(_context6 = (0, _entries.default)(key)).call(_context6, _ref => {
|
|
10721
10719
|
let [k, val] = _ref;
|
|
10722
10720
|
return this.equalTo(k, val);
|
|
10723
10721
|
});
|
|
@@ -10740,8 +10738,8 @@ class ParseQuery {
|
|
|
10740
10738
|
*/
|
|
10741
10739
|
notEqualTo(key, value) {
|
|
10742
10740
|
if (key && typeof key === 'object') {
|
|
10743
|
-
var
|
|
10744
|
-
(0, _forEach.default)(
|
|
10741
|
+
var _context7;
|
|
10742
|
+
(0, _forEach.default)(_context7 = (0, _entries.default)(key)).call(_context7, _ref2 => {
|
|
10745
10743
|
let [k, val] = _ref2;
|
|
10746
10744
|
return this.notEqualTo(k, val);
|
|
10747
10745
|
});
|
|
@@ -10803,11 +10801,11 @@ class ParseQuery {
|
|
|
10803
10801
|
* be contained in the provided list of values.
|
|
10804
10802
|
*
|
|
10805
10803
|
* @param {string} key The key to check.
|
|
10806
|
-
* @param {Array<*>}
|
|
10804
|
+
* @param {Array<*>} values The values that will match.
|
|
10807
10805
|
* @returns {Parse.Query} Returns the query, so you can chain this call.
|
|
10808
10806
|
*/
|
|
10809
|
-
containedIn(key,
|
|
10810
|
-
return this._addCondition(key, '$in',
|
|
10807
|
+
containedIn(key, values) {
|
|
10808
|
+
return this._addCondition(key, '$in', values);
|
|
10811
10809
|
}
|
|
10812
10810
|
|
|
10813
10811
|
/**
|
|
@@ -10815,11 +10813,11 @@ class ParseQuery {
|
|
|
10815
10813
|
* not be contained in the provided list of values.
|
|
10816
10814
|
*
|
|
10817
10815
|
* @param {string} key The key to check.
|
|
10818
|
-
* @param {Array<*>}
|
|
10816
|
+
* @param {Array<*>} values The values that will not match.
|
|
10819
10817
|
* @returns {Parse.Query} Returns the query, so you can chain this call.
|
|
10820
10818
|
*/
|
|
10821
|
-
notContainedIn(key,
|
|
10822
|
-
return this._addCondition(key, '$nin',
|
|
10819
|
+
notContainedIn(key, values) {
|
|
10820
|
+
return this._addCondition(key, '$nin', values);
|
|
10823
10821
|
}
|
|
10824
10822
|
|
|
10825
10823
|
/**
|
|
@@ -11029,8 +11027,7 @@ class ParseQuery {
|
|
|
11029
11027
|
* @param {boolean} options.diacriticSensitive A boolean flag to enable or disable diacritic sensitive search.
|
|
11030
11028
|
* @returns {Parse.Query} Returns the query, so you can chain this call.
|
|
11031
11029
|
*/
|
|
11032
|
-
fullText(key, value) {
|
|
11033
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
11030
|
+
fullText(key, value, options) {
|
|
11034
11031
|
options = options || {};
|
|
11035
11032
|
if (!key) {
|
|
11036
11033
|
throw new Error('A key is required.');
|
|
@@ -11269,11 +11266,11 @@ class ParseQuery {
|
|
|
11269
11266
|
keys[_key2] = arguments[_key2];
|
|
11270
11267
|
}
|
|
11271
11268
|
(0, _forEach.default)(keys).call(keys, key => {
|
|
11272
|
-
var
|
|
11269
|
+
var _context8;
|
|
11273
11270
|
if ((0, _isArray.default)(key)) {
|
|
11274
11271
|
key = key.join();
|
|
11275
11272
|
}
|
|
11276
|
-
this._order = (0, _concat.default)(
|
|
11273
|
+
this._order = (0, _concat.default)(_context8 = this._order).call(_context8, key.replace(/\s/g, '').split(','));
|
|
11277
11274
|
});
|
|
11278
11275
|
return this;
|
|
11279
11276
|
}
|
|
@@ -11309,11 +11306,11 @@ class ParseQuery {
|
|
|
11309
11306
|
keys[_key4] = arguments[_key4];
|
|
11310
11307
|
}
|
|
11311
11308
|
(0, _forEach.default)(keys).call(keys, key => {
|
|
11312
|
-
var
|
|
11309
|
+
var _context9, _context10;
|
|
11313
11310
|
if ((0, _isArray.default)(key)) {
|
|
11314
11311
|
key = key.join();
|
|
11315
11312
|
}
|
|
11316
|
-
this._order = (0, _concat.default)(
|
|
11313
|
+
this._order = (0, _concat.default)(_context9 = this._order).call(_context9, (0, _map.default)(_context10 = key.replace(/\s/g, '').split(',')).call(_context10, k => {
|
|
11317
11314
|
return '-' + k;
|
|
11318
11315
|
}));
|
|
11319
11316
|
});
|
|
@@ -11386,8 +11383,8 @@ class ParseQuery {
|
|
|
11386
11383
|
}
|
|
11387
11384
|
(0, _forEach.default)(keys).call(keys, key => {
|
|
11388
11385
|
if ((0, _isArray.default)(key)) {
|
|
11389
|
-
var
|
|
11390
|
-
this._include = (0, _concat.default)(
|
|
11386
|
+
var _context11;
|
|
11387
|
+
this._include = (0, _concat.default)(_context11 = this._include).call(_context11, key);
|
|
11391
11388
|
} else {
|
|
11392
11389
|
this._include.push(key);
|
|
11393
11390
|
}
|
|
@@ -11423,8 +11420,8 @@ class ParseQuery {
|
|
|
11423
11420
|
}
|
|
11424
11421
|
(0, _forEach.default)(keys).call(keys, key => {
|
|
11425
11422
|
if ((0, _isArray.default)(key)) {
|
|
11426
|
-
var
|
|
11427
|
-
this._select = (0, _concat.default)(
|
|
11423
|
+
var _context12;
|
|
11424
|
+
this._select = (0, _concat.default)(_context12 = this._select).call(_context12, key);
|
|
11428
11425
|
} else {
|
|
11429
11426
|
this._select.push(key);
|
|
11430
11427
|
}
|
|
@@ -11447,8 +11444,8 @@ class ParseQuery {
|
|
|
11447
11444
|
}
|
|
11448
11445
|
(0, _forEach.default)(keys).call(keys, key => {
|
|
11449
11446
|
if ((0, _isArray.default)(key)) {
|
|
11450
|
-
var
|
|
11451
|
-
this._exclude = (0, _concat.default)(
|
|
11447
|
+
var _context13;
|
|
11448
|
+
this._exclude = (0, _concat.default)(_context13 = this._exclude).call(_context13, key);
|
|
11452
11449
|
} else {
|
|
11453
11450
|
this._exclude.push(key);
|
|
11454
11451
|
}
|
|
@@ -11470,8 +11467,8 @@ class ParseQuery {
|
|
|
11470
11467
|
}
|
|
11471
11468
|
(0, _forEach.default)(keys).call(keys, key => {
|
|
11472
11469
|
if ((0, _isArray.default)(key)) {
|
|
11473
|
-
var
|
|
11474
|
-
this._watch = (0, _concat.default)(
|
|
11470
|
+
var _context14;
|
|
11471
|
+
this._watch = (0, _concat.default)(_context14 = this._watch).call(_context14, key);
|
|
11475
11472
|
} else {
|
|
11476
11473
|
this._watch.push(key);
|
|
11477
11474
|
}
|
|
@@ -11681,7 +11678,7 @@ const DefaultController = {
|
|
|
11681
11678
|
_CoreManager.default.setParseQuery(ParseQuery);
|
|
11682
11679
|
_CoreManager.default.setQueryController(DefaultController);
|
|
11683
11680
|
var _default = exports.default = ParseQuery;
|
|
11684
|
-
},{"./CoreManager":4,"./LocalDatastoreUtils":17,"./OfflineQuery":19,"./ParseError":24,"./ParseGeoPoint":26,"./ParseObject":30,"./encode":56,"./promiseUtils":61,"@babel/runtime-corejs3/core-js-stable/array/is-array":66,"@babel/runtime-corejs3/core-js-stable/instance/concat":68,"@babel/runtime-corejs3/core-js-stable/instance/filter":71,"@babel/runtime-corejs3/core-js-stable/instance/find":73,"@babel/runtime-corejs3/core-js-stable/instance/for-each":74,"@babel/runtime-corejs3/core-js-stable/instance/includes":75,"@babel/runtime-corejs3/core-js-stable/instance/index-of":76,"@babel/runtime-corejs3/core-js-stable/instance/keys":77,"@babel/runtime-corejs3/core-js-stable/instance/map":78,"@babel/runtime-corejs3/core-js-stable/instance/slice":80,"@babel/runtime-corejs3/core-js-stable/instance/sort":82,"@babel/runtime-corejs3/core-js-stable/instance/splice":83,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/core-js-stable/object/entries":92,"@babel/runtime-corejs3/core-js-stable/object/keys":96,"@babel/runtime-corejs3/core-js-stable/promise":98,"@babel/runtime-corejs3/helpers/defineProperty":103,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],34:[function(_dereq_,module,exports){
|
|
11681
|
+
},{"./CoreManager":4,"./LocalDatastoreUtils":17,"./OfflineQuery":19,"./ParseError":24,"./ParseGeoPoint":26,"./ParseObject":30,"./encode":56,"./promiseUtils":61,"@babel/runtime-corejs3/core-js-stable/array/is-array":66,"@babel/runtime-corejs3/core-js-stable/instance/bind":67,"@babel/runtime-corejs3/core-js-stable/instance/concat":68,"@babel/runtime-corejs3/core-js-stable/instance/filter":71,"@babel/runtime-corejs3/core-js-stable/instance/find":73,"@babel/runtime-corejs3/core-js-stable/instance/for-each":74,"@babel/runtime-corejs3/core-js-stable/instance/includes":75,"@babel/runtime-corejs3/core-js-stable/instance/index-of":76,"@babel/runtime-corejs3/core-js-stable/instance/keys":77,"@babel/runtime-corejs3/core-js-stable/instance/map":78,"@babel/runtime-corejs3/core-js-stable/instance/slice":80,"@babel/runtime-corejs3/core-js-stable/instance/sort":82,"@babel/runtime-corejs3/core-js-stable/instance/splice":83,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/core-js-stable/object/entries":92,"@babel/runtime-corejs3/core-js-stable/object/keys":96,"@babel/runtime-corejs3/core-js-stable/promise":98,"@babel/runtime-corejs3/helpers/defineProperty":103,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],34:[function(_dereq_,module,exports){
|
|
11685
11682
|
"use strict";
|
|
11686
11683
|
|
|
11687
11684
|
var _Object$defineProperty = _dereq_("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
@@ -11903,7 +11900,7 @@ class ParseRole extends _ParseObject.default {
|
|
|
11903
11900
|
* @param {string} name The name of the role.
|
|
11904
11901
|
* @param {object} options Standard options object with success and error
|
|
11905
11902
|
* callbacks.
|
|
11906
|
-
* @returns {
|
|
11903
|
+
* @returns {Parse.Object} Returns the object, so you can chain this call.
|
|
11907
11904
|
*/
|
|
11908
11905
|
setName(name, options) {
|
|
11909
11906
|
this._validateName(name);
|
|
@@ -11987,6 +11984,7 @@ var _CoreManager = _interopRequireDefault(_dereq_("./CoreManager"));
|
|
|
11987
11984
|
var _ParseObject = _interopRequireDefault(_dereq_("./ParseObject"));
|
|
11988
11985
|
var _ParseCLP = _interopRequireDefault(_dereq_("./ParseCLP"));
|
|
11989
11986
|
const FIELD_TYPES = ['String', 'Number', 'Boolean', 'Bytes', 'Date', 'File', 'GeoPoint', 'Polygon', 'Array', 'Object', 'Pointer', 'Relation'];
|
|
11987
|
+
|
|
11990
11988
|
/**
|
|
11991
11989
|
* A Parse.Schema object is for handling schema data from Parse.
|
|
11992
11990
|
* <p>All the schemas methods require MasterKey.
|
|
@@ -12161,9 +12159,9 @@ class ParseSchema {
|
|
|
12161
12159
|
* </ul>
|
|
12162
12160
|
* @returns {Parse.Schema} Returns the schema, so you can chain this call.
|
|
12163
12161
|
*/
|
|
12164
|
-
addField(name, type) {
|
|
12165
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
12162
|
+
addField(name, type, options) {
|
|
12166
12163
|
type = type || 'String';
|
|
12164
|
+
options = options || {};
|
|
12167
12165
|
if (!name) {
|
|
12168
12166
|
throw new Error('field name may not be null.');
|
|
12169
12167
|
}
|
|
@@ -12345,8 +12343,7 @@ class ParseSchema {
|
|
|
12345
12343
|
* @param {object} options See {@link https://parseplatform.org/Parse-SDK-JS/api/master/Parse.Schema.html#addField addField}
|
|
12346
12344
|
* @returns {Parse.Schema} Returns the schema, so you can chain this call.
|
|
12347
12345
|
*/
|
|
12348
|
-
addPointer(name, targetClass) {
|
|
12349
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
12346
|
+
addPointer(name, targetClass, options) {
|
|
12350
12347
|
if (!name) {
|
|
12351
12348
|
throw new Error('field name may not be null.');
|
|
12352
12349
|
}
|
|
@@ -12357,10 +12354,10 @@ class ParseSchema {
|
|
|
12357
12354
|
type: 'Pointer',
|
|
12358
12355
|
targetClass
|
|
12359
12356
|
};
|
|
12360
|
-
if (typeof options
|
|
12357
|
+
if (typeof options?.required === 'boolean') {
|
|
12361
12358
|
fieldOptions.required = options.required;
|
|
12362
12359
|
}
|
|
12363
|
-
if (options
|
|
12360
|
+
if (options?.defaultValue !== undefined) {
|
|
12364
12361
|
fieldOptions.defaultValue = options.defaultValue;
|
|
12365
12362
|
if (options.defaultValue instanceof _ParseObject.default) {
|
|
12366
12363
|
fieldOptions.defaultValue = options.defaultValue.toPointer();
|
|
@@ -13141,7 +13138,7 @@ class ParseUser extends _ParseObject.default {
|
|
|
13141
13138
|
* either from memory or localStorage, if necessary.
|
|
13142
13139
|
*
|
|
13143
13140
|
* @static
|
|
13144
|
-
* @returns {Parse.
|
|
13141
|
+
* @returns {Parse.User} The currently logged in Parse.User.
|
|
13145
13142
|
*/
|
|
13146
13143
|
static current() {
|
|
13147
13144
|
if (!canUseCurrentUser) {
|
|
@@ -13208,8 +13205,8 @@ class ParseUser extends _ParseObject.default {
|
|
|
13208
13205
|
}
|
|
13209
13206
|
const user = new this();
|
|
13210
13207
|
user._finishFetch({
|
|
13211
|
-
username
|
|
13212
|
-
password
|
|
13208
|
+
username,
|
|
13209
|
+
password
|
|
13213
13210
|
});
|
|
13214
13211
|
return user.logIn(options);
|
|
13215
13212
|
}
|
|
@@ -13239,8 +13236,8 @@ class ParseUser extends _ParseObject.default {
|
|
|
13239
13236
|
}
|
|
13240
13237
|
const user = new this();
|
|
13241
13238
|
user._finishFetch({
|
|
13242
|
-
username
|
|
13243
|
-
password
|
|
13239
|
+
username,
|
|
13240
|
+
password,
|
|
13244
13241
|
authData
|
|
13245
13242
|
});
|
|
13246
13243
|
return user.logIn(options);
|
|
@@ -13297,8 +13294,7 @@ class ParseUser extends _ParseObject.default {
|
|
|
13297
13294
|
* @static
|
|
13298
13295
|
* @returns {Promise} A promise that is fulfilled with the user is fetched.
|
|
13299
13296
|
*/
|
|
13300
|
-
static me(sessionToken) {
|
|
13301
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
13297
|
+
static me(sessionToken, options) {
|
|
13302
13298
|
const controller = _CoreManager.default.getUserController();
|
|
13303
13299
|
const meOptions = _ParseObject.default._getRequestOptions(options);
|
|
13304
13300
|
meOptions.sessionToken = sessionToken;
|
|
@@ -13347,8 +13343,7 @@ class ParseUser extends _ParseObject.default {
|
|
|
13347
13343
|
* @returns {Promise} A promise that is resolved when the session is
|
|
13348
13344
|
* destroyed on the server.
|
|
13349
13345
|
*/
|
|
13350
|
-
static logOut() {
|
|
13351
|
-
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
13346
|
+
static logOut(options) {
|
|
13352
13347
|
const controller = _CoreManager.default.getUserController();
|
|
13353
13348
|
return controller.logOut(options);
|
|
13354
13349
|
}
|
|
@@ -13709,7 +13704,7 @@ const DefaultController = {
|
|
|
13709
13704
|
},
|
|
13710
13705
|
logOut(options) {
|
|
13711
13706
|
const RESTController = _CoreManager.default.getRESTController();
|
|
13712
|
-
if (options
|
|
13707
|
+
if (options?.sessionToken) {
|
|
13713
13708
|
return RESTController.request('POST', 'logout', {}, options);
|
|
13714
13709
|
}
|
|
13715
13710
|
return DefaultController.currentUserAsync().then(currentUser => {
|
|
@@ -13737,7 +13732,7 @@ const DefaultController = {
|
|
|
13737
13732
|
requestPasswordReset(email, options) {
|
|
13738
13733
|
const RESTController = _CoreManager.default.getRESTController();
|
|
13739
13734
|
return RESTController.request('POST', 'requestPasswordReset', {
|
|
13740
|
-
email
|
|
13735
|
+
email
|
|
13741
13736
|
}, options);
|
|
13742
13737
|
},
|
|
13743
13738
|
async upgradeToRevocableSession(user, options) {
|
|
@@ -13781,7 +13776,7 @@ const DefaultController = {
|
|
|
13781
13776
|
requestEmailVerification(email, options) {
|
|
13782
13777
|
const RESTController = _CoreManager.default.getRESTController();
|
|
13783
13778
|
return RESTController.request('POST', 'verificationEmailRequest', {
|
|
13784
|
-
email
|
|
13779
|
+
email
|
|
13785
13780
|
}, options);
|
|
13786
13781
|
}
|
|
13787
13782
|
};
|
|
@@ -13904,8 +13899,9 @@ exports.default = void 0;
|
|
|
13904
13899
|
var _promise = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/promise"));
|
|
13905
13900
|
var _stringify = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/json/stringify"));
|
|
13906
13901
|
var _includes = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/includes"));
|
|
13907
|
-
var _forEach = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
|
|
13908
13902
|
var _indexOf = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
|
|
13903
|
+
var _bind = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/bind"));
|
|
13904
|
+
var _forEach = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
|
|
13909
13905
|
var _setTimeout2 = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/set-timeout"));
|
|
13910
13906
|
var _uuid = _interopRequireDefault(_dereq_("./uuid"));
|
|
13911
13907
|
var _CoreManager = _interopRequireDefault(_dereq_("./CoreManager"));
|
|
@@ -13989,10 +13985,11 @@ const RESTController = {
|
|
|
13989
13985
|
if (xhr.status >= 200 && xhr.status < 300) {
|
|
13990
13986
|
let response;
|
|
13991
13987
|
try {
|
|
13988
|
+
var _context2, _context3;
|
|
13992
13989
|
response = JSON.parse(xhr.responseText);
|
|
13993
13990
|
const availableHeaders = typeof xhr.getAllResponseHeaders === 'function' ? xhr.getAllResponseHeaders() : '';
|
|
13994
13991
|
headers = {};
|
|
13995
|
-
if (typeof xhr.getResponseHeader === 'function' && availableHeaders?.
|
|
13992
|
+
if (typeof xhr.getResponseHeader === 'function' && ((_context2 = availableHeaders) == null ? void 0 : (0, _bind.default)(_context3 = Function.call).call(_context3, (0, _indexOf.default)(_context2), _context2))?.('access-control-expose-headers') >= 0) {
|
|
13996
13993
|
const responseHeaders = xhr.getResponseHeader('access-control-expose-headers').split(', ');
|
|
13997
13994
|
(0, _forEach.default)(responseHeaders).call(responseHeaders, header => {
|
|
13998
13995
|
if ((0, _indexOf.default)(availableHeaders).call(availableHeaders, header.toLowerCase()) >= 0) {
|
|
@@ -14129,6 +14126,9 @@ const RESTController = {
|
|
|
14129
14126
|
throw new Error('Cannot use the Master Key, it has not been provided.');
|
|
14130
14127
|
}
|
|
14131
14128
|
}
|
|
14129
|
+
if (options.useMaintenanceKey) {
|
|
14130
|
+
payload._MaintenanceKey = _CoreManager.default.get('MAINTENANCE_KEY');
|
|
14131
|
+
}
|
|
14132
14132
|
if (_CoreManager.default.get('FORCE_REVOCABLE_SESSION')) {
|
|
14133
14133
|
payload._RevocableSession = '1';
|
|
14134
14134
|
}
|
|
@@ -14204,10 +14204,9 @@ const RESTController = {
|
|
|
14204
14204
|
return XHR;
|
|
14205
14205
|
}
|
|
14206
14206
|
};
|
|
14207
|
-
module.exports = RESTController;
|
|
14208
14207
|
var _default = exports.default = RESTController;
|
|
14209
14208
|
}).call(this)}).call(this,_dereq_('_process'))
|
|
14210
|
-
},{"./CoreManager":4,"./ParseError":24,"./Xhr.weapp":52,"./promiseUtils":61,"./uuid":64,"@babel/runtime-corejs3/core-js-stable/instance/for-each":74,"@babel/runtime-corejs3/core-js-stable/instance/includes":75,"@babel/runtime-corejs3/core-js-stable/instance/index-of":76,"@babel/runtime-corejs3/core-js-stable/json/stringify":86,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/core-js-stable/promise":98,"@babel/runtime-corejs3/core-js-stable/set-timeout":100,"@babel/runtime-corejs3/helpers/interopRequireDefault":104,"_process":108}],41:[function(_dereq_,module,exports){
|
|
14209
|
+
},{"./CoreManager":4,"./ParseError":24,"./Xhr.weapp":52,"./promiseUtils":61,"./uuid":64,"@babel/runtime-corejs3/core-js-stable/instance/bind":67,"@babel/runtime-corejs3/core-js-stable/instance/for-each":74,"@babel/runtime-corejs3/core-js-stable/instance/includes":75,"@babel/runtime-corejs3/core-js-stable/instance/index-of":76,"@babel/runtime-corejs3/core-js-stable/json/stringify":86,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/core-js-stable/promise":98,"@babel/runtime-corejs3/core-js-stable/set-timeout":100,"@babel/runtime-corejs3/helpers/interopRequireDefault":104,"_process":108}],41:[function(_dereq_,module,exports){
|
|
14211
14210
|
"use strict";
|
|
14212
14211
|
|
|
14213
14212
|
var _WeakMap = _dereq_("@babel/runtime-corejs3/core-js-stable/weak-map");
|
|
@@ -14413,7 +14412,6 @@ class SocketWeapp {
|
|
|
14413
14412
|
wx.closeSocket();
|
|
14414
14413
|
}
|
|
14415
14414
|
}
|
|
14416
|
-
module.exports = SocketWeapp;
|
|
14417
14415
|
var _default = exports.default = SocketWeapp;
|
|
14418
14416
|
},{"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/helpers/defineProperty":103,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],43:[function(_dereq_,module,exports){
|
|
14419
14417
|
"use strict";
|
|
@@ -14506,7 +14504,6 @@ const Storage = {
|
|
|
14506
14504
|
}
|
|
14507
14505
|
}
|
|
14508
14506
|
};
|
|
14509
|
-
module.exports = Storage;
|
|
14510
14507
|
var _default = exports.default = Storage;
|
|
14511
14508
|
},{"./CoreManager":4,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/core-js-stable/promise":98,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],44:[function(_dereq_,module,exports){
|
|
14512
14509
|
"use strict";
|
|
@@ -14545,7 +14542,6 @@ const StorageController = {
|
|
|
14545
14542
|
localStorage.clear();
|
|
14546
14543
|
}
|
|
14547
14544
|
};
|
|
14548
|
-
module.exports = StorageController;
|
|
14549
14545
|
var _default = exports.default = StorageController;
|
|
14550
14546
|
},{"@babel/runtime-corejs3/core-js-stable/object/define-property":91}],45:[function(_dereq_,module,exports){
|
|
14551
14547
|
"use strict";
|
|
@@ -14584,7 +14580,6 @@ const StorageController = {
|
|
|
14584
14580
|
}
|
|
14585
14581
|
}
|
|
14586
14582
|
};
|
|
14587
|
-
module.exports = StorageController;
|
|
14588
14583
|
var _default = exports.default = StorageController;
|
|
14589
14584
|
},{"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/core-js-stable/object/keys":96,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],46:[function(_dereq_,module,exports){
|
|
14590
14585
|
"use strict";
|
|
@@ -14601,7 +14596,6 @@ var _StorageController3 = _interopRequireDefault(_dereq_("./StorageController.we
|
|
|
14601
14596
|
var _StorageController4 = _interopRequireDefault(_dereq_("./StorageController.default"));
|
|
14602
14597
|
let StorageController = _StorageController4.default;
|
|
14603
14598
|
StorageController = _StorageController3.default;
|
|
14604
|
-
module.exports = StorageController;
|
|
14605
14599
|
var _default = exports.default = StorageController;
|
|
14606
14600
|
},{"./StorageController.browser":44,"./StorageController.default":45,"./StorageController.react-native":47,"./StorageController.weapp":48,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],47:[function(_dereq_,module,exports){
|
|
14607
14601
|
"use strict";
|
|
@@ -14686,7 +14680,6 @@ const StorageController = {
|
|
|
14686
14680
|
return _CoreManager.default.getAsyncStorage().clear();
|
|
14687
14681
|
}
|
|
14688
14682
|
};
|
|
14689
|
-
module.exports = StorageController;
|
|
14690
14683
|
var _default = exports.default = StorageController;
|
|
14691
14684
|
},{"./CoreManager":4,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/core-js-stable/promise":98,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],48:[function(_dereq_,module,exports){
|
|
14692
14685
|
"use strict";
|
|
@@ -14726,7 +14719,6 @@ const StorageController = {
|
|
|
14726
14719
|
wx.clearStorageSync();
|
|
14727
14720
|
}
|
|
14728
14721
|
};
|
|
14729
|
-
module.exports = StorageController;
|
|
14730
14722
|
var _default = exports.default = StorageController;
|
|
14731
14723
|
},{"@babel/runtime-corejs3/core-js-stable/instance/keys":77,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],49:[function(_dereq_,module,exports){
|
|
14732
14724
|
"use strict";
|
|
@@ -14775,7 +14767,6 @@ class TaskQueue {
|
|
|
14775
14767
|
}
|
|
14776
14768
|
}
|
|
14777
14769
|
}
|
|
14778
|
-
module.exports = TaskQueue;
|
|
14779
14770
|
var _default = exports.default = TaskQueue;
|
|
14780
14771
|
},{"./promiseUtils":61,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/helpers/defineProperty":103,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],50:[function(_dereq_,module,exports){
|
|
14781
14772
|
"use strict";
|
|
@@ -14959,7 +14950,6 @@ try {
|
|
|
14959
14950
|
} catch (_) {
|
|
14960
14951
|
// WebSocket unavailable
|
|
14961
14952
|
}
|
|
14962
|
-
module.exports = WebSocketController;
|
|
14963
14953
|
var _default = exports.default = WebSocketController;
|
|
14964
14954
|
},{"./Socket.weapp":42,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/helpers/interopRequireDefault":104,"ws":513}],52:[function(_dereq_,module,exports){
|
|
14965
14955
|
"use strict";
|
|
@@ -15073,7 +15063,6 @@ class XhrWeapp {
|
|
|
15073
15063
|
});
|
|
15074
15064
|
}
|
|
15075
15065
|
}
|
|
15076
|
-
module.exports = XhrWeapp;
|
|
15077
15066
|
var _default = exports.default = XhrWeapp;
|
|
15078
15067
|
},{"@babel/runtime-corejs3/core-js-stable/json/stringify":86,"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"@babel/runtime-corejs3/helpers/defineProperty":103,"@babel/runtime-corejs3/helpers/interopRequireDefault":104}],53:[function(_dereq_,module,exports){
|
|
15079
15068
|
"use strict";
|
|
@@ -15642,7 +15631,6 @@ let uuid = function () {
|
|
|
15642
15631
|
s[8] = s[13] = s[18] = s[23] = '-';
|
|
15643
15632
|
return s.join('');
|
|
15644
15633
|
};
|
|
15645
|
-
module.exports = uuid;
|
|
15646
15634
|
var _default = exports.default = uuid;
|
|
15647
15635
|
},{"@babel/runtime-corejs3/core-js-stable/object/define-property":91,"uuid":492}],65:[function(_dereq_,module,exports){
|
|
15648
15636
|
module.exports = _dereq_("core-js-pure/stable/array/from");
|