Socket
Socket
Sign inDemoInstall

parse

Package Overview
Dependencies
Maintainers
11
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 5.1.0-alpha.1 to 5.1.0-alpha.2

2

lib/browser/CoreManager.js

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

ENCRYPTED_KEY: null,
VERSION: 'js' + "5.1.0-alpha.1",
VERSION: 'js' + "5.1.0-alpha.2",
APPLICATION_ID: null,

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

@@ -389,8 +389,9 @@ "use strict";

for (var condition in constraints) {
var _compareTo, _compareTo2;
compareTo = constraints[condition];
if (compareTo.__type) {
if ((_compareTo = compareTo) !== null && _compareTo !== void 0 && _compareTo.__type) {
compareTo = decode(compareTo);
}
// is it a $relativeTime? convert to date
if (compareTo['$relativeTime']) {
if ((_compareTo2 = compareTo) !== null && _compareTo2 !== void 0 && _compareTo2['$relativeTime']) {
var parserResult = relativeTimeToDate(compareTo['$relativeTime']);

@@ -397,0 +398,0 @@ if (parserResult.status !== 'success') {

"use strict";
var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
var _Object$defineProperty2 = require("@babel/runtime-corejs3/core-js-stable/object/define-property");

@@ -12,4 +19,5 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");

var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));
var _defineProperty = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/define-property"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/define-property"));
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/json/stringify"));
var _defineProperty3 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));

@@ -29,2 +37,24 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));

var _Storage = _interopRequireDefault(require("./Storage"));
function ownKeys(object, enumerableOnly) {
var keys = _Object$keys(object);
if (_Object$getOwnPropertySymbols) {
var symbols = _Object$getOwnPropertySymbols(object);
enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) {
return _Object$getOwnPropertyDescriptor(object, sym).enumerable;
})), keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread(target) {
for (var i = 1; i < arguments.length; i++) {
var _context7, _context8;
var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? _forEachInstanceProperty(_context7 = ownKeys(Object(source), !0)).call(_context7, function (key) {
(0, _defineProperty3.default)(target, key, source[key]);
}) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context8 = ownKeys(Object(source))).call(_context8, function (key) {
_Object$defineProperty2(target, key, _Object$getOwnPropertyDescriptor(source, key));
});
}
return target;
}
function _createSuper(Derived) {

@@ -766,6 +796,7 @@ var hasNativeReflectConstruct = _isNativeReflectConstruct();

*
* @param {string} password A password to be verified
* @param {object} options
* @returns {Promise} A promise that is fulfilled with a user
* when the password is correct.
* @param {string} password The password to be verified.
* @param {object} options The options.
* @param {boolean} [options.ignoreEmailVerification=false] Set to `true` to bypass email verification and verify
* the password regardless of whether the email has been verified. This requires the master key.
* @returns {Promise} A promise that is fulfilled with a user when the password is correct.
*/

@@ -798,3 +829,3 @@ }, {

if (_prop !== 'className') {
(0, _defineProperty.default)(ParseUser.prototype, _prop, {
(0, _defineProperty2.default)(ParseUser.prototype, _prop, {
value: protoProps[_prop],

@@ -811,3 +842,3 @@ enumerable: false,

if (_prop2 !== 'className') {
(0, _defineProperty.default)(ParseUser, _prop2, {
(0, _defineProperty2.default)(ParseUser, _prop2, {
value: classProps[_prop2],

@@ -1115,9 +1146,10 @@ enumerable: false,

* Verify whether a given password is the password of the current user.
* @static
*
* @param {string} username A username to be used for identificaiton
* @param {string} password A password to be verified
* @param {object} options
* @static
* @returns {Promise} A promise that is fulfilled with a user
* when the password is correct.
* @param {string} username The username of the user whose password should be verified.
* @param {string} password The password to be verified.
* @param {object} options The options.
* @param {boolean} [options.ignoreEmailVerification=false] Set to `true` to bypass email verification and verify
* the password regardless of whether the email has been verified. This requires the master key.
* @returns {Promise} A promise that is fulfilled with a user when the password is correct.
*/

@@ -1533,6 +1565,9 @@ }, {

var RESTController = _CoreManager.default.getRESTController();
return RESTController.request('GET', 'verifyPassword', {
var data = _objectSpread({
username: username,
password: password
}, options);
}, options.ignoreEmailVerification !== undefined && {
ignoreEmailVerification: options.ignoreEmailVerification
});
return RESTController.request('GET', 'verifyPassword', data, options);
},

@@ -1539,0 +1574,0 @@ requestEmailVerification: function (email /*: string*/, options /*: RequestOptions*/) {

@@ -275,5 +275,2 @@ "use strict";

}
if (options.ignoreEmailVerification !== undefined) {
payload.ignoreEmailVerification = options.ignoreEmailVerification;
}
if (_CoreManager.default.get('FORCE_REVOCABLE_SESSION')) {

@@ -280,0 +277,0 @@ payload._RevocableSession = '1';

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

ENCRYPTED_KEY: null,
VERSION: 'js' + "5.1.0-alpha.1",
VERSION: 'js' + "5.1.0-alpha.2",
APPLICATION_ID: null,

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

@@ -291,8 +291,9 @@ "use strict";

for (const condition in constraints) {
var _compareTo, _compareTo2;
compareTo = constraints[condition];
if (compareTo.__type) {
if ((_compareTo = compareTo) !== null && _compareTo !== void 0 && _compareTo.__type) {
compareTo = decode(compareTo);
}
// is it a $relativeTime? convert to date
if (compareTo['$relativeTime']) {
if ((_compareTo2 = compareTo) !== null && _compareTo2 !== void 0 && _compareTo2['$relativeTime']) {
const parserResult = relativeTimeToDate(compareTo['$relativeTime']);

@@ -299,0 +300,0 @@ if (parserResult.status !== 'success') {

@@ -531,6 +531,7 @@ "use strict";

*
* @param {string} password A password to be verified
* @param {object} options
* @returns {Promise} A promise that is fulfilled with a user
* when the password is correct.
* @param {string} password The password to be verified.
* @param {object} options The options.
* @param {boolean} [options.ignoreEmailVerification=false] Set to `true` to bypass email verification and verify
* the password regardless of whether the email has been verified. This requires the master key.
* @returns {Promise} A promise that is fulfilled with a user when the password is correct.
*/

@@ -844,9 +845,10 @@ verifyPassword(password /*: string*/, options /*:: ?: RequestOptions*/) /*: Promise<ParseUser>*/{

* Verify whether a given password is the password of the current user.
* @static
*
* @param {string} username A username to be used for identificaiton
* @param {string} password A password to be verified
* @param {object} options
* @static
* @returns {Promise} A promise that is fulfilled with a user
* when the password is correct.
* @param {string} username The username of the user whose password should be verified.
* @param {string} password The password to be verified.
* @param {object} options The options.
* @param {boolean} [options.ignoreEmailVerification=false] Set to `true` to bypass email verification and verify
* the password regardless of whether the email has been verified. This requires the master key.
* @returns {Promise} A promise that is fulfilled with a user when the password is correct.
*/

@@ -1219,6 +1221,10 @@ static verifyPassword(username /*: string*/, password /*: string*/, options /*:: ?: RequestOptions*/) {

const RESTController = _CoreManager.default.getRESTController();
return RESTController.request('GET', 'verifyPassword', {
const data = {
username,
password
}, options);
password,
...(options.ignoreEmailVerification !== undefined && {
ignoreEmailVerification: options.ignoreEmailVerification
})
};
return RESTController.request('GET', 'verifyPassword', data, options);
},

@@ -1225,0 +1231,0 @@ requestEmailVerification(email /*: string*/, options /*: RequestOptions*/) {

@@ -243,5 +243,2 @@ "use strict";

}
if (options.ignoreEmailVerification !== undefined) {
payload.ignoreEmailVerification = options.ignoreEmailVerification;
}
if (_CoreManager.default.get('FORCE_REVOCABLE_SESSION')) {

@@ -248,0 +245,0 @@ payload._RevocableSession = '1';

@@ -15,3 +15,3 @@ Object.defineProperty(exports, "__esModule", {

ENCRYPTED_KEY: null,
VERSION: 'js' + "5.1.0-alpha.1",
VERSION: 'js' + "5.1.0-alpha.2",
APPLICATION_ID: null,

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

@@ -236,7 +236,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

for (var condition in constraints) {
var _compareTo, _compareTo2;
compareTo = constraints[condition];
if (compareTo.__type) {
if ((_compareTo = compareTo) != null && _compareTo.__type) {
compareTo = decode(compareTo);
}
if (compareTo['$relativeTime']) {
if ((_compareTo2 = compareTo) != null && _compareTo2['$relativeTime']) {
var parserResult = relativeTimeToDate(compareTo['$relativeTime']);

@@ -243,0 +244,0 @@ if (parserResult.status !== 'success') {

@@ -954,6 +954,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

var RESTController = _CoreManager.default.getRESTController();
return RESTController.request('GET', 'verifyPassword', {
var data = Object.assign({
username: username,
password: password
}, options);
}, options.ignoreEmailVerification !== undefined && {
ignoreEmailVerification: options.ignoreEmailVerification
});
return RESTController.request('GET', 'verifyPassword', data, options);
},

@@ -960,0 +963,0 @@ requestEmailVerification: function (email, options) {

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

}
if (options.ignoreEmailVerification !== undefined) {
payload.ignoreEmailVerification = options.ignoreEmailVerification;
}
if (_CoreManager.default.get('FORCE_REVOCABLE_SESSION')) {

@@ -208,0 +205,0 @@ payload._RevocableSession = '1';

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

ENCRYPTED_KEY: null,
VERSION: 'js' + "5.1.0-alpha.1",
VERSION: 'js' + "5.1.0-alpha.2",
APPLICATION_ID: null,

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

@@ -389,8 +389,9 @@ "use strict";

for (var condition in constraints) {
var _compareTo, _compareTo2;
compareTo = constraints[condition];
if (compareTo.__type) {
if ((_compareTo = compareTo) !== null && _compareTo !== void 0 && _compareTo.__type) {
compareTo = decode(compareTo);
}
// is it a $relativeTime? convert to date
if (compareTo['$relativeTime']) {
if ((_compareTo2 = compareTo) !== null && _compareTo2 !== void 0 && _compareTo2['$relativeTime']) {
var parserResult = relativeTimeToDate(compareTo['$relativeTime']);

@@ -397,0 +398,0 @@ if (parserResult.status !== 'success') {

"use strict";
var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
var _Object$defineProperty2 = require("@babel/runtime-corejs3/core-js-stable/object/define-property");

@@ -12,4 +19,5 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");

var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));
var _defineProperty = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/define-property"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/define-property"));
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/json/stringify"));
var _defineProperty3 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));

@@ -29,2 +37,24 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));

var _Storage = _interopRequireDefault(require("./Storage"));
function ownKeys(object, enumerableOnly) {
var keys = _Object$keys(object);
if (_Object$getOwnPropertySymbols) {
var symbols = _Object$getOwnPropertySymbols(object);
enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) {
return _Object$getOwnPropertyDescriptor(object, sym).enumerable;
})), keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread(target) {
for (var i = 1; i < arguments.length; i++) {
var _context7, _context8;
var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? _forEachInstanceProperty(_context7 = ownKeys(Object(source), !0)).call(_context7, function (key) {
(0, _defineProperty3.default)(target, key, source[key]);
}) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context8 = ownKeys(Object(source))).call(_context8, function (key) {
_Object$defineProperty2(target, key, _Object$getOwnPropertyDescriptor(source, key));
});
}
return target;
}
function _createSuper(Derived) {

@@ -766,6 +796,7 @@ var hasNativeReflectConstruct = _isNativeReflectConstruct();

*
* @param {string} password A password to be verified
* @param {object} options
* @returns {Promise} A promise that is fulfilled with a user
* when the password is correct.
* @param {string} password The password to be verified.
* @param {object} options The options.
* @param {boolean} [options.ignoreEmailVerification=false] Set to `true` to bypass email verification and verify
* the password regardless of whether the email has been verified. This requires the master key.
* @returns {Promise} A promise that is fulfilled with a user when the password is correct.
*/

@@ -798,3 +829,3 @@ }, {

if (_prop !== 'className') {
(0, _defineProperty.default)(ParseUser.prototype, _prop, {
(0, _defineProperty2.default)(ParseUser.prototype, _prop, {
value: protoProps[_prop],

@@ -811,3 +842,3 @@ enumerable: false,

if (_prop2 !== 'className') {
(0, _defineProperty.default)(ParseUser, _prop2, {
(0, _defineProperty2.default)(ParseUser, _prop2, {
value: classProps[_prop2],

@@ -1115,9 +1146,10 @@ enumerable: false,

* Verify whether a given password is the password of the current user.
* @static
*
* @param {string} username A username to be used for identificaiton
* @param {string} password A password to be verified
* @param {object} options
* @static
* @returns {Promise} A promise that is fulfilled with a user
* when the password is correct.
* @param {string} username The username of the user whose password should be verified.
* @param {string} password The password to be verified.
* @param {object} options The options.
* @param {boolean} [options.ignoreEmailVerification=false] Set to `true` to bypass email verification and verify
* the password regardless of whether the email has been verified. This requires the master key.
* @returns {Promise} A promise that is fulfilled with a user when the password is correct.
*/

@@ -1533,6 +1565,9 @@ }, {

var RESTController = _CoreManager.default.getRESTController();
return RESTController.request('GET', 'verifyPassword', {
var data = _objectSpread({
username: username,
password: password
}, options);
}, options.ignoreEmailVerification !== undefined && {
ignoreEmailVerification: options.ignoreEmailVerification
});
return RESTController.request('GET', 'verifyPassword', data, options);
},

@@ -1539,0 +1574,0 @@ requestEmailVerification: function (email /*: string*/, options /*: RequestOptions*/) {

@@ -276,5 +276,2 @@ "use strict";

}
if (options.ignoreEmailVerification !== undefined) {
payload.ignoreEmailVerification = options.ignoreEmailVerification;
}
if (_CoreManager.default.get('FORCE_REVOCABLE_SESSION')) {

@@ -281,0 +278,0 @@ payload._RevocableSession = '1';

{
"name": "parse",
"version": "5.1.0-alpha.1",
"version": "5.1.0-alpha.2",
"description": "Parse JavaScript SDK",

@@ -5,0 +5,0 @@ "homepage": "https://parseplatform.org",

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