@clerk/backend 3.5.0-snapshot.v20260602000601 → 3.5.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/dist/api/endpoints/AccountlessApplicationsAPI.d.ts +7 -6
- package/dist/api/endpoints/AccountlessApplicationsAPI.d.ts.map +1 -1
- package/dist/{chunk-PNQRXNB4.mjs → chunk-H3NCOZAT.mjs} +29 -4
- package/dist/chunk-H3NCOZAT.mjs.map +1 -0
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internal.js +28 -3
- package/dist/internal.js.map +1 -1
- package/dist/internal.mjs +1 -1
- package/dist/util/shared.d.ts +1 -1
- package/dist/util/shared.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-PNQRXNB4.mjs.map +0 -1
package/dist/index.mjs
CHANGED
package/dist/internal.js
CHANGED
|
@@ -320,7 +320,7 @@ module.exports = __toCommonJS(internal_exports);
|
|
|
320
320
|
// src/constants.ts
|
|
321
321
|
var API_URL = "https://api.clerk.com";
|
|
322
322
|
var API_VERSION = "v1";
|
|
323
|
-
var USER_AGENT = `${"@clerk/backend"}@${"3.5.0
|
|
323
|
+
var USER_AGENT = `${"@clerk/backend"}@${"3.5.0"}`;
|
|
324
324
|
var MAX_CACHE_LAST_UPDATED_AT_SECONDS = 5 * 60;
|
|
325
325
|
var SUPPORTED_BAPI_VERSION = "2025-11-10";
|
|
326
326
|
var Attributes = {
|
|
@@ -1325,7 +1325,10 @@ var AccountlessApplicationAPI = class extends AbstractAPI {
|
|
|
1325
1325
|
return this.request({
|
|
1326
1326
|
method: "POST",
|
|
1327
1327
|
path: basePath3,
|
|
1328
|
-
headerParams
|
|
1328
|
+
headerParams,
|
|
1329
|
+
queryParams: {
|
|
1330
|
+
source: params?.source
|
|
1331
|
+
}
|
|
1329
1332
|
});
|
|
1330
1333
|
}
|
|
1331
1334
|
async completeAccountlessApplicationOnboarding(params) {
|
|
@@ -1333,7 +1336,10 @@ var AccountlessApplicationAPI = class extends AbstractAPI {
|
|
|
1333
1336
|
return this.request({
|
|
1334
1337
|
method: "POST",
|
|
1335
1338
|
path: joinPaths(basePath3, "complete"),
|
|
1336
|
-
headerParams
|
|
1339
|
+
headerParams,
|
|
1340
|
+
queryParams: {
|
|
1341
|
+
source: params?.source
|
|
1342
|
+
}
|
|
1337
1343
|
});
|
|
1338
1344
|
}
|
|
1339
1345
|
};
|
|
@@ -6997,9 +7003,28 @@ function prunePrivateMetadata(resource) {
|
|
|
6997
7003
|
if ("private_metadata" in resource) {
|
|
6998
7004
|
delete resource["private_metadata"];
|
|
6999
7005
|
}
|
|
7006
|
+
if ("_raw" in resource && resource["_raw"]) {
|
|
7007
|
+
resource["_raw"] = redactPrivateMetadataDeep(resource["_raw"]);
|
|
7008
|
+
}
|
|
7000
7009
|
}
|
|
7001
7010
|
return resource;
|
|
7002
7011
|
}
|
|
7012
|
+
function redactPrivateMetadataDeep(value) {
|
|
7013
|
+
if (Array.isArray(value)) {
|
|
7014
|
+
return value.map(redactPrivateMetadataDeep);
|
|
7015
|
+
}
|
|
7016
|
+
if (value && typeof value === "object") {
|
|
7017
|
+
const clone = {};
|
|
7018
|
+
for (const key of Object.keys(value)) {
|
|
7019
|
+
if (key === "private_metadata" || key === "privateMetadata") {
|
|
7020
|
+
continue;
|
|
7021
|
+
}
|
|
7022
|
+
clone[key] = redactPrivateMetadataDeep(value[key]);
|
|
7023
|
+
}
|
|
7024
|
+
return clone;
|
|
7025
|
+
}
|
|
7026
|
+
return value;
|
|
7027
|
+
}
|
|
7003
7028
|
|
|
7004
7029
|
// src/internal.ts
|
|
7005
7030
|
var import_authorization_errors = require("@clerk/shared/authorization-errors");
|