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.
@@ -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,
@@ -6120,7 +6120,7 @@ function remove(hook) {
6120
6120
  }
6121
6121
  const DefaultController = {
6122
6122
  get(type, functionName, triggerName) {
6123
- let url = '/hooks/' + type;
6123
+ let url = 'hooks/' + type;
6124
6124
  if (functionName) {
6125
6125
  url += '/' + functionName;
6126
6126
  if (triggerName) {
@@ -6132,9 +6132,9 @@ const DefaultController = {
6132
6132
  create(hook) {
6133
6133
  let url;
6134
6134
  if (hook.functionName && hook.url) {
6135
- url = '/hooks/functions';
6135
+ url = 'hooks/functions';
6136
6136
  } else if (hook.className && hook.triggerName && hook.url) {
6137
- url = '/hooks/triggers';
6137
+ url = 'hooks/triggers';
6138
6138
  } else {
6139
6139
  return _promise.default.reject({
6140
6140
  error: 'invalid hook declaration',
@@ -6146,10 +6146,10 @@ const DefaultController = {
6146
6146
  remove(hook) {
6147
6147
  let url;
6148
6148
  if (hook.functionName) {
6149
- url = '/hooks/functions/' + hook.functionName;
6149
+ url = 'hooks/functions/' + hook.functionName;
6150
6150
  delete hook.functionName;
6151
6151
  } else if (hook.className && hook.triggerName) {
6152
- url = '/hooks/triggers/' + hook.className + '/' + hook.triggerName;
6152
+ url = 'hooks/triggers/' + hook.className + '/' + hook.triggerName;
6153
6153
  delete hook.className;
6154
6154
  delete hook.triggerName;
6155
6155
  } else {
@@ -6165,10 +6165,10 @@ const DefaultController = {
6165
6165
  update(hook) {
6166
6166
  let url;
6167
6167
  if (hook.functionName && hook.url) {
6168
- url = '/hooks/functions/' + hook.functionName;
6168
+ url = 'hooks/functions/' + hook.functionName;
6169
6169
  delete hook.functionName;
6170
6170
  } else if (hook.className && hook.triggerName && hook.url) {
6171
- url = '/hooks/triggers/' + hook.className + '/' + hook.triggerName;
6171
+ url = 'hooks/triggers/' + hook.className + '/' + hook.triggerName;
6172
6172
  delete hook.className;
6173
6173
  delete hook.triggerName;
6174
6174
  } else {