MCPcopy Index your code
hub / github.com/parse-community/parse-server / compatible

Function compatible

src/ClientSDK.js:3–16  ·  view source on GitHub ↗
(compatibleSDK)

Source from the content-addressed store, hash-verified

1var semver = require('semver');
2
3function compatible(compatibleSDK) {
4 return function (clientSDK) {
5 if (typeof clientSDK === 'string') {
6 clientSDK = fromString(clientSDK);
7 }
8 // REST API, or custom SDK
9 if (!clientSDK) {
10 return true;
11 }
12 const clientVersion = clientSDK.version;
13 const compatiblityVersion = compatibleSDK[clientSDK.sdk];
14 return semver.satisfies(clientVersion, compatiblityVersion);
15 };
16}
17
18function supportsForwardDelete(clientSDK) {
19 return compatible({

Callers 1

supportsForwardDeleteFunction · 0.85

Calls 1

fromStringFunction · 0.85

Tested by

no test coverage detected