@djangocfg/api 2.1.626 → 2.1.628
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/auth.cjs +6 -3
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +8 -1
- package/dist/auth.d.ts +8 -1
- package/dist/auth.mjs +6 -3
- package/dist/auth.mjs.map +1 -1
- package/dist/index.cjs +0 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +0 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/auth/__tests__/trace.test.ts +13 -1
- package/src/auth/index.ts +2 -0
- package/src/auth/trace.ts +5 -2
package/dist/index.cjs
CHANGED
|
@@ -235,20 +235,6 @@ function installAuthTrace() {
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
__name(installAuthTrace, "installAuthTrace");
|
|
238
|
-
function registerCopy() {
|
|
239
|
-
if (!hasWindow) return;
|
|
240
|
-
const g = globalThis;
|
|
241
|
-
const n = (g.__cfgAuthCopies ?? 0) + 1;
|
|
242
|
-
g.__cfgAuthCopies = n;
|
|
243
|
-
if (n > 1) {
|
|
244
|
-
authTrace("dup.copy", { copies: n });
|
|
245
|
-
if (n === 2) {
|
|
246
|
-
console.warn("[@djangocfg/api] more than one copy of the auth package is loaded; see __cfgAuth.dump() (dup.copy). Align the peer set so pnpm installs one instance.");
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
__name(registerCopy, "registerCopy");
|
|
251
|
-
registerCopy();
|
|
252
238
|
installAuthTrace();
|
|
253
239
|
|
|
254
240
|
// src/_api/generated/helpers/errors.ts
|