parse 6.0.0-alpha.1 → 6.0.0
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/README.md +0 -1
- package/dist/parse.js +19 -30
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +19 -30
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/CoreManager.js +1 -1
- package/lib/browser/Parse.js +10 -21
- package/lib/browser/ParseHooks.js +7 -7
- package/lib/node/CoreManager.js +1 -1
- package/lib/node/Parse.js +10 -19
- package/lib/node/ParseHooks.js +7 -7
- package/lib/react-native/CoreManager.js +1 -1
- package/lib/react-native/Parse.js +3 -5
- package/lib/react-native/ParseHooks.js +7 -7
- package/lib/weapp/CoreManager.js +1 -1
- package/lib/weapp/Parse.js +10 -21
- package/lib/weapp/ParseHooks.js +7 -7
- package/package.json +12 -13
package/lib/browser/Parse.js
CHANGED
|
@@ -9,8 +9,8 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
exports.default = void 0;
|
|
11
11
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var _decode = _interopRequireDefault(require("./decode"));
|
|
13
|
+
var _encode = _interopRequireDefault(require("./encode"));
|
|
14
14
|
var _CryptoController = _interopRequireDefault(require("./CryptoController"));
|
|
15
15
|
var _EventuallyQueue = _interopRequireDefault(require("./EventuallyQueue"));
|
|
16
16
|
var _IndexedDBStorageController = _interopRequireDefault(require("./IndexedDBStorageController"));
|
|
@@ -71,20 +71,11 @@ function _interopRequireWildcard(e, r) {
|
|
|
71
71
|
}
|
|
72
72
|
return n.default = e, t && t.set(e, n), n;
|
|
73
73
|
}
|
|
74
|
-
/**
|
|
75
|
-
* Contains all Parse API classes and functions.
|
|
76
|
-
*
|
|
77
|
-
* @static
|
|
78
|
-
* @global
|
|
79
|
-
* @class
|
|
80
|
-
* @hideconstructor
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
74
|
const Parse = {
|
|
84
75
|
ACL: _ParseACL.default,
|
|
85
|
-
Analytics
|
|
76
|
+
Analytics,
|
|
86
77
|
AnonymousUtils: _AnonymousUtils.default,
|
|
87
|
-
Cloud
|
|
78
|
+
Cloud,
|
|
88
79
|
CLP: _ParseCLP.default,
|
|
89
80
|
CoreManager: _CoreManager.default,
|
|
90
81
|
Config: _ParseConfig.default,
|
|
@@ -105,7 +96,7 @@ const Parse = {
|
|
|
105
96
|
AddUnique: ParseOp.AddUniqueOp,
|
|
106
97
|
Relation: ParseOp.RelationOp
|
|
107
98
|
},
|
|
108
|
-
Push
|
|
99
|
+
Push,
|
|
109
100
|
Query: _ParseQuery.default,
|
|
110
101
|
Relation: _ParseRelation.default,
|
|
111
102
|
Role: _ParseRole.default,
|
|
@@ -320,10 +311,10 @@ const Parse = {
|
|
|
320
311
|
},
|
|
321
312
|
// We attempt to match the signatures of the legacy versions of these methods
|
|
322
313
|
_decode(_, value) {
|
|
323
|
-
return (0,
|
|
314
|
+
return (0, _decode.default)(value);
|
|
324
315
|
},
|
|
325
316
|
_encode(value, _, disallowObjects) {
|
|
326
|
-
return (0,
|
|
317
|
+
return (0, _encode.default)(value, disallowObjects);
|
|
327
318
|
},
|
|
328
319
|
_getInstallationId() {
|
|
329
320
|
return _CoreManager.default.getInstallationController().currentInstallationId();
|
|
@@ -336,17 +327,15 @@ const Parse = {
|
|
|
336
327
|
* @param [ms] Milliseconds to ping the server. Default 2000ms
|
|
337
328
|
* @static
|
|
338
329
|
*/
|
|
339
|
-
enableLocalDatastore() {
|
|
340
|
-
let polling = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
341
|
-
let ms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
|
|
330
|
+
enableLocalDatastore(polling, ms) {
|
|
342
331
|
if (!this.applicationId) {
|
|
343
332
|
console.log("'enableLocalDataStore' must be called after 'initialize'");
|
|
344
333
|
return;
|
|
345
334
|
}
|
|
346
335
|
if (!this.LocalDatastore.isEnabled) {
|
|
347
336
|
this.LocalDatastore.isEnabled = true;
|
|
348
|
-
if (polling) {
|
|
349
|
-
_CoreManager.default.getEventuallyQueue().poll(ms);
|
|
337
|
+
if (polling || typeof polling === 'undefined') {
|
|
338
|
+
_CoreManager.default.getEventuallyQueue().poll(ms || 2000);
|
|
350
339
|
}
|
|
351
340
|
}
|
|
352
341
|
},
|
|
@@ -82,7 +82,7 @@ function remove(hook) {
|
|
|
82
82
|
}
|
|
83
83
|
const DefaultController = {
|
|
84
84
|
get(type, functionName, triggerName) {
|
|
85
|
-
let url = '
|
|
85
|
+
let url = 'hooks/' + type;
|
|
86
86
|
if (functionName) {
|
|
87
87
|
url += '/' + functionName;
|
|
88
88
|
if (triggerName) {
|
|
@@ -94,9 +94,9 @@ const DefaultController = {
|
|
|
94
94
|
create(hook) {
|
|
95
95
|
let url;
|
|
96
96
|
if (hook.functionName && hook.url) {
|
|
97
|
-
url = '
|
|
97
|
+
url = 'hooks/functions';
|
|
98
98
|
} else if (hook.className && hook.triggerName && hook.url) {
|
|
99
|
-
url = '
|
|
99
|
+
url = 'hooks/triggers';
|
|
100
100
|
} else {
|
|
101
101
|
return _promise.default.reject({
|
|
102
102
|
error: 'invalid hook declaration',
|
|
@@ -108,10 +108,10 @@ const DefaultController = {
|
|
|
108
108
|
remove(hook) {
|
|
109
109
|
let url;
|
|
110
110
|
if (hook.functionName) {
|
|
111
|
-
url = '
|
|
111
|
+
url = 'hooks/functions/' + hook.functionName;
|
|
112
112
|
delete hook.functionName;
|
|
113
113
|
} else if (hook.className && hook.triggerName) {
|
|
114
|
-
url = '
|
|
114
|
+
url = 'hooks/triggers/' + hook.className + '/' + hook.triggerName;
|
|
115
115
|
delete hook.className;
|
|
116
116
|
delete hook.triggerName;
|
|
117
117
|
} else {
|
|
@@ -127,10 +127,10 @@ const DefaultController = {
|
|
|
127
127
|
update(hook) {
|
|
128
128
|
let url;
|
|
129
129
|
if (hook.functionName && hook.url) {
|
|
130
|
-
url = '
|
|
130
|
+
url = 'hooks/functions/' + hook.functionName;
|
|
131
131
|
delete hook.functionName;
|
|
132
132
|
} else if (hook.className && hook.triggerName && hook.url) {
|
|
133
|
-
url = '
|
|
133
|
+
url = 'hooks/triggers/' + hook.className + '/' + hook.triggerName;
|
|
134
134
|
delete hook.className;
|
|
135
135
|
delete hook.triggerName;
|
|
136
136
|
} else {
|
package/lib/node/CoreManager.js
CHANGED
package/lib/node/Parse.js
CHANGED
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var _decode = _interopRequireDefault(require("./decode"));
|
|
8
|
+
var _encode = _interopRequireDefault(require("./encode"));
|
|
9
9
|
var _CryptoController = _interopRequireDefault(require("./CryptoController"));
|
|
10
10
|
var _EventuallyQueue = _interopRequireDefault(require("./EventuallyQueue"));
|
|
11
11
|
var _IndexedDBStorageController = _interopRequireDefault(require("./IndexedDBStorageController"));
|
|
@@ -72,20 +72,11 @@ function _interopRequireDefault(e) {
|
|
|
72
72
|
default: e
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
/**
|
|
76
|
-
* Contains all Parse API classes and functions.
|
|
77
|
-
*
|
|
78
|
-
* @static
|
|
79
|
-
* @global
|
|
80
|
-
* @class
|
|
81
|
-
* @hideconstructor
|
|
82
|
-
*/
|
|
83
|
-
|
|
84
75
|
const Parse = {
|
|
85
76
|
ACL: _ParseACL.default,
|
|
86
|
-
Analytics
|
|
77
|
+
Analytics,
|
|
87
78
|
AnonymousUtils: _AnonymousUtils.default,
|
|
88
|
-
Cloud
|
|
79
|
+
Cloud,
|
|
89
80
|
CLP: _ParseCLP.default,
|
|
90
81
|
CoreManager: _CoreManager.default,
|
|
91
82
|
Config: _ParseConfig.default,
|
|
@@ -106,7 +97,7 @@ const Parse = {
|
|
|
106
97
|
AddUnique: ParseOp.AddUniqueOp,
|
|
107
98
|
Relation: ParseOp.RelationOp
|
|
108
99
|
},
|
|
109
|
-
Push
|
|
100
|
+
Push,
|
|
110
101
|
Query: _ParseQuery.default,
|
|
111
102
|
Relation: _ParseRelation.default,
|
|
112
103
|
Role: _ParseRole.default,
|
|
@@ -311,10 +302,10 @@ const Parse = {
|
|
|
311
302
|
},
|
|
312
303
|
// We attempt to match the signatures of the legacy versions of these methods
|
|
313
304
|
_decode(_, value) {
|
|
314
|
-
return (0,
|
|
305
|
+
return (0, _decode.default)(value);
|
|
315
306
|
},
|
|
316
307
|
_encode(value, _, disallowObjects) {
|
|
317
|
-
return (0,
|
|
308
|
+
return (0, _encode.default)(value, disallowObjects);
|
|
318
309
|
},
|
|
319
310
|
_getInstallationId() {
|
|
320
311
|
return _CoreManager.default.getInstallationController().currentInstallationId();
|
|
@@ -327,15 +318,15 @@ const Parse = {
|
|
|
327
318
|
* @param [ms] Milliseconds to ping the server. Default 2000ms
|
|
328
319
|
* @static
|
|
329
320
|
*/
|
|
330
|
-
enableLocalDatastore(polling
|
|
321
|
+
enableLocalDatastore(polling, ms) {
|
|
331
322
|
if (!this.applicationId) {
|
|
332
323
|
console.log("'enableLocalDataStore' must be called after 'initialize'");
|
|
333
324
|
return;
|
|
334
325
|
}
|
|
335
326
|
if (!this.LocalDatastore.isEnabled) {
|
|
336
327
|
this.LocalDatastore.isEnabled = true;
|
|
337
|
-
if (polling) {
|
|
338
|
-
_CoreManager.default.getEventuallyQueue().poll(ms);
|
|
328
|
+
if (polling || typeof polling === 'undefined') {
|
|
329
|
+
_CoreManager.default.getEventuallyQueue().poll(ms || 2000);
|
|
339
330
|
}
|
|
340
331
|
}
|
|
341
332
|
},
|
package/lib/node/ParseHooks.js
CHANGED
|
@@ -84,7 +84,7 @@ function remove(hook) {
|
|
|
84
84
|
}
|
|
85
85
|
const DefaultController = {
|
|
86
86
|
get(type, functionName, triggerName) {
|
|
87
|
-
let url = '
|
|
87
|
+
let url = 'hooks/' + type;
|
|
88
88
|
if (functionName) {
|
|
89
89
|
url += '/' + functionName;
|
|
90
90
|
if (triggerName) {
|
|
@@ -96,9 +96,9 @@ const DefaultController = {
|
|
|
96
96
|
create(hook) {
|
|
97
97
|
let url;
|
|
98
98
|
if (hook.functionName && hook.url) {
|
|
99
|
-
url = '
|
|
99
|
+
url = 'hooks/functions';
|
|
100
100
|
} else if (hook.className && hook.triggerName && hook.url) {
|
|
101
|
-
url = '
|
|
101
|
+
url = 'hooks/triggers';
|
|
102
102
|
} else {
|
|
103
103
|
return Promise.reject({
|
|
104
104
|
error: 'invalid hook declaration',
|
|
@@ -110,10 +110,10 @@ const DefaultController = {
|
|
|
110
110
|
remove(hook) {
|
|
111
111
|
let url;
|
|
112
112
|
if (hook.functionName) {
|
|
113
|
-
url = '
|
|
113
|
+
url = 'hooks/functions/' + hook.functionName;
|
|
114
114
|
delete hook.functionName;
|
|
115
115
|
} else if (hook.className && hook.triggerName) {
|
|
116
|
-
url = '
|
|
116
|
+
url = 'hooks/triggers/' + hook.className + '/' + hook.triggerName;
|
|
117
117
|
delete hook.className;
|
|
118
118
|
delete hook.triggerName;
|
|
119
119
|
} else {
|
|
@@ -129,10 +129,10 @@ const DefaultController = {
|
|
|
129
129
|
update(hook) {
|
|
130
130
|
let url;
|
|
131
131
|
if (hook.functionName && hook.url) {
|
|
132
|
-
url = '
|
|
132
|
+
url = 'hooks/functions/' + hook.functionName;
|
|
133
133
|
delete hook.functionName;
|
|
134
134
|
} else if (hook.className && hook.triggerName && hook.url) {
|
|
135
|
-
url = '
|
|
135
|
+
url = 'hooks/triggers/' + hook.className + '/' + hook.triggerName;
|
|
136
136
|
delete hook.className;
|
|
137
137
|
delete hook.triggerName;
|
|
138
138
|
} else {
|
|
@@ -228,17 +228,15 @@ var Parse = {
|
|
|
228
228
|
_getInstallationId: function () {
|
|
229
229
|
return _CoreManager.default.getInstallationController().currentInstallationId();
|
|
230
230
|
},
|
|
231
|
-
enableLocalDatastore: function () {
|
|
232
|
-
var polling = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
233
|
-
var ms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
|
|
231
|
+
enableLocalDatastore: function (polling, ms) {
|
|
234
232
|
if (!this.applicationId) {
|
|
235
233
|
console.log("'enableLocalDataStore' must be called after 'initialize'");
|
|
236
234
|
return;
|
|
237
235
|
}
|
|
238
236
|
if (!this.LocalDatastore.isEnabled) {
|
|
239
237
|
this.LocalDatastore.isEnabled = true;
|
|
240
|
-
if (polling) {
|
|
241
|
-
_CoreManager.default.getEventuallyQueue().poll(ms);
|
|
238
|
+
if (polling || typeof polling === 'undefined') {
|
|
239
|
+
_CoreManager.default.getEventuallyQueue().poll(ms || 2000);
|
|
242
240
|
}
|
|
243
241
|
}
|
|
244
242
|
},
|
|
@@ -78,7 +78,7 @@ function remove(hook) {
|
|
|
78
78
|
}
|
|
79
79
|
var DefaultController = {
|
|
80
80
|
get: function (type, functionName, triggerName) {
|
|
81
|
-
var url = '
|
|
81
|
+
var url = 'hooks/' + type;
|
|
82
82
|
if (functionName) {
|
|
83
83
|
url += '/' + functionName;
|
|
84
84
|
if (triggerName) {
|
|
@@ -90,9 +90,9 @@ var DefaultController = {
|
|
|
90
90
|
create: function (hook) {
|
|
91
91
|
var url;
|
|
92
92
|
if (hook.functionName && hook.url) {
|
|
93
|
-
url = '
|
|
93
|
+
url = 'hooks/functions';
|
|
94
94
|
} else if (hook.className && hook.triggerName && hook.url) {
|
|
95
|
-
url = '
|
|
95
|
+
url = 'hooks/triggers';
|
|
96
96
|
} else {
|
|
97
97
|
return Promise.reject({
|
|
98
98
|
error: 'invalid hook declaration',
|
|
@@ -104,10 +104,10 @@ var DefaultController = {
|
|
|
104
104
|
remove: function (hook) {
|
|
105
105
|
var url;
|
|
106
106
|
if (hook.functionName) {
|
|
107
|
-
url = '
|
|
107
|
+
url = 'hooks/functions/' + hook.functionName;
|
|
108
108
|
delete hook.functionName;
|
|
109
109
|
} else if (hook.className && hook.triggerName) {
|
|
110
|
-
url = '
|
|
110
|
+
url = 'hooks/triggers/' + hook.className + '/' + hook.triggerName;
|
|
111
111
|
delete hook.className;
|
|
112
112
|
delete hook.triggerName;
|
|
113
113
|
} else {
|
|
@@ -123,10 +123,10 @@ var DefaultController = {
|
|
|
123
123
|
update: function (hook) {
|
|
124
124
|
var url;
|
|
125
125
|
if (hook.functionName && hook.url) {
|
|
126
|
-
url = '
|
|
126
|
+
url = 'hooks/functions/' + hook.functionName;
|
|
127
127
|
delete hook.functionName;
|
|
128
128
|
} else if (hook.className && hook.triggerName && hook.url) {
|
|
129
|
-
url = '
|
|
129
|
+
url = 'hooks/triggers/' + hook.className + '/' + hook.triggerName;
|
|
130
130
|
delete hook.className;
|
|
131
131
|
delete hook.triggerName;
|
|
132
132
|
} else {
|
package/lib/weapp/CoreManager.js
CHANGED
package/lib/weapp/Parse.js
CHANGED
|
@@ -9,8 +9,8 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
exports.default = void 0;
|
|
11
11
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var _decode = _interopRequireDefault(require("./decode"));
|
|
13
|
+
var _encode = _interopRequireDefault(require("./encode"));
|
|
14
14
|
var _CryptoController = _interopRequireDefault(require("./CryptoController"));
|
|
15
15
|
var _EventuallyQueue = _interopRequireDefault(require("./EventuallyQueue"));
|
|
16
16
|
var _IndexedDBStorageController = _interopRequireDefault(require("./IndexedDBStorageController"));
|
|
@@ -71,20 +71,11 @@ function _interopRequireWildcard(e, r) {
|
|
|
71
71
|
}
|
|
72
72
|
return n.default = e, t && t.set(e, n), n;
|
|
73
73
|
}
|
|
74
|
-
/**
|
|
75
|
-
* Contains all Parse API classes and functions.
|
|
76
|
-
*
|
|
77
|
-
* @static
|
|
78
|
-
* @global
|
|
79
|
-
* @class
|
|
80
|
-
* @hideconstructor
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
74
|
const Parse = {
|
|
84
75
|
ACL: _ParseACL.default,
|
|
85
|
-
Analytics
|
|
76
|
+
Analytics,
|
|
86
77
|
AnonymousUtils: _AnonymousUtils.default,
|
|
87
|
-
Cloud
|
|
78
|
+
Cloud,
|
|
88
79
|
CLP: _ParseCLP.default,
|
|
89
80
|
CoreManager: _CoreManager.default,
|
|
90
81
|
Config: _ParseConfig.default,
|
|
@@ -105,7 +96,7 @@ const Parse = {
|
|
|
105
96
|
AddUnique: ParseOp.AddUniqueOp,
|
|
106
97
|
Relation: ParseOp.RelationOp
|
|
107
98
|
},
|
|
108
|
-
Push
|
|
99
|
+
Push,
|
|
109
100
|
Query: _ParseQuery.default,
|
|
110
101
|
Relation: _ParseRelation.default,
|
|
111
102
|
Role: _ParseRole.default,
|
|
@@ -316,10 +307,10 @@ const Parse = {
|
|
|
316
307
|
},
|
|
317
308
|
// We attempt to match the signatures of the legacy versions of these methods
|
|
318
309
|
_decode(_, value) {
|
|
319
|
-
return (0,
|
|
310
|
+
return (0, _decode.default)(value);
|
|
320
311
|
},
|
|
321
312
|
_encode(value, _, disallowObjects) {
|
|
322
|
-
return (0,
|
|
313
|
+
return (0, _encode.default)(value, disallowObjects);
|
|
323
314
|
},
|
|
324
315
|
_getInstallationId() {
|
|
325
316
|
return _CoreManager.default.getInstallationController().currentInstallationId();
|
|
@@ -332,17 +323,15 @@ const Parse = {
|
|
|
332
323
|
* @param [ms] Milliseconds to ping the server. Default 2000ms
|
|
333
324
|
* @static
|
|
334
325
|
*/
|
|
335
|
-
enableLocalDatastore() {
|
|
336
|
-
let polling = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
337
|
-
let ms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
|
|
326
|
+
enableLocalDatastore(polling, ms) {
|
|
338
327
|
if (!this.applicationId) {
|
|
339
328
|
console.log("'enableLocalDataStore' must be called after 'initialize'");
|
|
340
329
|
return;
|
|
341
330
|
}
|
|
342
331
|
if (!this.LocalDatastore.isEnabled) {
|
|
343
332
|
this.LocalDatastore.isEnabled = true;
|
|
344
|
-
if (polling) {
|
|
345
|
-
_CoreManager.default.getEventuallyQueue().poll(ms);
|
|
333
|
+
if (polling || typeof polling === 'undefined') {
|
|
334
|
+
_CoreManager.default.getEventuallyQueue().poll(ms || 2000);
|
|
346
335
|
}
|
|
347
336
|
}
|
|
348
337
|
},
|
package/lib/weapp/ParseHooks.js
CHANGED
|
@@ -82,7 +82,7 @@ function remove(hook) {
|
|
|
82
82
|
}
|
|
83
83
|
const DefaultController = {
|
|
84
84
|
get(type, functionName, triggerName) {
|
|
85
|
-
let url = '
|
|
85
|
+
let url = 'hooks/' + type;
|
|
86
86
|
if (functionName) {
|
|
87
87
|
url += '/' + functionName;
|
|
88
88
|
if (triggerName) {
|
|
@@ -94,9 +94,9 @@ const DefaultController = {
|
|
|
94
94
|
create(hook) {
|
|
95
95
|
let url;
|
|
96
96
|
if (hook.functionName && hook.url) {
|
|
97
|
-
url = '
|
|
97
|
+
url = 'hooks/functions';
|
|
98
98
|
} else if (hook.className && hook.triggerName && hook.url) {
|
|
99
|
-
url = '
|
|
99
|
+
url = 'hooks/triggers';
|
|
100
100
|
} else {
|
|
101
101
|
return _promise.default.reject({
|
|
102
102
|
error: 'invalid hook declaration',
|
|
@@ -108,10 +108,10 @@ const DefaultController = {
|
|
|
108
108
|
remove(hook) {
|
|
109
109
|
let url;
|
|
110
110
|
if (hook.functionName) {
|
|
111
|
-
url = '
|
|
111
|
+
url = 'hooks/functions/' + hook.functionName;
|
|
112
112
|
delete hook.functionName;
|
|
113
113
|
} else if (hook.className && hook.triggerName) {
|
|
114
|
-
url = '
|
|
114
|
+
url = 'hooks/triggers/' + hook.className + '/' + hook.triggerName;
|
|
115
115
|
delete hook.className;
|
|
116
116
|
delete hook.triggerName;
|
|
117
117
|
} else {
|
|
@@ -127,10 +127,10 @@ const DefaultController = {
|
|
|
127
127
|
update(hook) {
|
|
128
128
|
let url;
|
|
129
129
|
if (hook.functionName && hook.url) {
|
|
130
|
-
url = '
|
|
130
|
+
url = 'hooks/functions/' + hook.functionName;
|
|
131
131
|
delete hook.functionName;
|
|
132
132
|
} else if (hook.className && hook.triggerName && hook.url) {
|
|
133
|
-
url = '
|
|
133
|
+
url = 'hooks/triggers/' + hook.className + '/' + hook.triggerName;
|
|
134
134
|
delete hook.className;
|
|
135
135
|
delete hook.triggerName;
|
|
136
136
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parse",
|
|
3
|
-
"version": "6.0.0
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Parse JavaScript SDK",
|
|
5
5
|
"homepage": "https://parseplatform.org",
|
|
6
6
|
"keywords": [
|
|
@@ -33,17 +33,16 @@
|
|
|
33
33
|
"idb-keyval": "6.2.1",
|
|
34
34
|
"react-native-crypto-js": "1.0.0",
|
|
35
35
|
"uuid": "10.0.0",
|
|
36
|
-
"ws": "8.18.
|
|
36
|
+
"ws": "8.18.1",
|
|
37
37
|
"xmlhttprequest": "1.8.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@babel/core": "7.26.
|
|
40
|
+
"@babel/core": "7.26.9",
|
|
41
41
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
42
|
-
"@babel/plugin-transform-runtime": "7.26.
|
|
43
|
-
"@babel/preset-env": "7.26.
|
|
42
|
+
"@babel/plugin-transform-runtime": "7.26.9",
|
|
43
|
+
"@babel/preset-env": "7.26.9",
|
|
44
44
|
"@babel/preset-react": "7.26.3",
|
|
45
45
|
"@babel/preset-typescript": "7.26.0",
|
|
46
|
-
"@definitelytyped/dtslint": "0.0.163",
|
|
47
46
|
"@eslint/js": "9.18.0",
|
|
48
47
|
"@parse/minami": "git+https://github.com/parse-community/minami#main",
|
|
49
48
|
"@saithodev/semantic-release-backmerge": "4.0.1",
|
|
@@ -62,7 +61,8 @@
|
|
|
62
61
|
"codecov": "3.8.3",
|
|
63
62
|
"core-js": "3.40.0",
|
|
64
63
|
"cross-env": "7.0.2",
|
|
65
|
-
"eslint": "9.
|
|
64
|
+
"eslint": "9.21.0",
|
|
65
|
+
"eslint-plugin-expect-type": "0.6.2",
|
|
66
66
|
"eslint-plugin-jsdoc": "50.6.3",
|
|
67
67
|
"express": "4.21.2",
|
|
68
68
|
"gulp": "5.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"gulp-uglify": "3.0.2",
|
|
74
74
|
"gulp-watch": "5.0.1",
|
|
75
75
|
"husky": "9.1.7",
|
|
76
|
-
"jasmine": "5.
|
|
76
|
+
"jasmine": "5.6.0",
|
|
77
77
|
"jasmine-reporters": "2.5.2",
|
|
78
78
|
"jasmine-spec-reporter": "7.0.0",
|
|
79
79
|
"jest": "29.7.0",
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"metro-react-native-babel-preset": "0.77.0",
|
|
86
86
|
"mongodb-runner": "5.8.0",
|
|
87
87
|
"parse-server": "7.3.0",
|
|
88
|
-
"prettier": "3.5.
|
|
88
|
+
"prettier": "3.5.2",
|
|
89
89
|
"puppeteer": "24.2.1",
|
|
90
90
|
"regenerator-runtime": "0.14.1",
|
|
91
|
-
"semantic-release": "24.2.
|
|
92
|
-
"typescript-eslint": "8.
|
|
91
|
+
"semantic-release": "24.2.3",
|
|
92
|
+
"typescript-eslint": "8.25.0",
|
|
93
93
|
"vinyl-source-stream": "2.0.0"
|
|
94
94
|
},
|
|
95
95
|
"optionalDependencies": {
|
|
@@ -102,11 +102,10 @@
|
|
|
102
102
|
"test": "cross-env PARSE_BUILD=node jest",
|
|
103
103
|
"test:mongodb": "npm run test:mongodb:runnerstart && npm run integration",
|
|
104
104
|
"test:mongodb:runnerstart": "mongodb-runner start -- --port 27017",
|
|
105
|
-
"test:types": "dtslint --expectOnly types",
|
|
106
105
|
"posttest:mongodb": "mongodb-runner stop --all",
|
|
107
106
|
"lint": "eslint --cache src/ integration/",
|
|
108
107
|
"lint:fix": "eslint --fix --cache src/ integration/",
|
|
109
|
-
"
|
|
108
|
+
"test:types": "eslint --cache types/tests.ts -c eslint.config.test.mjs",
|
|
110
109
|
"watch": "cross-env PARSE_BUILD=${PARSE_BUILD} gulp watch",
|
|
111
110
|
"watch:browser": "cross-env PARSE_BUILD=browser npm run watch",
|
|
112
111
|
"watch:node": "cross-env PARSE_BUILD=node npm run watch",
|