parse 6.0.0-alpha.1 → 6.0.0-alpha.2

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Parse JavaScript SDK v6.0.0-alpha.1
2
+ * Parse JavaScript SDK v6.0.0-alpha.2
3
3
  *
4
4
  * The source tree of this library can be found at
5
5
  * https://github.com/ParsePlatform/Parse-SDK-JS
@@ -354,7 +354,7 @@ const config = {
354
354
  SERVER_AUTH_TOKEN: null,
355
355
  LIVEQUERY_SERVER_URL: null,
356
356
  ENCRYPTED_KEY: null,
357
- VERSION: 'js' + "6.0.0-alpha.1",
357
+ VERSION: 'js' + "6.0.0-alpha.2",
358
358
  APPLICATION_ID: null,
359
359
  JAVASCRIPT_KEY: null,
360
360
  MASTER_KEY: null,
@@ -6125,7 +6125,7 @@ function remove(hook) {
6125
6125
  }
6126
6126
  const DefaultController = {
6127
6127
  get(type, functionName, triggerName) {
6128
- let url = '/hooks/' + type;
6128
+ let url = 'hooks/' + type;
6129
6129
  if (functionName) {
6130
6130
  url += '/' + functionName;
6131
6131
  if (triggerName) {
@@ -6137,9 +6137,9 @@ const DefaultController = {
6137
6137
  create(hook) {
6138
6138
  let url;
6139
6139
  if (hook.functionName && hook.url) {
6140
- url = '/hooks/functions';
6140
+ url = 'hooks/functions';
6141
6141
  } else if (hook.className && hook.triggerName && hook.url) {
6142
- url = '/hooks/triggers';
6142
+ url = 'hooks/triggers';
6143
6143
  } else {
6144
6144
  return _promise.default.reject({
6145
6145
  error: 'invalid hook declaration',
@@ -6151,10 +6151,10 @@ const DefaultController = {
6151
6151
  remove(hook) {
6152
6152
  let url;
6153
6153
  if (hook.functionName) {
6154
- url = '/hooks/functions/' + hook.functionName;
6154
+ url = 'hooks/functions/' + hook.functionName;
6155
6155
  delete hook.functionName;
6156
6156
  } else if (hook.className && hook.triggerName) {
6157
- url = '/hooks/triggers/' + hook.className + '/' + hook.triggerName;
6157
+ url = 'hooks/triggers/' + hook.className + '/' + hook.triggerName;
6158
6158
  delete hook.className;
6159
6159
  delete hook.triggerName;
6160
6160
  } else {
@@ -6170,10 +6170,10 @@ const DefaultController = {
6170
6170
  update(hook) {
6171
6171
  let url;
6172
6172
  if (hook.functionName && hook.url) {
6173
- url = '/hooks/functions/' + hook.functionName;
6173
+ url = 'hooks/functions/' + hook.functionName;
6174
6174
  delete hook.functionName;
6175
6175
  } else if (hook.className && hook.triggerName && hook.url) {
6176
- url = '/hooks/triggers/' + hook.className + '/' + hook.triggerName;
6176
+ url = 'hooks/triggers/' + hook.className + '/' + hook.triggerName;
6177
6177
  delete hook.className;
6178
6178
  delete hook.triggerName;
6179
6179
  } else {