Socket
Socket
Sign inDemoInstall

parse

Package Overview
Dependencies
Maintainers
11
Versions
192
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 4.1.0-alpha.2 to 4.1.0-alpha.3

2

lib/browser/CoreManager.js

@@ -185,3 +185,3 @@ "use strict";

ENCRYPTED_KEY: null,
VERSION: 'js' + "4.1.0-alpha.2",
VERSION: 'js' + "4.1.0-alpha.3",
APPLICATION_ID: null,

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

@@ -306,3 +306,5 @@ "use strict";

value: function (query /*: Object*/, sessionToken /*: ?string*/) /*: LiveQuerySubscription*/{
var _this2 = this;
var _queryJSON$keys,
_queryJSON$watch,
_this2 = this;
if (!query) {

@@ -314,3 +316,4 @@ return;

var where = queryJSON.where;
var fields = (0, _keys.default)(queryJSON) ? (0, _keys.default)(queryJSON).split(',') : undefined;
var fields = (_queryJSON$keys = (0, _keys.default)(queryJSON)) === null || _queryJSON$keys === void 0 ? void 0 : _queryJSON$keys.split(',');
var watch = (_queryJSON$watch = queryJSON.watch) === null || _queryJSON$watch === void 0 ? void 0 : _queryJSON$watch.split(',');
var subscribeRequest = {

@@ -322,3 +325,4 @@ op: OP_TYPES.SUBSCRIBE,

where: where,
fields: fields
fields: fields,
watch: watch
}

@@ -325,0 +329,0 @@ };

@@ -182,3 +182,3 @@ "use strict";

ENCRYPTED_KEY: null,
VERSION: 'js' + "4.1.0-alpha.2",
VERSION: 'js' + "4.1.0-alpha.3",
APPLICATION_ID: null,

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

@@ -191,2 +191,3 @@ "use strict";

subscribe(query /*: Object*/, sessionToken /*: ?string*/) /*: LiveQuerySubscription*/{
var _queryJSON$keys, _queryJSON$watch;
if (!query) {

@@ -198,3 +199,4 @@ return;

const where = queryJSON.where;
const fields = queryJSON.keys ? queryJSON.keys.split(',') : undefined;
const fields = (_queryJSON$keys = queryJSON.keys) === null || _queryJSON$keys === void 0 ? void 0 : _queryJSON$keys.split(',');
const watch = (_queryJSON$watch = queryJSON.watch) === null || _queryJSON$watch === void 0 ? void 0 : _queryJSON$watch.split(',');
const subscribeRequest = {

@@ -206,3 +208,4 @@ op: OP_TYPES.SUBSCRIBE,

where,
fields
fields,
watch
}

@@ -209,0 +212,0 @@ };

@@ -11,3 +11,3 @@ var config = {

ENCRYPTED_KEY: null,
VERSION: 'js' + "4.1.0-alpha.2",
VERSION: 'js' + "4.1.0-alpha.3",
APPLICATION_ID: null,

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

@@ -126,3 +126,5 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

value: function (query, sessionToken) {
var _this2 = this;
var _queryJSON$keys,
_queryJSON$watch,
_this2 = this;
if (!query) {

@@ -134,3 +136,4 @@ return;

var where = queryJSON.where;
var fields = queryJSON.keys ? queryJSON.keys.split(',') : undefined;
var fields = (_queryJSON$keys = queryJSON.keys) == null ? void 0 : _queryJSON$keys.split(',');
var watch = (_queryJSON$watch = queryJSON.watch) == null ? void 0 : _queryJSON$watch.split(',');
var subscribeRequest = {

@@ -142,3 +145,4 @@ op: OP_TYPES.SUBSCRIBE,

where: where,
fields: fields
fields: fields,
watch: watch
}

@@ -145,0 +149,0 @@ };

@@ -134,2 +134,3 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

this._where = {};
this._watch = [];
this._include = [];

@@ -266,2 +267,5 @@ this._exclude = [];

};
if (this._watch.length) {
params.watch = this._watch.join(',');
}
if (this._include.length) {

@@ -314,2 +318,5 @@ params.include = this._include.join(',');

}
if (json.watch) {
this._watch = json.watch.split(',');
}
if (json.include) {

@@ -1151,2 +1158,18 @@ this._include = json.include.split(',');

}, {
key: "watch",
value: function () {
var _this14 = this;
for (var _len8 = arguments.length, keys = new Array(_len8), _key12 = 0; _key12 < _len8; _key12++) {
keys[_key12] = arguments[_key12];
}
keys.forEach(function (key) {
if (Array.isArray(key)) {
_this14._watch = _this14._watch.concat(key);
} else {
_this14._watch.push(key);
}
});
return this;
}
}, {
key: "readPreference",

@@ -1211,3 +1234,3 @@ value: function (_readPreference, includeReadPreference, subqueryReadPreference) {

value: function () {
var _this14 = this;
var _this15 = this;
if (this._xhrRequest.task && typeof this._xhrRequest.task.abort === 'function') {

@@ -1221,3 +1244,3 @@ this._xhrRequest.task._aborted = true;

return this._xhrRequest.onchange = function () {
return _this14.cancel();
return _this15.cancel();
};

@@ -1228,6 +1251,6 @@ }

value: function (options) {
var _this15 = this;
var _this16 = this;
options.requestTask = function (task) {
_this15._xhrRequest.task = task;
_this15._xhrRequest.onchange();
_this16._xhrRequest.task = task;
_this16._xhrRequest.onchange();
};

@@ -1244,4 +1267,4 @@ }

value: function () {
for (var _len8 = arguments.length, queries = new Array(_len8), _key12 = 0; _key12 < _len8; _key12++) {
queries[_key12] = arguments[_key12];
for (var _len9 = arguments.length, queries = new Array(_len9), _key13 = 0; _key13 < _len9; _key13++) {
queries[_key13] = arguments[_key13];
}

@@ -1256,4 +1279,4 @@ var className = _getClassNameFromQueries(queries);

value: function () {
for (var _len9 = arguments.length, queries = new Array(_len9), _key13 = 0; _key13 < _len9; _key13++) {
queries[_key13] = arguments[_key13];
for (var _len10 = arguments.length, queries = new Array(_len10), _key14 = 0; _key14 < _len10; _key14++) {
queries[_key14] = arguments[_key14];
}

@@ -1268,4 +1291,4 @@ var className = _getClassNameFromQueries(queries);

value: function () {
for (var _len10 = arguments.length, queries = new Array(_len10), _key14 = 0; _key14 < _len10; _key14++) {
queries[_key14] = arguments[_key14];
for (var _len11 = arguments.length, queries = new Array(_len11), _key15 = 0; _key15 < _len11; _key15++) {
queries[_key15] = arguments[_key15];
}

@@ -1272,0 +1295,0 @@ var className = _getClassNameFromQueries(queries);

@@ -185,3 +185,3 @@ "use strict";

ENCRYPTED_KEY: null,
VERSION: 'js' + "4.1.0-alpha.2",
VERSION: 'js' + "4.1.0-alpha.3",
APPLICATION_ID: null,

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

@@ -306,3 +306,5 @@ "use strict";

value: function (query /*: Object*/, sessionToken /*: ?string*/) /*: LiveQuerySubscription*/{
var _this2 = this;
var _queryJSON$keys,
_queryJSON$watch,
_this2 = this;
if (!query) {

@@ -314,3 +316,4 @@ return;

var where = queryJSON.where;
var fields = (0, _keys.default)(queryJSON) ? (0, _keys.default)(queryJSON).split(',') : undefined;
var fields = (_queryJSON$keys = (0, _keys.default)(queryJSON)) === null || _queryJSON$keys === void 0 ? void 0 : _queryJSON$keys.split(',');
var watch = (_queryJSON$watch = queryJSON.watch) === null || _queryJSON$watch === void 0 ? void 0 : _queryJSON$watch.split(',');
var subscribeRequest = {

@@ -322,3 +325,4 @@ op: OP_TYPES.SUBSCRIBE,

where: where,
fields: fields
fields: fields,
watch: watch
}

@@ -325,0 +329,0 @@ };

{
"name": "parse",
"version": "4.1.0-alpha.2",
"version": "4.1.0-alpha.3",
"description": "Parse JavaScript SDK",

@@ -40,4 +40,4 @@ "homepage": "https://parseplatform.org",

"devDependencies": {
"@babel/core": "7.21.0",
"@babel/eslint-parser": "7.19.1",
"@babel/core": "7.21.3",
"@babel/eslint-parser": "7.21.3",
"@babel/plugin-proposal-class-properties": "7.18.6",

@@ -51,3 +51,3 @@ "@babel/plugin-transform-flow-comments": "7.21.0",

"@saithodev/semantic-release-backmerge": "2.1.3",
"@semantic-release/changelog": "6.0.2",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/commit-analyzer": "9.0.2",

@@ -58,3 +58,3 @@ "@semantic-release/git": "10.0.1",

"@semantic-release/release-notes-generator": "10.0.3",
"babel-jest": "29.4.3",
"babel-jest": "29.5.0",
"babel-plugin-inline-package-json": "2.0.0",

@@ -65,7 +65,7 @@ "babel-plugin-minify-dead-code-elimination": "0.5.2",

"codecov": "3.8.3",
"core-js": "3.29.0",
"core-js": "3.29.1",
"cross-env": "7.0.2",
"eslint": "8.35.0",
"eslint": "8.36.0",
"eslint-plugin-flowtype": "8.0.3",
"eslint-plugin-jsdoc": "40.0.0",
"eslint-plugin-jsdoc": "40.1.0",
"express": "4.18.2",

@@ -80,15 +80,15 @@ "gulp": "4.0.2",

"husky": "8.0.3",
"jasmine": "4.5.0",
"jasmine": "4.6.0",
"jasmine-reporters": "2.5.2",
"jasmine-spec-reporter": "7.0.0",
"jest": "29.4.3",
"jest-environment-jsdom": "29.4.3",
"jest": "29.5.0",
"jest-environment-jsdom": "29.5.0",
"jsdoc": "4.0.2",
"jsdoc-babel": "0.5.0",
"lint-staged": "13.1.2",
"metro-react-native-babel-preset": "0.75.1",
"lint-staged": "13.2.0",
"metro-react-native-babel-preset": "0.76.0",
"mongodb-runner": "4.10.0",
"parse-server": "git+https://github.com/parse-community/parse-server#alpha",
"prettier": "2.8.4",
"puppeteer": "19.7.2",
"prettier": "2.8.7",
"puppeteer": "19.8.0",
"regenerator-runtime": "0.13.11",

@@ -95,0 +95,0 @@ "semantic-release": "19.0.5",

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

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

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

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

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

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