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 4.2.0-alpha.5 to 4.2.0-alpha.6

2

lib/browser/CoreManager.js

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

ENCRYPTED_KEY: null,
VERSION: 'js' + "4.2.0-alpha.5",
VERSION: 'js' + "4.2.0-alpha.6",
APPLICATION_ID: null,

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

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

/*:: import type { PermissionsMap } from './ParseCLP';*/
var FIELD_TYPES = ['String', 'Number', 'Boolean', 'Date', 'File', 'GeoPoint', 'Polygon', 'Array', 'Object', 'Pointer', 'Relation'];
var FIELD_TYPES = ['String', 'Number', 'Boolean', 'Bytes', 'Date', 'File', 'GeoPoint', 'Polygon', 'Array', 'Object', 'Pointer', 'Relation'];
/*:: type FieldOptions = {

@@ -240,2 +240,10 @@ required: boolean,

}
if (type === 'Bytes') {
if (options && options.defaultValue) {
fieldOptions.defaultValue = {
__type: 'Bytes',
base64: options.defaultValue
};
}
}
this._fields[name] = fieldOptions;

@@ -309,2 +317,15 @@ return this;

/**
* Adding Bytes Field
*
* @param {string} name Name of the field that will be created on Parse
* @param {object} options See {@link https://parseplatform.org/Parse-SDK-JS/api/master/Parse.Schema.html#addField addField}
* @returns {Parse.Schema} Returns the schema, so you can chain this call.
*/
}, {
key: "addBytes",
value: function (name /*: string*/, options /*: FieldOptions*/) {
return this.addField(name, 'Bytes', options);
}
/**
* Adding Date Field

@@ -311,0 +332,0 @@ *

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

ENCRYPTED_KEY: null,
VERSION: 'js' + "4.2.0-alpha.5",
VERSION: 'js' + "4.2.0-alpha.6",
APPLICATION_ID: null,

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

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

/*:: import type { PermissionsMap } from './ParseCLP';*/
const FIELD_TYPES = ['String', 'Number', 'Boolean', 'Date', 'File', 'GeoPoint', 'Polygon', 'Array', 'Object', 'Pointer', 'Relation'];
const FIELD_TYPES = ['String', 'Number', 'Boolean', 'Bytes', 'Date', 'File', 'GeoPoint', 'Polygon', 'Array', 'Object', 'Pointer', 'Relation'];
/*:: type FieldOptions = {

@@ -230,2 +230,10 @@ required: boolean,

}
if (type === 'Bytes') {
if (options && options.defaultValue) {
fieldOptions.defaultValue = {
__type: 'Bytes',
base64: options.defaultValue
};
}
}
this._fields[name] = fieldOptions;

@@ -291,2 +299,13 @@ return this;

/**
* Adding Bytes Field
*
* @param {string} name Name of the field that will be created on Parse
* @param {object} options See {@link https://parseplatform.org/Parse-SDK-JS/api/master/Parse.Schema.html#addField addField}
* @returns {Parse.Schema} Returns the schema, so you can chain this call.
*/
addBytes(name /*: string*/, options /*: FieldOptions*/) {
return this.addField(name, 'Bytes', options);
}
/**
* Adding Date Field

@@ -293,0 +312,0 @@ *

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

ENCRYPTED_KEY: null,
VERSION: 'js' + "4.2.0-alpha.5",
VERSION: 'js' + "4.2.0-alpha.6",
APPLICATION_ID: null,

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

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

var _ParseCLP = _interopRequireDefault(require("./ParseCLP"));
var FIELD_TYPES = ['String', 'Number', 'Boolean', 'Date', 'File', 'GeoPoint', 'Polygon', 'Array', 'Object', 'Pointer', 'Relation'];
var FIELD_TYPES = ['String', 'Number', 'Boolean', 'Bytes', 'Date', 'File', 'GeoPoint', 'Polygon', 'Array', 'Object', 'Pointer', 'Relation'];
var ParseSchema = function () {

@@ -131,2 +131,10 @@ function ParseSchema(className) {

}
if (type === 'Bytes') {
if (options && options.defaultValue) {
fieldOptions.defaultValue = {
__type: 'Bytes',
base64: options.defaultValue
};
}
}
this._fields[name] = fieldOptions;

@@ -163,2 +171,7 @@ return this;

}, {
key: "addBytes",
value: function (name, options) {
return this.addField(name, 'Bytes', options);
}
}, {
key: "addDate",

@@ -165,0 +178,0 @@ value: function (name, options) {

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

ENCRYPTED_KEY: null,
VERSION: 'js' + "4.2.0-alpha.5",
VERSION: 'js' + "4.2.0-alpha.6",
APPLICATION_ID: null,

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

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

/*:: import type { PermissionsMap } from './ParseCLP';*/
var FIELD_TYPES = ['String', 'Number', 'Boolean', 'Date', 'File', 'GeoPoint', 'Polygon', 'Array', 'Object', 'Pointer', 'Relation'];
var FIELD_TYPES = ['String', 'Number', 'Boolean', 'Bytes', 'Date', 'File', 'GeoPoint', 'Polygon', 'Array', 'Object', 'Pointer', 'Relation'];
/*:: type FieldOptions = {

@@ -240,2 +240,10 @@ required: boolean,

}
if (type === 'Bytes') {
if (options && options.defaultValue) {
fieldOptions.defaultValue = {
__type: 'Bytes',
base64: options.defaultValue
};
}
}
this._fields[name] = fieldOptions;

@@ -309,2 +317,15 @@ return this;

/**
* Adding Bytes Field
*
* @param {string} name Name of the field that will be created on Parse
* @param {object} options See {@link https://parseplatform.org/Parse-SDK-JS/api/master/Parse.Schema.html#addField addField}
* @returns {Parse.Schema} Returns the schema, so you can chain this call.
*/
}, {
key: "addBytes",
value: function (name /*: string*/, options /*: FieldOptions*/) {
return this.addField(name, 'Bytes', options);
}
/**
* Adding Date Field

@@ -311,0 +332,0 @@ *

{
"name": "parse",
"version": "4.2.0-alpha.5",
"version": "4.2.0-alpha.6",
"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