parse 4.0.1 → 4.1.0-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.
- package/dist/parse.js +17994 -26193
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +8738 -17728
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/Analytics.js +2 -20
- package/lib/browser/AnonymousUtils.js +6 -35
- package/lib/browser/Cloud.js +12 -70
- package/lib/browser/CloudCode.js +0 -3
- package/lib/browser/CoreManager.js +46 -184
- package/lib/browser/CryptoController.js +2 -16
- package/lib/browser/EventEmitter.js +1 -1
- package/lib/browser/EventuallyQueue.js +277 -824
- package/lib/browser/FacebookUtils.js +6 -35
- package/lib/browser/IndexedDBStorageController.js +3 -14
- package/lib/browser/InstallationController.js +2 -13
- package/lib/browser/LiveQueryClient.js +87 -204
- package/lib/browser/LiveQuerySubscription.js +10 -39
- package/lib/browser/LocalDatastore.js +451 -1081
- package/lib/browser/LocalDatastoreController.js +145 -602
- package/lib/browser/LocalDatastoreController.react-native.js +137 -573
- package/lib/browser/LocalDatastoreUtils.js +2 -12
- package/lib/browser/ObjectStateMutations.js +18 -121
- package/lib/browser/OfflineQuery.js +42 -222
- package/lib/browser/Parse.js +12 -106
- package/lib/browser/ParseACL.js +33 -141
- package/lib/browser/ParseCLP.js +96 -314
- package/lib/browser/ParseConfig.js +18 -88
- package/lib/browser/ParseError.js +63 -90
- package/lib/browser/ParseFile.js +128 -685
- package/lib/browser/ParseGeoPoint.js +23 -82
- package/lib/browser/ParseHooks.js +1 -34
- package/lib/browser/ParseInstallation.js +4 -32
- package/lib/browser/ParseLiveQuery.js +96 -505
- package/lib/browser/ParseObject.js +628 -1840
- package/lib/browser/ParseOp.js +41 -287
- package/lib/browser/ParsePolygon.js +13 -63
- package/lib/browser/ParseQuery.js +404 -1505
- package/lib/browser/ParseRelation.js +12 -61
- package/lib/browser/ParseRole.js +13 -75
- package/lib/browser/ParseSchema.js +49 -201
- package/lib/browser/ParseSession.js +11 -69
- package/lib/browser/ParseUser.js +274 -1127
- package/lib/browser/Push.js +7 -43
- package/lib/browser/RESTController.js +18 -140
- package/lib/browser/SingleInstanceStateController.js +19 -137
- package/lib/browser/Socket.weapp.js +2 -12
- package/lib/browser/Storage.js +10 -73
- package/lib/browser/StorageController.browser.js +4 -17
- package/lib/browser/StorageController.default.js +4 -17
- package/lib/browser/StorageController.react-native.js +6 -33
- package/lib/browser/StorageController.weapp.js +5 -16
- package/lib/browser/TaskQueue.js +1 -22
- package/lib/browser/UniqueInstanceStateController.js +19 -142
- package/lib/browser/Xhr.weapp.js +0 -17
- package/lib/browser/arrayContainsObject.js +2 -16
- package/lib/browser/canBeSerialized.js +3 -33
- package/lib/browser/decode.js +3 -33
- package/lib/browser/encode.js +9 -70
- package/lib/browser/equals.js +2 -25
- package/lib/browser/escape.js +1 -8
- package/lib/browser/isRevocableSession.js +2 -11
- package/lib/browser/parseDate.js +2 -13
- package/lib/browser/promiseUtils.js +3 -21
- package/lib/browser/unique.js +3 -17
- package/lib/browser/unsavedChildren.js +6 -50
- package/lib/browser/uuid.js +3 -1
- package/lib/node/Analytics.js +1 -18
- package/lib/node/AnonymousUtils.js +5 -37
- package/lib/node/Cloud.js +10 -66
- package/lib/node/CloudCode.js +0 -3
- package/lib/node/CoreManager.js +47 -220
- package/lib/node/CryptoController.js +2 -16
- package/lib/node/EventEmitter.js +1 -1
- package/lib/node/EventuallyQueue.js +16 -123
- package/lib/node/FacebookUtils.js +5 -37
- package/lib/node/IndexedDBStorageController.js +3 -19
- package/lib/node/InstallationController.js +2 -15
- package/lib/node/LiveQueryClient.js +56 -136
- package/lib/node/LiveQuerySubscription.js +7 -16
- package/lib/node/LocalDatastore.js +19 -175
- package/lib/node/LocalDatastoreController.js +6 -38
- package/lib/node/LocalDatastoreController.react-native.js +6 -45
- package/lib/node/LocalDatastoreUtils.js +1 -6
- package/lib/node/ObjectStateMutations.js +13 -93
- package/lib/node/OfflineQuery.js +20 -152
- package/lib/node/Parse.js +11 -99
- package/lib/node/ParseACL.js +32 -150
- package/lib/node/ParseCLP.js +69 -262
- package/lib/node/ParseConfig.js +16 -84
- package/lib/node/ParseError.js +61 -65
- package/lib/node/ParseFile.js +49 -205
- package/lib/node/ParseGeoPoint.js +21 -82
- package/lib/node/ParseHooks.js +0 -35
- package/lib/node/ParseInstallation.js +1 -10
- package/lib/node/ParseLiveQuery.js +10 -36
- package/lib/node/ParseObject.js +193 -939
- package/lib/node/ParseOp.js +31 -255
- package/lib/node/ParsePolygon.js +12 -62
- package/lib/node/ParseQuery.js +170 -882
- package/lib/node/ParseRelation.js +11 -61
- package/lib/node/ParseRole.js +10 -57
- package/lib/node/ParseSchema.js +46 -222
- package/lib/node/ParseSession.js +8 -50
- package/lib/node/ParseUser.js +107 -576
- package/lib/node/Push.js +4 -37
- package/lib/node/RESTController.js +8 -110
- package/lib/node/SingleInstanceStateController.js +17 -130
- package/lib/node/Socket.weapp.js +2 -9
- package/lib/node/Storage.js +10 -83
- package/lib/node/StorageController.browser.js +4 -23
- package/lib/node/StorageController.default.js +5 -21
- package/lib/node/StorageController.react-native.js +6 -40
- package/lib/node/StorageController.weapp.js +6 -21
- package/lib/node/TaskQueue.js +1 -17
- package/lib/node/UniqueInstanceStateController.js +16 -133
- package/lib/node/Xhr.weapp.js +0 -15
- package/lib/node/arrayContainsObject.js +1 -12
- package/lib/node/canBeSerialized.js +2 -28
- package/lib/node/decode.js +1 -26
- package/lib/node/encode.js +3 -54
- package/lib/node/equals.js +0 -18
- package/lib/node/escape.js +1 -6
- package/lib/node/isRevocableSession.js +1 -5
- package/lib/node/parseDate.js +1 -7
- package/lib/node/promiseUtils.js +2 -14
- package/lib/node/unique.js +1 -11
- package/lib/node/unsavedChildren.js +2 -38
- package/lib/node/uuid.js +6 -1
- package/lib/react-native/Analytics.js +0 -9
- package/lib/react-native/AnonymousUtils.js +0 -10
- package/lib/react-native/Cloud.js +0 -26
- package/lib/react-native/CoreManager.js +1 -5
- package/lib/react-native/CryptoController.js +0 -2
- package/lib/react-native/EventEmitter.js +0 -2
- package/lib/react-native/EventuallyQueue.js +4 -52
- package/lib/react-native/FacebookUtils.js +0 -22
- package/lib/react-native/IndexedDBStorageController.js +0 -1
- package/lib/react-native/InstallationController.js +0 -6
- package/lib/react-native/LiveQueryClient.js +24 -101
- package/lib/react-native/LiveQuerySubscription.js +3 -27
- package/lib/react-native/LocalDatastore.js +6 -113
- package/lib/react-native/LocalDatastoreController.js +0 -21
- package/lib/react-native/LocalDatastoreController.react-native.js +4 -31
- package/lib/react-native/LocalDatastoreUtils.js +0 -1
- package/lib/react-native/ObjectStateMutations.js +0 -34
- package/lib/react-native/OfflineQuery.js +2 -137
- package/lib/react-native/Parse.js +0 -65
- package/lib/react-native/ParseACL.js +0 -44
- package/lib/react-native/ParseCLP.js +32 -96
- package/lib/react-native/ParseConfig.js +0 -42
- package/lib/react-native/ParseError.js +1 -21
- package/lib/react-native/ParseFile.js +3 -72
- package/lib/react-native/ParseGeoPoint.js +0 -17
- package/lib/react-native/ParseHooks.js +0 -30
- package/lib/react-native/ParseInstallation.js +1 -23
- package/lib/react-native/ParseLiveQuery.js +3 -25
- package/lib/react-native/ParseObject.js +4 -371
- package/lib/react-native/ParseOp.js +1 -138
- package/lib/react-native/ParsePolygon.js +0 -24
- package/lib/react-native/ParseQuery.js +6 -262
- package/lib/react-native/ParseRelation.js +0 -25
- package/lib/react-native/ParseRole.js +1 -36
- package/lib/react-native/ParseSchema.js +0 -51
- package/lib/react-native/ParseSession.js +1 -40
- package/lib/react-native/ParseUser.js +1 -224
- package/lib/react-native/Push.js +0 -16
- package/lib/react-native/RESTController.js +1 -70
- package/lib/react-native/SingleInstanceStateController.js +0 -44
- package/lib/react-native/Socket.weapp.js +2 -12
- package/lib/react-native/Storage.js +0 -24
- package/lib/react-native/StorageController.browser.js +0 -2
- package/lib/react-native/StorageController.default.js +0 -1
- package/lib/react-native/StorageController.react-native.js +0 -2
- package/lib/react-native/TaskQueue.js +0 -15
- package/lib/react-native/UniqueInstanceStateController.js +0 -47
- package/lib/react-native/Xhr.weapp.js +0 -16
- package/lib/react-native/arrayContainsObject.js +0 -5
- package/lib/react-native/canBeSerialized.js +0 -18
- package/lib/react-native/decode.js +0 -21
- package/lib/react-native/encode.js +0 -25
- package/lib/react-native/equals.js +0 -18
- package/lib/react-native/escape.js +0 -1
- package/lib/react-native/isRevocableSession.js +0 -1
- package/lib/react-native/parseDate.js +0 -3
- package/lib/react-native/promiseUtils.js +0 -13
- package/lib/react-native/unique.js +0 -4
- package/lib/react-native/unsavedChildren.js +0 -21
- package/lib/react-native/uuid.js +3 -1
- package/lib/weapp/Analytics.js +2 -20
- package/lib/weapp/AnonymousUtils.js +6 -35
- package/lib/weapp/Cloud.js +12 -70
- package/lib/weapp/CloudCode.js +0 -3
- package/lib/weapp/CoreManager.js +46 -184
- package/lib/weapp/CryptoController.js +2 -16
- package/lib/weapp/EventEmitter.js +1 -1
- package/lib/weapp/EventuallyQueue.js +277 -824
- package/lib/weapp/FacebookUtils.js +6 -35
- package/lib/weapp/IndexedDBStorageController.js +3 -14
- package/lib/weapp/InstallationController.js +2 -13
- package/lib/weapp/LiveQueryClient.js +87 -204
- package/lib/weapp/LiveQuerySubscription.js +10 -39
- package/lib/weapp/LocalDatastore.js +451 -1081
- package/lib/weapp/LocalDatastoreController.js +145 -602
- package/lib/weapp/LocalDatastoreController.react-native.js +137 -573
- package/lib/weapp/LocalDatastoreUtils.js +2 -12
- package/lib/weapp/ObjectStateMutations.js +18 -121
- package/lib/weapp/OfflineQuery.js +42 -222
- package/lib/weapp/Parse.js +12 -106
- package/lib/weapp/ParseACL.js +33 -141
- package/lib/weapp/ParseCLP.js +96 -314
- package/lib/weapp/ParseConfig.js +18 -88
- package/lib/weapp/ParseError.js +63 -90
- package/lib/weapp/ParseFile.js +129 -686
- package/lib/weapp/ParseGeoPoint.js +23 -82
- package/lib/weapp/ParseHooks.js +1 -34
- package/lib/weapp/ParseInstallation.js +4 -32
- package/lib/weapp/ParseLiveQuery.js +96 -505
- package/lib/weapp/ParseObject.js +628 -1840
- package/lib/weapp/ParseOp.js +41 -287
- package/lib/weapp/ParsePolygon.js +13 -63
- package/lib/weapp/ParseQuery.js +404 -1505
- package/lib/weapp/ParseRelation.js +12 -61
- package/lib/weapp/ParseRole.js +13 -75
- package/lib/weapp/ParseSchema.js +49 -201
- package/lib/weapp/ParseSession.js +11 -69
- package/lib/weapp/ParseUser.js +274 -1127
- package/lib/weapp/Push.js +7 -43
- package/lib/weapp/RESTController.js +18 -140
- package/lib/weapp/SingleInstanceStateController.js +19 -137
- package/lib/weapp/Socket.weapp.js +2 -12
- package/lib/weapp/Storage.js +10 -73
- package/lib/weapp/StorageController.browser.js +4 -17
- package/lib/weapp/StorageController.default.js +4 -17
- package/lib/weapp/StorageController.react-native.js +6 -33
- package/lib/weapp/StorageController.weapp.js +5 -16
- package/lib/weapp/TaskQueue.js +1 -22
- package/lib/weapp/UniqueInstanceStateController.js +19 -142
- package/lib/weapp/Xhr.weapp.js +0 -17
- package/lib/weapp/arrayContainsObject.js +2 -16
- package/lib/weapp/canBeSerialized.js +3 -33
- package/lib/weapp/decode.js +3 -33
- package/lib/weapp/encode.js +9 -70
- package/lib/weapp/equals.js +2 -25
- package/lib/weapp/escape.js +1 -8
- package/lib/weapp/isRevocableSession.js +2 -11
- package/lib/weapp/parseDate.js +2 -13
- package/lib/weapp/promiseUtils.js +3 -21
- package/lib/weapp/unique.js +3 -17
- package/lib/weapp/unsavedChildren.js +6 -50
- package/lib/weapp/uuid.js +1 -6
- package/package.json +45 -43
|
@@ -1,62 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
6
|
-
|
|
7
3
|
var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
|
|
8
|
-
|
|
4
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
9
6
|
_Object$defineProperty(exports, "__esModule", {
|
|
10
7
|
value: true
|
|
11
8
|
});
|
|
12
|
-
|
|
13
9
|
exports.default = void 0;
|
|
14
|
-
|
|
15
10
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));
|
|
16
|
-
|
|
17
11
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));
|
|
18
|
-
|
|
19
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
20
|
-
|
|
21
13
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
|
|
22
|
-
|
|
23
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
|
|
24
|
-
|
|
25
15
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"));
|
|
26
|
-
|
|
27
16
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf"));
|
|
28
|
-
|
|
29
17
|
var _CoreManager = _interopRequireDefault(require("./CoreManager"));
|
|
30
|
-
|
|
31
18
|
var _isRevocableSession = _interopRequireDefault(require("./isRevocableSession"));
|
|
32
|
-
|
|
33
19
|
var _ParseObject2 = _interopRequireDefault(require("./ParseObject"));
|
|
34
|
-
|
|
35
20
|
var _ParseUser = _interopRequireDefault(require("./ParseUser"));
|
|
36
|
-
|
|
37
21
|
function _createSuper(Derived) {
|
|
38
22
|
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
39
|
-
|
|
40
23
|
return function () {
|
|
41
24
|
var Super = (0, _getPrototypeOf2.default)(Derived),
|
|
42
|
-
|
|
43
|
-
|
|
25
|
+
result;
|
|
44
26
|
if (hasNativeReflectConstruct) {
|
|
45
27
|
var NewTarget = (0, _getPrototypeOf2.default)(this).constructor;
|
|
46
28
|
result = _Reflect$construct(Super, arguments, NewTarget);
|
|
47
29
|
} else {
|
|
48
30
|
result = Super.apply(this, arguments);
|
|
49
31
|
}
|
|
50
|
-
|
|
51
32
|
return (0, _possibleConstructorReturn2.default)(this, result);
|
|
52
33
|
};
|
|
53
34
|
}
|
|
54
|
-
|
|
55
35
|
function _isNativeReflectConstruct() {
|
|
56
36
|
if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
|
|
57
37
|
if (_Reflect$construct.sham) return false;
|
|
58
38
|
if (typeof Proxy === "function") return true;
|
|
59
|
-
|
|
60
39
|
try {
|
|
61
40
|
Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {}));
|
|
62
41
|
return true;
|
|
@@ -72,51 +51,36 @@ function _isNativeReflectConstruct() {
|
|
|
72
51
|
* @alias Parse.Session
|
|
73
52
|
* @augments Parse.Object
|
|
74
53
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
54
|
var ParseSession = /*#__PURE__*/function (_ParseObject) {
|
|
78
55
|
(0, _inherits2.default)(ParseSession, _ParseObject);
|
|
79
|
-
|
|
80
56
|
var _super = _createSuper(ParseSession);
|
|
81
57
|
/**
|
|
82
58
|
* @param {object} attributes The initial set of data to store in the user.
|
|
83
59
|
*/
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
function ParseSession(attributes
|
|
87
|
-
/*: ?AttributeMap*/
|
|
88
|
-
) {
|
|
60
|
+
function ParseSession(attributes /*: ?AttributeMap*/) {
|
|
89
61
|
var _this;
|
|
90
|
-
|
|
91
62
|
(0, _classCallCheck2.default)(this, ParseSession);
|
|
92
63
|
_this = _super.call(this, '_Session');
|
|
93
|
-
|
|
94
64
|
if (attributes && (0, _typeof2.default)(attributes) === 'object') {
|
|
95
65
|
if (!_this.set(attributes || {})) {
|
|
96
66
|
throw new Error("Can't create an invalid Session");
|
|
97
67
|
}
|
|
98
68
|
}
|
|
99
|
-
|
|
100
69
|
return _this;
|
|
101
70
|
}
|
|
71
|
+
|
|
102
72
|
/**
|
|
103
73
|
* Returns the session token string.
|
|
104
74
|
*
|
|
105
75
|
* @returns {string}
|
|
106
76
|
*/
|
|
107
|
-
|
|
108
|
-
|
|
109
77
|
(0, _createClass2.default)(ParseSession, [{
|
|
110
78
|
key: "getSessionToken",
|
|
111
|
-
value: function ()
|
|
112
|
-
/*: string*/
|
|
113
|
-
{
|
|
79
|
+
value: function () /*: string*/{
|
|
114
80
|
var token = this.get('sessionToken');
|
|
115
|
-
|
|
116
81
|
if (typeof token === 'string') {
|
|
117
82
|
return token;
|
|
118
83
|
}
|
|
119
|
-
|
|
120
84
|
return '';
|
|
121
85
|
}
|
|
122
86
|
}], [{
|
|
@@ -124,6 +88,7 @@ var ParseSession = /*#__PURE__*/function (_ParseObject) {
|
|
|
124
88
|
value: function () {
|
|
125
89
|
return ['createdWith', 'expiresAt', 'installationId', 'restricted', 'sessionToken', 'user'];
|
|
126
90
|
}
|
|
91
|
+
|
|
127
92
|
/**
|
|
128
93
|
* Retrieves the Session object for the currently logged in session.
|
|
129
94
|
*
|
|
@@ -133,31 +98,24 @@ var ParseSession = /*#__PURE__*/function (_ParseObject) {
|
|
|
133
98
|
* object after it has been fetched. If there is no current user, the
|
|
134
99
|
* promise will be rejected.
|
|
135
100
|
*/
|
|
136
|
-
|
|
137
101
|
}, {
|
|
138
102
|
key: "current",
|
|
139
|
-
value: function (options
|
|
140
|
-
/*: FullOptions*/
|
|
141
|
-
) {
|
|
103
|
+
value: function (options /*: FullOptions*/) {
|
|
142
104
|
options = options || {};
|
|
143
|
-
|
|
144
105
|
var controller = _CoreManager.default.getSessionController();
|
|
145
|
-
|
|
146
106
|
var sessionOptions = {};
|
|
147
|
-
|
|
148
107
|
if (options.hasOwnProperty('useMasterKey')) {
|
|
149
108
|
sessionOptions.useMasterKey = options.useMasterKey;
|
|
150
109
|
}
|
|
151
|
-
|
|
152
110
|
return _ParseUser.default.currentAsync().then(function (user) {
|
|
153
111
|
if (!user) {
|
|
154
112
|
return _promise.default.reject('There is no current user.');
|
|
155
113
|
}
|
|
156
|
-
|
|
157
114
|
sessionOptions.sessionToken = user.getSessionToken();
|
|
158
115
|
return controller.getSession(sessionOptions);
|
|
159
116
|
});
|
|
160
117
|
}
|
|
118
|
+
|
|
161
119
|
/**
|
|
162
120
|
* Determines whether the current session token is revocable.
|
|
163
121
|
* This method is useful for migrating Express.js or Node.js web apps to
|
|
@@ -168,46 +126,30 @@ var ParseSession = /*#__PURE__*/function (_ParseObject) {
|
|
|
168
126
|
* @static
|
|
169
127
|
* @returns {boolean}
|
|
170
128
|
*/
|
|
171
|
-
|
|
172
129
|
}, {
|
|
173
130
|
key: "isCurrentSessionRevocable",
|
|
174
|
-
value: function ()
|
|
175
|
-
/*: boolean*/
|
|
176
|
-
{
|
|
131
|
+
value: function () /*: boolean*/{
|
|
177
132
|
var currentUser = _ParseUser.default.current();
|
|
178
|
-
|
|
179
133
|
if (currentUser) {
|
|
180
134
|
return (0, _isRevocableSession.default)(currentUser.getSessionToken() || '');
|
|
181
135
|
}
|
|
182
|
-
|
|
183
136
|
return false;
|
|
184
137
|
}
|
|
185
138
|
}]);
|
|
186
139
|
return ParseSession;
|
|
187
140
|
}(_ParseObject2.default);
|
|
188
|
-
|
|
189
141
|
_ParseObject2.default.registerSubclass('_Session', ParseSession);
|
|
190
|
-
|
|
191
142
|
var DefaultController = {
|
|
192
|
-
getSession: function (options
|
|
193
|
-
/*: RequestOptions*/
|
|
194
|
-
)
|
|
195
|
-
/*: Promise<ParseSession>*/
|
|
196
|
-
{
|
|
143
|
+
getSession: function (options /*: RequestOptions*/) /*: Promise<ParseSession>*/{
|
|
197
144
|
var RESTController = _CoreManager.default.getRESTController();
|
|
198
|
-
|
|
199
145
|
var session = new ParseSession();
|
|
200
146
|
return RESTController.request('GET', 'sessions/me', {}, options).then(function (sessionData) {
|
|
201
147
|
session._finishFetch(sessionData);
|
|
202
|
-
|
|
203
148
|
session._setExisted(true);
|
|
204
|
-
|
|
205
149
|
return session;
|
|
206
150
|
});
|
|
207
151
|
}
|
|
208
152
|
};
|
|
209
|
-
|
|
210
153
|
_CoreManager.default.setSessionController(DefaultController);
|
|
211
|
-
|
|
212
154
|
var _default = ParseSession;
|
|
213
155
|
exports.default = _default;
|