@djangocfg/api 2.1.625 → 2.1.627
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.mjs
CHANGED
|
@@ -172,20 +172,6 @@ function installAuthTrace() {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
__name(installAuthTrace, "installAuthTrace");
|
|
175
|
-
function registerCopy() {
|
|
176
|
-
if (!hasWindow) return;
|
|
177
|
-
const g = globalThis;
|
|
178
|
-
const n = (g.__cfgAuthCopies ?? 0) + 1;
|
|
179
|
-
g.__cfgAuthCopies = n;
|
|
180
|
-
if (n > 1) {
|
|
181
|
-
authTrace("dup.copy", { copies: n });
|
|
182
|
-
if (n === 2) {
|
|
183
|
-
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.");
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
__name(registerCopy, "registerCopy");
|
|
188
|
-
registerCopy();
|
|
189
175
|
installAuthTrace();
|
|
190
176
|
|
|
191
177
|
// src/_api/generated/helpers/errors.ts
|