parse 5.1.0-alpha.4 → 5.1.0-alpha.5
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 +9 -5
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +9 -5
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/CoreManager.js +1 -1
- package/lib/browser/RESTController.js +6 -2
- package/lib/node/CoreManager.js +1 -1
- package/lib/node/RESTController.js +5 -2
- package/lib/react-native/CoreManager.js +1 -1
- package/lib/react-native/RESTController.js +5 -2
- package/lib/weapp/CoreManager.js +1 -1
- package/lib/weapp/RESTController.js +6 -2
- package/package.json +1 -1
package/dist/parse.weapp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Parse JavaScript SDK v5.1.0-alpha.
|
|
2
|
+
* Parse JavaScript SDK v5.1.0-alpha.5
|
|
3
3
|
*
|
|
4
4
|
* The source tree of this library can be found at
|
|
5
5
|
* https://github.com/ParsePlatform/Parse-SDK-JS
|
|
@@ -557,7 +557,7 @@ var config /*: Config & { [key: string]: mixed }*/ = {
|
|
|
557
557
|
SERVER_AUTH_TOKEN: null,
|
|
558
558
|
LIVEQUERY_SERVER_URL: null,
|
|
559
559
|
ENCRYPTED_KEY: null,
|
|
560
|
-
VERSION: 'js' + "5.1.0-alpha.
|
|
560
|
+
VERSION: 'js' + "5.1.0-alpha.5",
|
|
561
561
|
APPLICATION_ID: null,
|
|
562
562
|
JAVASCRIPT_KEY: null,
|
|
563
563
|
MASTER_KEY: null,
|
|
@@ -16820,6 +16820,7 @@ var _typeof2 = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/helpers/ty
|
|
|
16820
16820
|
var _promise = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/promise"));
|
|
16821
16821
|
var _stringify = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/json/stringify"));
|
|
16822
16822
|
var _includes = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/includes"));
|
|
16823
|
+
var _indexOf = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
|
|
16823
16824
|
var _forEach = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
|
|
16824
16825
|
var _setTimeout2 = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/set-timeout"));
|
|
16825
16826
|
var _CoreManager = _interopRequireDefault(_dereq_("./CoreManager"));
|
|
@@ -16945,11 +16946,14 @@ var RESTController = {
|
|
|
16945
16946
|
var response;
|
|
16946
16947
|
try {
|
|
16947
16948
|
response = JSON.parse(xhr.responseText);
|
|
16949
|
+
var availableHeaders = typeof xhr.getAllResponseHeaders === 'function' ? xhr.getAllResponseHeaders() : "";
|
|
16948
16950
|
headers = {};
|
|
16949
|
-
if (typeof xhr.getResponseHeader === 'function' &&
|
|
16951
|
+
if (typeof xhr.getResponseHeader === 'function' && (availableHeaders === null || availableHeaders === void 0 ? void 0 : (0, _indexOf.default)(availableHeaders).call(availableHeaders, 'access-control-expose-headers')) >= 0) {
|
|
16950
16952
|
var responseHeaders = xhr.getResponseHeader('access-control-expose-headers').split(', ');
|
|
16951
16953
|
(0, _forEach.default)(responseHeaders).call(responseHeaders, function (header) {
|
|
16952
|
-
|
|
16954
|
+
if ((0, _indexOf.default)(availableHeaders).call(availableHeaders, header.toLowerCase()) >= 0) {
|
|
16955
|
+
headers[header] = xhr.getResponseHeader(header.toLowerCase());
|
|
16956
|
+
}
|
|
16953
16957
|
});
|
|
16954
16958
|
}
|
|
16955
16959
|
} catch (e) {
|
|
@@ -17153,7 +17157,7 @@ var RESTController = {
|
|
|
17153
17157
|
};
|
|
17154
17158
|
module.exports = RESTController;
|
|
17155
17159
|
}).call(this)}).call(this,_dereq_('_process'))
|
|
17156
|
-
},{"./CoreManager":4,"./ParseError":23,"./Xhr.weapp":47,"./promiseUtils":56,"./uuid":59,"@babel/runtime-corejs3/core-js-stable/instance/filter":66,"@babel/runtime-corejs3/core-js-stable/instance/for-each":69,"@babel/runtime-corejs3/core-js-stable/instance/includes":70,"@babel/runtime-corejs3/core-js-stable/json/stringify":80,"@babel/runtime-corejs3/core-js-stable/object/define-properties":85,"@babel/runtime-corejs3/core-js-stable/object/define-property":86,"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor":89,"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors":90,"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols":91,"@babel/runtime-corejs3/core-js-stable/object/keys":93,"@babel/runtime-corejs3/core-js-stable/promise":95,"@babel/runtime-corejs3/core-js-stable/set-timeout":98,"@babel/runtime-corejs3/helpers/defineProperty":111,"@babel/runtime-corejs3/helpers/interopRequireDefault":115,"@babel/runtime-corejs3/helpers/typeof":130,"_process":134}],39:[function(_dereq_,module,exports){
|
|
17160
|
+
},{"./CoreManager":4,"./ParseError":23,"./Xhr.weapp":47,"./promiseUtils":56,"./uuid":59,"@babel/runtime-corejs3/core-js-stable/instance/filter":66,"@babel/runtime-corejs3/core-js-stable/instance/for-each":69,"@babel/runtime-corejs3/core-js-stable/instance/includes":70,"@babel/runtime-corejs3/core-js-stable/instance/index-of":71,"@babel/runtime-corejs3/core-js-stable/json/stringify":80,"@babel/runtime-corejs3/core-js-stable/object/define-properties":85,"@babel/runtime-corejs3/core-js-stable/object/define-property":86,"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor":89,"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors":90,"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols":91,"@babel/runtime-corejs3/core-js-stable/object/keys":93,"@babel/runtime-corejs3/core-js-stable/promise":95,"@babel/runtime-corejs3/core-js-stable/set-timeout":98,"@babel/runtime-corejs3/helpers/defineProperty":111,"@babel/runtime-corejs3/helpers/interopRequireDefault":115,"@babel/runtime-corejs3/helpers/typeof":130,"_process":134}],39:[function(_dereq_,module,exports){
|
|
17157
17161
|
"use strict";
|
|
17158
17162
|
|
|
17159
17163
|
var _typeof = _dereq_("@babel/runtime-corejs3/helpers/typeof");
|