@vizmo/parse-server 5.5.5 β 7.5.2-1
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/LICENSE +167 -25
- package/NOTICE +10 -0
- package/README.md +88 -67
- package/lib/AccountLockout.js +13 -29
- package/lib/Adapters/AdapterLoader.js +14 -16
- package/lib/Adapters/Analytics/AnalyticsAdapter.js +4 -13
- package/lib/Adapters/Auth/AuthAdapter.js +113 -15
- package/lib/Adapters/Auth/BaseCodeAuthAdapter.js +99 -0
- package/lib/Adapters/Auth/OAuth1Client.js +35 -58
- package/lib/Adapters/Auth/apple.js +53 -35
- package/lib/Adapters/Auth/facebook.js +71 -51
- package/lib/Adapters/Auth/gcenter.js +202 -187
- package/lib/Adapters/Auth/github.js +119 -34
- package/lib/Adapters/Auth/google.js +58 -45
- package/lib/Adapters/Auth/gpgames.js +120 -30
- package/lib/Adapters/Auth/httpsRequest.js +1 -7
- package/lib/Adapters/Auth/index.js +152 -94
- package/lib/Adapters/Auth/instagram.js +114 -28
- package/lib/Adapters/Auth/janraincapture.js +51 -12
- package/lib/Adapters/Auth/janrainengage.js +18 -12
- package/lib/Adapters/Auth/keycloak.js +77 -54
- package/lib/Adapters/Auth/ldap.js +76 -16
- package/lib/Adapters/Auth/line.js +119 -35
- package/lib/Adapters/Auth/linkedin.js +111 -40
- package/lib/Adapters/Auth/meetup.js +22 -17
- package/lib/Adapters/Auth/mfa.js +326 -0
- package/lib/Adapters/Auth/microsoft.js +105 -33
- package/lib/Adapters/Auth/oauth2.js +100 -122
- package/lib/Adapters/Auth/phantauth.js +23 -17
- package/lib/Adapters/Auth/qq.js +107 -42
- package/lib/Adapters/Auth/spotify.js +108 -46
- package/lib/Adapters/Auth/twitter.js +185 -48
- package/lib/Adapters/Auth/utils.js +28 -0
- package/lib/Adapters/Auth/vkontakte.js +29 -27
- package/lib/Adapters/Auth/wechat.js +105 -28
- package/lib/Adapters/Auth/weibo.js +135 -41
- package/lib/Adapters/Cache/CacheAdapter.js +6 -16
- package/lib/Adapters/Cache/InMemoryCache.js +6 -21
- package/lib/Adapters/Cache/InMemoryCacheAdapter.js +2 -13
- package/lib/Adapters/Cache/LRUCache.js +7 -18
- package/lib/Adapters/Cache/NullCacheAdapter.js +2 -10
- package/lib/Adapters/Cache/RedisCacheAdapter.js +56 -90
- package/lib/Adapters/Cache/SchemaCache.js +2 -8
- package/lib/Adapters/Email/MailAdapter.js +5 -13
- package/lib/Adapters/Files/FilesAdapter.js +12 -29
- package/lib/Adapters/Files/GridFSBucketAdapter.js +35 -94
- package/lib/Adapters/Files/GridStoreAdapter.js +1 -1
- package/lib/Adapters/Logger/LoggerAdapter.js +5 -17
- package/lib/Adapters/Logger/WinstonLogger.js +8 -37
- package/lib/Adapters/Logger/WinstonLoggerAdapter.js +6 -18
- package/lib/Adapters/MessageQueue/EventEmitterMQ.js +5 -23
- package/lib/Adapters/PubSub/EventEmitterPubSub.js +3 -19
- package/lib/Adapters/PubSub/PubSubAdapter.js +9 -14
- package/lib/Adapters/PubSub/RedisPubSub.js +33 -12
- package/lib/Adapters/Push/PushAdapter.js +5 -14
- package/lib/Adapters/Storage/Mongo/MongoCollection.js +34 -58
- package/lib/Adapters/Storage/Mongo/MongoSchemaCollection.js +33 -85
- package/lib/Adapters/Storage/Mongo/MongoStorageAdapter.js +107 -230
- package/lib/Adapters/Storage/Mongo/MongoTransform.js +105 -378
- package/lib/Adapters/Storage/Postgres/PostgresClient.js +1 -13
- package/lib/Adapters/Storage/Postgres/PostgresConfigParser.js +2 -21
- package/lib/Adapters/Storage/Postgres/PostgresStorageAdapter.js +160 -465
- package/lib/Adapters/Storage/Postgres/sql/index.js +4 -7
- package/lib/Adapters/Storage/StorageAdapter.js +1 -1
- package/lib/Adapters/WebSocketServer/WSAdapter.js +4 -14
- package/lib/Adapters/WebSocketServer/WSSAdapter.js +10 -18
- package/lib/Auth.js +357 -81
- package/lib/ClientSDK.js +3 -11
- package/lib/Config.js +194 -135
- package/lib/Controllers/AdaptableController.js +7 -20
- package/lib/Controllers/AnalyticsController.js +3 -12
- package/lib/Controllers/CacheController.js +5 -26
- package/lib/Controllers/DatabaseController.js +250 -389
- package/lib/Controllers/FilesController.js +23 -53
- package/lib/Controllers/HooksController.js +6 -57
- package/lib/Controllers/LiveQueryController.js +5 -25
- package/lib/Controllers/LoggerController.js +19 -62
- package/lib/Controllers/ParseGraphQLController.js +63 -115
- package/lib/Controllers/PushController.js +31 -64
- package/lib/Controllers/SchemaController.js +230 -376
- package/lib/Controllers/UserController.js +113 -128
- package/lib/Controllers/index.js +23 -83
- package/lib/Controllers/types.js +1 -1
- package/lib/Deprecator/Deprecations.js +3 -7
- package/lib/Deprecator/Deprecator.js +10 -19
- package/lib/GraphQL/ParseGraphQLSchema.js +19 -103
- package/lib/GraphQL/ParseGraphQLServer.js +63 -59
- package/lib/GraphQL/helpers/objectsMutations.js +3 -13
- package/lib/GraphQL/helpers/objectsQueries.js +19 -77
- package/lib/GraphQL/loaders/defaultGraphQLMutations.js +3 -11
- package/lib/GraphQL/loaders/defaultGraphQLQueries.js +3 -10
- package/lib/GraphQL/loaders/defaultGraphQLTypes.js +90 -262
- package/lib/GraphQL/loaders/defaultRelaySchema.js +10 -23
- package/lib/GraphQL/loaders/filesMutations.js +57 -36
- package/lib/GraphQL/loaders/functionsMutations.js +9 -20
- package/lib/GraphQL/loaders/parseClassMutations.js +17 -49
- package/lib/GraphQL/loaders/parseClassQueries.js +4 -29
- package/lib/GraphQL/loaders/parseClassTypes.js +24 -71
- package/lib/GraphQL/loaders/schemaDirectives.js +2 -19
- package/lib/GraphQL/loaders/schemaMutations.js +4 -23
- package/lib/GraphQL/loaders/schemaQueries.js +4 -17
- package/lib/GraphQL/loaders/schemaTypes.js +33 -68
- package/lib/GraphQL/loaders/usersMutations.js +91 -39
- package/lib/GraphQL/loaders/usersQueries.js +5 -27
- package/lib/GraphQL/parseGraphQLUtils.js +15 -24
- package/lib/GraphQL/transformers/className.js +1 -4
- package/lib/GraphQL/transformers/constraintType.js +3 -22
- package/lib/GraphQL/transformers/inputType.js +3 -22
- package/lib/GraphQL/transformers/mutation.js +40 -72
- package/lib/GraphQL/transformers/outputType.js +3 -22
- package/lib/GraphQL/transformers/query.js +6 -42
- package/lib/GraphQL/transformers/schemaFields.js +8 -35
- package/lib/KeyPromiseQueue.js +1 -12
- package/lib/LiveQuery/Client.js +6 -30
- package/lib/LiveQuery/Id.js +1 -7
- package/lib/LiveQuery/ParseCloudCodePublisher.js +14 -20
- package/lib/LiveQuery/ParseLiveQueryServer.js +129 -324
- package/lib/LiveQuery/ParsePubSub.js +2 -14
- package/lib/LiveQuery/ParseWebSocketServer.js +5 -27
- package/lib/LiveQuery/QueryTools.js +22 -118
- package/lib/LiveQuery/RequestSchema.js +20 -5
- package/lib/LiveQuery/SessionTokenCache.js +4 -20
- package/lib/LiveQuery/Subscription.js +5 -19
- package/lib/LiveQuery/equalObjects.js +2 -14
- package/lib/Options/Definitions.js +246 -25
- package/lib/Options/docs.js +53 -7
- package/lib/Options/index.js +4 -12
- package/lib/Options/parsers.js +10 -18
- package/lib/Page.js +2 -11
- package/lib/ParseMessageQueue.js +2 -12
- package/lib/ParseServer.js +258 -210
- package/lib/ParseServerRESTController.js +15 -38
- package/lib/PromiseRouter.js +17 -51
- package/lib/Push/PushQueue.js +4 -16
- package/lib/Push/PushWorker.js +11 -37
- package/lib/Push/utils.js +10 -39
- package/lib/RestQuery.js +259 -289
- package/lib/RestWrite.js +469 -547
- package/lib/Routers/AggregateRouter.js +28 -62
- package/lib/Routers/AnalyticsRouter.js +3 -9
- package/lib/Routers/AudiencesRouter.js +5 -20
- package/lib/Routers/ClassesRouter.js +13 -57
- package/lib/Routers/CloudCodeRouter.js +2 -20
- package/lib/Routers/FeaturesRouter.js +8 -13
- package/lib/Routers/FilesRouter.js +69 -91
- package/lib/Routers/FunctionsRouter.js +37 -49
- package/lib/Routers/GlobalConfigRouter.js +59 -31
- package/lib/Routers/GraphQLRouter.js +5 -19
- package/lib/Routers/HooksRouter.js +5 -34
- package/lib/Routers/IAPValidationRouter.js +7 -30
- package/lib/Routers/InstallationsRouter.js +4 -15
- package/lib/Routers/LogsRouter.js +8 -21
- package/lib/Routers/PagesRouter.js +72 -133
- package/lib/Routers/PublicAPIRouter.js +6 -66
- package/lib/Routers/PurgeRouter.js +5 -20
- package/lib/Routers/PushRouter.js +6 -23
- package/lib/Routers/RolesRouter.js +3 -10
- package/lib/Routers/SchemasRouter.js +9 -39
- package/lib/Routers/SecurityRouter.js +5 -17
- package/lib/Routers/SessionsRouter.js +5 -22
- package/lib/Routers/UsersRouter.js +247 -154
- package/lib/SchemaMigrations/DefinedSchemas.js +71 -122
- package/lib/SchemaMigrations/Migrations.js +2 -8
- package/lib/Security/Check.js +11 -20
- package/lib/Security/CheckGroup.js +6 -16
- package/lib/Security/CheckGroups/CheckGroupDatabase.js +9 -22
- package/lib/Security/CheckGroups/CheckGroupServerConfig.js +16 -20
- package/lib/Security/CheckGroups/CheckGroups.js +2 -5
- package/lib/Security/CheckRunner.js +26 -48
- package/lib/SharedRest.js +28 -0
- package/lib/StatusHandler.js +21 -70
- package/lib/TestUtils.js +28 -10
- package/lib/Utils.js +71 -65
- package/lib/batch.js +17 -28
- package/lib/cache.js +3 -7
- package/lib/cli/definitions/parse-live-query-server.js +2 -5
- package/lib/cli/definitions/parse-server.js +2 -5
- package/lib/cli/parse-live-query-server.js +2 -7
- package/lib/cli/parse-server.js +12 -22
- package/lib/cli/utils/commander.js +15 -54
- package/lib/cli/utils/runner.js +9 -21
- package/lib/cloud-code/Parse.Cloud.js +76 -216
- package/lib/cloud-code/Parse.Server.js +21 -0
- package/lib/cryptoUtils.js +11 -19
- package/lib/defaults.js +4 -18
- package/lib/deprecated.js +1 -2
- package/lib/index.js +29 -43
- package/lib/logger.js +7 -14
- package/lib/middlewares.js +292 -144
- package/lib/password.js +6 -10
- package/lib/request.js +173 -2
- package/lib/requiredParameter.js +1 -3
- package/lib/rest.js +65 -81
- package/lib/triggers.js +100 -258
- package/lib/vendor/mongodbUrl.js +312 -362
- package/package.json +84 -77
- package/postinstall.js +38 -50
- package/PATENTS +0 -37
- package/lib/cloud-code/HTTPResponse.js +0 -73
- package/lib/cloud-code/httpRequest.js +0 -192
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizmo/parse-server",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.5.2-1",
|
|
4
4
|
"description": "An express module providing a Parse-compatible API server",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/
|
|
8
|
+
"url": "https://github.com/parse-community/parse-server"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"bin/",
|
|
@@ -13,119 +13,126 @@
|
|
|
13
13
|
"public_html/",
|
|
14
14
|
"views/",
|
|
15
15
|
"LICENSE",
|
|
16
|
-
"
|
|
16
|
+
"NOTICE",
|
|
17
17
|
"postinstall.js",
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
|
-
"license": "
|
|
20
|
+
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@
|
|
23
|
-
"@
|
|
24
|
-
"@graphql-tools/merge": "
|
|
25
|
-
"@graphql-tools/schema": "
|
|
26
|
-
"@
|
|
27
|
-
"@parse/
|
|
22
|
+
"@apollo/server": "4.11.2",
|
|
23
|
+
"@babel/eslint-parser": "7.26.5",
|
|
24
|
+
"@graphql-tools/merge": "9.0.17",
|
|
25
|
+
"@graphql-tools/schema": "10.0.18",
|
|
26
|
+
"@graphql-tools/utils": "10.6.3",
|
|
27
|
+
"@parse/fs-files-adapter": "3.0.0",
|
|
28
|
+
"@parse/push-adapter": "6.8.0",
|
|
28
29
|
"bcryptjs": "2.4.3",
|
|
29
|
-
"body-parser": "1.20.
|
|
30
|
-
"commander": "
|
|
30
|
+
"body-parser": "1.20.3",
|
|
31
|
+
"commander": "12.1.0",
|
|
31
32
|
"cors": "2.8.5",
|
|
32
33
|
"deepcopy": "2.1.0",
|
|
33
|
-
"express": "4.
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"graphql
|
|
34
|
+
"express": "4.21.2",
|
|
35
|
+
"express-rate-limit": "7.4.1",
|
|
36
|
+
"follow-redirects": "1.15.9",
|
|
37
|
+
"graphql": "16.10.0",
|
|
38
|
+
"graphql-list-fields": "2.0.4",
|
|
39
|
+
"graphql-relay": "0.10.2",
|
|
37
40
|
"graphql-tag": "2.12.6",
|
|
38
|
-
"graphql-
|
|
41
|
+
"graphql-upload": "15.0.2",
|
|
39
42
|
"intersect": "1.0.1",
|
|
40
|
-
"jsonwebtoken": "
|
|
41
|
-
"jwks-rsa": "
|
|
42
|
-
"ldapjs": "
|
|
43
|
+
"jsonwebtoken": "9.0.2",
|
|
44
|
+
"jwks-rsa": "3.1.0",
|
|
45
|
+
"ldapjs": "3.0.7",
|
|
43
46
|
"lodash": "4.17.21",
|
|
44
|
-
"lru-cache": "
|
|
45
|
-
"mime": "
|
|
46
|
-
"mongodb": "
|
|
47
|
+
"lru-cache": "10.4.0",
|
|
48
|
+
"mime": "4.0.6",
|
|
49
|
+
"mongodb": "6.13.0",
|
|
47
50
|
"mustache": "4.2.0",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
+
"otpauth": "9.3.5",
|
|
52
|
+
"parse": "5.3.0",
|
|
53
|
+
"path-to-regexp": "6.3.0",
|
|
54
|
+
"pg-monitor": "2.1.0",
|
|
55
|
+
"pg-promise": "11.10.2",
|
|
51
56
|
"pluralize": "8.0.0",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
57
|
+
"punycode": "2.3.1",
|
|
58
|
+
"rate-limit-redis": "4.2.0",
|
|
59
|
+
"redis": "4.7.0",
|
|
60
|
+
"semver": "7.7.1",
|
|
54
61
|
"subscriptions-transport-ws": "0.11.0",
|
|
55
62
|
"tv4": "1.3.0",
|
|
56
|
-
"uuid": "
|
|
57
|
-
"winston": "3.
|
|
58
|
-
"winston-daily-rotate-file": "
|
|
59
|
-
"ws": "8.
|
|
63
|
+
"uuid": "11.0.3",
|
|
64
|
+
"winston": "3.17.0",
|
|
65
|
+
"winston-daily-rotate-file": "5.0.0",
|
|
66
|
+
"ws": "8.18.0"
|
|
60
67
|
},
|
|
61
68
|
"devDependencies": {
|
|
62
|
-
"
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@babel/
|
|
66
|
-
"@babel/
|
|
67
|
-
"@babel/plugin-
|
|
68
|
-
"@babel/
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@semantic-release/
|
|
73
|
-
"@semantic-release/
|
|
74
|
-
"@semantic-release/
|
|
75
|
-
"@semantic-release/
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"apollo-utilities": "1.3.4",
|
|
81
|
-
"babel-eslint": "10.1.0",
|
|
82
|
-
"bcrypt-nodejs": "0.0.3",
|
|
83
|
-
"cross-env": "7.0.2",
|
|
69
|
+
"@actions/core": "1.11.1",
|
|
70
|
+
"@apollo/client": "3.12.3",
|
|
71
|
+
"@babel/cli": "7.26.4",
|
|
72
|
+
"@babel/core": "7.26.0",
|
|
73
|
+
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
|
|
74
|
+
"@babel/plugin-transform-flow-strip-types": "7.25.9",
|
|
75
|
+
"@babel/preset-env": "7.26.0",
|
|
76
|
+
"@saithodev/semantic-release-backmerge": "4.0.1",
|
|
77
|
+
"@semantic-release/changelog": "6.0.3",
|
|
78
|
+
"@semantic-release/commit-analyzer": "13.0.0",
|
|
79
|
+
"@semantic-release/git": "10.0.1",
|
|
80
|
+
"@semantic-release/github": "11.0.1",
|
|
81
|
+
"@semantic-release/npm": "12.0.1",
|
|
82
|
+
"@semantic-release/release-notes-generator": "14.0.1",
|
|
83
|
+
"all-node-versions": "12.1.0",
|
|
84
|
+
"apollo-upload-client": "18.0.1",
|
|
85
|
+
"clean-jsdoc-theme": "4.3.0",
|
|
86
|
+
"cross-env": "7.0.3",
|
|
84
87
|
"deep-diff": "1.0.2",
|
|
85
|
-
"eslint": "
|
|
86
|
-
"eslint-plugin-flowtype": "
|
|
88
|
+
"eslint": "8.57.0",
|
|
89
|
+
"eslint-plugin-flowtype": "8.0.3",
|
|
87
90
|
"flow-bin": "0.119.1",
|
|
88
|
-
"form-data": "
|
|
89
|
-
"
|
|
91
|
+
"form-data": "4.0.1",
|
|
92
|
+
"graphql-tag": "2.12.6",
|
|
93
|
+
"husky": "9.1.7",
|
|
90
94
|
"jasmine": "3.5.0",
|
|
91
95
|
"jasmine-spec-reporter": "7.0.0",
|
|
92
|
-
"jsdoc": "
|
|
96
|
+
"jsdoc": "4.0.4",
|
|
93
97
|
"jsdoc-babel": "0.5.0",
|
|
94
|
-
"lint-staged": "
|
|
95
|
-
"
|
|
98
|
+
"lint-staged": "15.2.11",
|
|
99
|
+
"m": "1.9.0",
|
|
100
|
+
"madge": "8.0.0",
|
|
96
101
|
"mock-files-adapter": "file:spec/dependencies/mock-files-adapter",
|
|
97
102
|
"mock-mail-adapter": "file:spec/dependencies/mock-mail-adapter",
|
|
98
|
-
"mongodb-runner": "
|
|
99
|
-
"
|
|
103
|
+
"mongodb-runner": "5.7.1",
|
|
104
|
+
"node-abort-controller": "3.1.1",
|
|
100
105
|
"node-fetch": "3.2.10",
|
|
101
|
-
"nyc": "
|
|
106
|
+
"nyc": "17.1.0",
|
|
102
107
|
"prettier": "2.0.5",
|
|
103
|
-
"semantic-release": "
|
|
104
|
-
"yaml": "
|
|
108
|
+
"semantic-release": "24.2.0",
|
|
109
|
+
"yaml": "2.6.1"
|
|
105
110
|
},
|
|
106
111
|
"scripts": {
|
|
107
112
|
"ci:check": "node ./ci/ciCheck.js",
|
|
108
113
|
"ci:checkNodeEngine": "node ./ci/nodeEngineCheck.js",
|
|
114
|
+
"ci:definitionsCheck": "node ./ci/definitionsCheck.js",
|
|
109
115
|
"definitions": "node ./resources/buildConfigDefinitions.js && prettier --write 'src/Options/*.js'",
|
|
110
116
|
"docs": "jsdoc -c ./jsdoc-conf.json",
|
|
111
117
|
"lint": "flow && eslint --cache ./",
|
|
112
118
|
"lint-fix": "eslint --fix --cache ./",
|
|
113
119
|
"build": "babel src/ -d lib/ --copy-files",
|
|
114
120
|
"watch": "babel --watch src/ -d lib/ --copy-files",
|
|
115
|
-
"test:mongodb:runnerstart": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=$npm_config_dbversion} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone}
|
|
116
|
-
"test:mongodb:testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=$npm_config_dbversion} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone}
|
|
121
|
+
"test:mongodb:runnerstart": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=$npm_config_dbversion} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} mongodb-runner start -t ${MONGODB_TOPOLOGY} --version ${MONGODB_VERSION} -- --port 27017",
|
|
122
|
+
"test:mongodb:testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=$npm_config_dbversion} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 jasmine",
|
|
117
123
|
"test:mongodb": "npm run test:mongodb:runnerstart --dbversion=$npm_config_dbversion && npm run test:mongodb:testonly --dbversion=$npm_config_dbversion",
|
|
118
|
-
"test:mongodb:4.0.28": "npm run test:mongodb --dbversion=4.0.28",
|
|
119
124
|
"test:mongodb:4.2.19": "npm run test:mongodb --dbversion=4.2.19",
|
|
120
125
|
"test:mongodb:4.4.13": "npm run test:mongodb --dbversion=4.4.13",
|
|
121
126
|
"test:mongodb:5.3.2": "npm run test:mongodb --dbversion=5.3.2",
|
|
122
127
|
"test:mongodb:6.0.2": "npm run test:mongodb --dbversion=6.0.2",
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"testonly": "cross-env
|
|
128
|
+
"test:mongodb:7.0.1": "npm run test:mongodb --dbversion=7.0.1",
|
|
129
|
+
"test:mongodb:8.0.3": "npm run test:mongodb --dbversion=8.0.3",
|
|
130
|
+
"test:postgres:testonly": "cross-env PARSE_SERVER_TEST_DB=postgres PARSE_SERVER_TEST_DATABASE_URI=postgres://postgres:password@localhost:5432/parse_server_postgres_adapter_test_database npm run testonly",
|
|
131
|
+
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} mongodb-runner start -t ${MONGODB_TOPOLOGY} --version ${MONGODB_VERSION} -- --port 27017",
|
|
132
|
+
"testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 jasmine",
|
|
126
133
|
"test": "npm run testonly",
|
|
127
|
-
"posttest": "cross-env
|
|
128
|
-
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone}
|
|
134
|
+
"posttest": "cross-env mongodb-runner stop --all",
|
|
135
|
+
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.3.2} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} TESTING=1 nyc jasmine",
|
|
129
136
|
"start": "node ./bin/parse-server",
|
|
130
137
|
"prettier": "prettier --write {src,spec}/{**/*,*}.js",
|
|
131
138
|
"prepare": "npm run build",
|
|
@@ -133,13 +140,13 @@
|
|
|
133
140
|
"madge:circular": "node_modules/.bin/madge ./src --circular"
|
|
134
141
|
},
|
|
135
142
|
"engines": {
|
|
136
|
-
"node": ">=
|
|
143
|
+
"node": ">=18.0.0 <19.0.0 || >=19.0.0 <20.0.0 || >=20.0.0 <21.0.0 || >=22.0.0 <23.0.0"
|
|
137
144
|
},
|
|
138
145
|
"bin": {
|
|
139
146
|
"parse-server": "bin/parse-server"
|
|
140
147
|
},
|
|
141
148
|
"optionalDependencies": {
|
|
142
|
-
"@node-rs/bcrypt": "1.
|
|
149
|
+
"@node-rs/bcrypt": "1.10.7"
|
|
143
150
|
},
|
|
144
151
|
"collective": {
|
|
145
152
|
"type": "opencollective",
|
|
@@ -162,4 +169,4 @@
|
|
|
162
169
|
"git add"
|
|
163
170
|
]
|
|
164
171
|
}
|
|
165
|
-
}
|
|
172
|
+
}
|
package/postinstall.js
CHANGED
|
@@ -1,50 +1,38 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
process.exit(0);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const errorMessage = `
|
|
43
|
-
β οΈ parse-server requires at least node@${minimum}!
|
|
44
|
-
You have node@${version}
|
|
45
|
-
|
|
46
|
-
`;
|
|
47
|
-
|
|
48
|
-
process.stdout.write(errorMessage);
|
|
49
|
-
process.exit(1);
|
|
50
|
-
};
|
|
1
|
+
const message = `
|
|
2
|
+
1111111111
|
|
3
|
+
1111111111111111
|
|
4
|
+
1111111111111111111111
|
|
5
|
+
11111111111111111111111111
|
|
6
|
+
111111111111111 11111111
|
|
7
|
+
1111111111111 111 111111
|
|
8
|
+
1111111111111 111111111 111111
|
|
9
|
+
111111111111 11111111111 111111
|
|
10
|
+
1111111111111 11111111111 111111
|
|
11
|
+
1111111111111 1111111111 111111
|
|
12
|
+
1111111111111111111111111 1111111
|
|
13
|
+
11111111 11111111
|
|
14
|
+
111111 111 1111111111111111111
|
|
15
|
+
11111 11111 111111111111111111
|
|
16
|
+
11111 1 11111111111111111
|
|
17
|
+
111111 111111111111111111
|
|
18
|
+
11111111111111111111111111
|
|
19
|
+
1111111111111111111111
|
|
20
|
+
111111111111111111
|
|
21
|
+
11111111111
|
|
22
|
+
|
|
23
|
+
Thank you for using Parse Platform!
|
|
24
|
+
https://parseplatform.org
|
|
25
|
+
|
|
26
|
+
Please consider donating to help us maintain
|
|
27
|
+
this package:
|
|
28
|
+
|
|
29
|
+
π https://opencollective.com/parse-server π
|
|
30
|
+
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
function main() {
|
|
34
|
+
process.stdout.write(message);
|
|
35
|
+
process.exit(0);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
module.exports = main;
|
package/PATENTS
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
Additional Grant of Patent Rights Version 2
|
|
2
|
-
|
|
3
|
-
"Software" means the Parse Server software distributed by Parse, LLC.
|
|
4
|
-
|
|
5
|
-
Parse, LLC. ("Parse") hereby grants to each recipient of the Software
|
|
6
|
-
("you") a perpetual, worldwide, royalty-free, non-exclusive, irrevocable
|
|
7
|
-
(subject to the termination provision below) license under any Necessary
|
|
8
|
-
Claims, to make, have made, use, sell, offer to sell, import, and otherwise
|
|
9
|
-
transfer the Software. For avoidance of doubt, no license is granted under
|
|
10
|
-
Parseβs rights in any patent claims that are infringed by (i) modifications
|
|
11
|
-
to the Software made by you or any third party or (ii) the Software in
|
|
12
|
-
combination with any software or other technology.
|
|
13
|
-
|
|
14
|
-
The license granted hereunder will terminate, automatically and without notice,
|
|
15
|
-
if you (or any of your subsidiaries, corporate affiliates or agents) initiate
|
|
16
|
-
directly or indirectly, or take a direct financial interest in, any Patent
|
|
17
|
-
Assertion: (i) against Parse or any of its subsidiaries or corporate
|
|
18
|
-
affiliates, (ii) against any party if such Patent Assertion arises in whole or
|
|
19
|
-
in part from any software, technology, product or service of Parse or any of
|
|
20
|
-
its subsidiaries or corporate affiliates, or (iii) against any party relating
|
|
21
|
-
to the Software. Notwithstanding the foregoing, if Parse or any of its
|
|
22
|
-
subsidiaries or corporate affiliates files a lawsuit alleging patent
|
|
23
|
-
infringement against you in the first instance, and you respond by filing a
|
|
24
|
-
patent infringement counterclaim in that lawsuit against that party that is
|
|
25
|
-
unrelated to the Software, the license granted hereunder will not terminate
|
|
26
|
-
under section (i) of this paragraph due to such counterclaim.
|
|
27
|
-
|
|
28
|
-
A "Necessary Claim" is a claim of a patent owned by Parse that is
|
|
29
|
-
necessarily infringed by the Software standing alone.
|
|
30
|
-
|
|
31
|
-
A "Patent Assertion" is any lawsuit or other action alleging direct, indirect,
|
|
32
|
-
or contributory infringement or inducement to infringe any patent, including a
|
|
33
|
-
cross-claim or counterclaim.
|
|
34
|
-
|
|
35
|
-
-----
|
|
36
|
-
|
|
37
|
-
As of April 5, 2017, Parse, LLC has transferred this code to the parse-community organization, and will no longer be contributing to or distributing this code.
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @typedef Parse.Cloud.HTTPResponse
|
|
10
|
-
* @property {Buffer} buffer The raw byte representation of the response body. Use this to receive binary data. See Buffer for more details.
|
|
11
|
-
* @property {Object} cookies The cookies sent by the server. The keys in this object are the names of the cookies. The values are Parse.Cloud.Cookie objects.
|
|
12
|
-
* @property {Object} data The parsed response body as a JavaScript object. This is only available when the response Content-Type is application/x-www-form-urlencoded or application/json.
|
|
13
|
-
* @property {Object} headers The headers sent by the server. The keys in this object are the names of the headers. We do not support multiple response headers with the same name. In the common case of Set-Cookie headers, please use the cookies field instead.
|
|
14
|
-
* @property {Number} status The status code.
|
|
15
|
-
* @property {String} text The raw text representation of the response body.
|
|
16
|
-
*/
|
|
17
|
-
class HTTPResponse {
|
|
18
|
-
constructor(response, body) {
|
|
19
|
-
let _text, _data;
|
|
20
|
-
|
|
21
|
-
this.status = response.statusCode;
|
|
22
|
-
this.headers = response.headers || {};
|
|
23
|
-
this.cookies = this.headers['set-cookie'];
|
|
24
|
-
|
|
25
|
-
if (typeof body == 'string') {
|
|
26
|
-
_text = body;
|
|
27
|
-
} else if (Buffer.isBuffer(body)) {
|
|
28
|
-
this.buffer = body;
|
|
29
|
-
} else if (typeof body == 'object') {
|
|
30
|
-
_data = body;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const getText = () => {
|
|
34
|
-
if (!_text && this.buffer) {
|
|
35
|
-
_text = this.buffer.toString('utf-8');
|
|
36
|
-
} else if (!_text && _data) {
|
|
37
|
-
_text = JSON.stringify(_data);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return _text;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const getData = () => {
|
|
44
|
-
if (!_data) {
|
|
45
|
-
try {
|
|
46
|
-
_data = JSON.parse(getText());
|
|
47
|
-
} catch (e) {
|
|
48
|
-
/* */
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return _data;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
Object.defineProperty(this, 'body', {
|
|
56
|
-
get: () => {
|
|
57
|
-
return body;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(this, 'text', {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: getText
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(this, 'data', {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get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