Socket
Socket
Sign inDemoInstall

parse

Package Overview
Dependencies
Maintainers
7
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

CHANGELOG.md
# Parse-SDK-JS
## 2.0.1
- Ensure we only read the job status id header if present.
## 2.0.0

@@ -4,0 +8,0 @@

2

lib/browser/CoreManager.js

@@ -20,3 +20,3 @@ 'use strict';

LIVEQUERY_SERVER_URL: null,
VERSION: 'js' + '2.0.0',
VERSION: 'js' + '2.0.1',
APPLICATION_ID: null,

@@ -23,0 +23,0 @@ JAVASCRIPT_KEY: null,

@@ -268,3 +268,5 @@ 'use strict';

url += 'files/' + name;
return _CoreManager2.default.getRESTController().ajax('POST', url, source.file, headers);
return _CoreManager2.default.getRESTController().ajax('POST', url, source.file, headers).then(function (res) {
return res.response;
});
},

@@ -271,0 +273,0 @@

@@ -1480,3 +1480,3 @@ 'use strict';

* notation to specify which fields in the included object are also fetched.
* @param {String} key The name of the key to include.
* @param {...String|Array<String>} key The name(s) of the key(s) to include.
* @return {Parse.Query} Returns the query, so you can chain this call.

@@ -1508,3 +1508,3 @@ */

* specified in each of the calls will be included.
* @param {Array} keys The names of the keys to include.
* @param {...String|Array<String>} keys The name(s) of the key(s) to include.
* @return {Parse.Query} Returns the query, so you can chain this call.

@@ -1511,0 +1511,0 @@ */

@@ -114,5 +114,4 @@ 'use strict';

if (typeof xhr.getResponseHeader === 'function') {
var jobStatusId = xhr.getResponseHeader('x-parse-job-status-id');
if (jobStatusId) {
response = jobStatusId;
if ((xhr.getAllResponseHeaders() || '').includes('x-parse-job-status-id: ')) {
response = xhr.getResponseHeader('x-parse-job-status-id');
}

@@ -119,0 +118,0 @@ }

@@ -20,3 +20,3 @@ 'use strict';

LIVEQUERY_SERVER_URL: null,
VERSION: 'js' + '2.0.0',
VERSION: 'js' + '2.0.1',
APPLICATION_ID: null,

@@ -23,0 +23,0 @@ JAVASCRIPT_KEY: null,

@@ -268,3 +268,5 @@ 'use strict';

url += 'files/' + name;
return _CoreManager2.default.getRESTController().ajax('POST', url, source.file, headers);
return _CoreManager2.default.getRESTController().ajax('POST', url, source.file, headers).then(function (res) {
return res.response;
});
},

@@ -271,0 +273,0 @@

@@ -1480,3 +1480,3 @@ 'use strict';

* notation to specify which fields in the included object are also fetched.
* @param {String} key The name of the key to include.
* @param {...String|Array<String>} key The name(s) of the key(s) to include.
* @return {Parse.Query} Returns the query, so you can chain this call.

@@ -1508,3 +1508,3 @@ */

* specified in each of the calls will be included.
* @param {Array} keys The names of the keys to include.
* @param {...String|Array<String>} keys The name(s) of the key(s) to include.
* @return {Parse.Query} Returns the query, so you can chain this call.

@@ -1511,0 +1511,0 @@ */

@@ -116,5 +116,4 @@ 'use strict';

if (typeof xhr.getResponseHeader === 'function') {
var jobStatusId = xhr.getResponseHeader('x-parse-job-status-id');
if (jobStatusId) {
response = jobStatusId;
if ((xhr.getAllResponseHeaders() || '').includes('x-parse-job-status-id: ')) {
response = xhr.getResponseHeader('x-parse-job-status-id');
}

@@ -121,0 +120,0 @@ }

@@ -18,3 +18,3 @@ /*

LIVEQUERY_SERVER_URL: null,
VERSION: 'js' + '2.0.0',
VERSION: 'js' + '2.0.1',
APPLICATION_ID: null,

@@ -21,0 +21,0 @@ JAVASCRIPT_KEY: null,

@@ -230,3 +230,3 @@ /**

url += 'files/' + name;
return CoreManager.getRESTController().ajax('POST', url, source.file, headers);
return CoreManager.getRESTController().ajax('POST', url, source.file, headers).then(res => res.response);
},

@@ -233,0 +233,0 @@

@@ -1261,3 +1261,3 @@ /*

* notation to specify which fields in the included object are also fetched.
* @param {String} key The name of the key to include.
* @param {...String|Array<String>} key The name(s) of the key(s) to include.
* @return {Parse.Query} Returns the query, so you can chain this call.

@@ -1280,3 +1280,3 @@ */

* specified in each of the calls will be included.
* @param {Array} keys The names of the keys to include.
* @param {...String|Array<String>} keys The name(s) of the key(s) to include.
* @return {Parse.Query} Returns the query, so you can chain this call.

@@ -1283,0 +1283,0 @@ */

@@ -89,5 +89,4 @@ /**

if (typeof xhr.getResponseHeader === 'function') {
var jobStatusId = xhr.getResponseHeader('x-parse-job-status-id');
if (jobStatusId) {
response = jobStatusId;
if ((xhr.getAllResponseHeaders() || '').includes('x-parse-job-status-id: ')) {
response = xhr.getResponseHeader('x-parse-job-status-id');
}

@@ -94,0 +93,0 @@ }

{
"name": "parse",
"version": "2.0.0",
"version": "2.0.1",
"description": "The Parse JavaScript SDK",

@@ -5,0 +5,0 @@ "homepage": "https://www.parse.com",

@@ -48,2 +48,8 @@ # Parse SDK for JavaScript

## Upgrading to Parse SDK 2.0.0
With Parse SDK 2.0.0, gone are the backbone style callbacks and Parse.Promises.
We have curated a [migration guide](2.0.0.md) that should help you migrate your code.
## License

@@ -50,0 +56,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc