@clerk/shared 3.43.0 → 3.43.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/dist/runtime/color-DiCPF8Es.d.ts.map +1 -1
- package/dist/runtime/error-Bly3ZcHK.d.ts.map +1 -1
- package/dist/runtime/globs.d.ts.map +1 -1
- package/dist/runtime/index-CN_h8ApK.d.ts.map +1 -1
- package/dist/runtime/index-DcfXAwQx.d.ts.map +1 -1
- package/dist/runtime/index-Dd9r-3AL.d.mts.map +1 -1
- package/dist/runtime/index-Dly2Ra0L.d.mts.map +1 -1
- package/dist/runtime/index.js +3 -3
- package/dist/runtime/index.mjs +3 -3
- package/dist/runtime/{loadClerkJsScript-3NnU4CRR.js → loadClerkJsScript-BhkV1kxI.js} +2 -2
- package/dist/runtime/{loadClerkJsScript-3NnU4CRR.js.map → loadClerkJsScript-BhkV1kxI.js.map} +1 -1
- package/dist/runtime/{loadClerkJsScript-B-3zV0fK.mjs → loadClerkJsScript-MlWZVyqy.mjs} +2 -2
- package/dist/runtime/{loadClerkJsScript-B-3zV0fK.mjs.map → loadClerkJsScript-MlWZVyqy.mjs.map} +1 -1
- package/dist/runtime/loadClerkJsScript.js +2 -2
- package/dist/runtime/loadClerkJsScript.mjs +2 -2
- package/dist/runtime/react/index.d.mts +1 -1
- package/dist/runtime/react/index.d.ts +1 -1
- package/dist/runtime/url-Ty-8oURg.d.mts.map +1 -1
- package/dist/runtime/utils/index.js +1 -1
- package/dist/runtime/utils/index.mjs +1 -1
- package/dist/runtime/{utils-BjdCqECo.mjs → utils-BfsP_p13.mjs} +20 -9
- package/dist/runtime/utils-BfsP_p13.mjs.map +1 -0
- package/dist/runtime/{utils-4vju2Zr4.js → utils-DJKYBvVp.js} +20 -9
- package/dist/runtime/utils-DJKYBvVp.js.map +1 -0
- package/dist/runtime/{versionSelector-BVy9SBJB.mjs → versionSelector-DiJvNaCK.mjs} +3 -3
- package/dist/runtime/{versionSelector-BVy9SBJB.mjs.map → versionSelector-DiJvNaCK.mjs.map} +1 -1
- package/dist/runtime/{versionSelector-rEqzwfXA.js → versionSelector-DrRNo_w8.js} +3 -3
- package/dist/runtime/{versionSelector-rEqzwfXA.js.map → versionSelector-DrRNo_w8.js.map} +1 -1
- package/dist/runtime/versionSelector.js +1 -1
- package/dist/runtime/versionSelector.mjs +1 -1
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/runtime/utils-4vju2Zr4.js.map +0 -1
- package/dist/runtime/utils-BjdCqECo.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-4vju2Zr4.js","names":["isDevelopmentEnvironment"],"sources":["../../src/utils/allSettled.ts","../../src/utils/logErrorInDevMode.ts","../../src/utils/fastDeepMerge.ts"],"sourcesContent":["/**\n * A ES6 compatible utility that implements `Promise.allSettled`\n * @internal\n */\nexport function allSettled<T>(\n iterable: Iterable<Promise<T>>,\n): Promise<({ status: 'fulfilled'; value: T } | { status: 'rejected'; reason: any })[]> {\n const promises = Array.from(iterable).map(p =>\n p.then(\n value => ({ status: 'fulfilled', value }) as const,\n reason => ({ status: 'rejected', reason }) as const,\n ),\n );\n return Promise.all(promises);\n}\n","import { isDevelopmentEnvironment } from './runtimeEnvironment';\n\nexport const logErrorInDevMode = (message: string) => {\n if (isDevelopmentEnvironment()) {\n console.error(`Clerk: ${message}`);\n }\n};\n","/**\n * Merges 2 objects without creating new object references\n * The merged props will appear on the `target` object\n * If `target` already has a value for a given key it will not be overwritten\n */\nexport const fastDeepMergeAndReplace = (\n source: Record<any, any> | undefined | null,\n target: Record<any, any> | undefined | null,\n) => {\n if (!source || !target) {\n return;\n }\n\n for (const key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key) && source[key] !== null && typeof source[key] === `object`) {\n if (target[key] === undefined) {\n target[key] = new (Object.getPrototypeOf(source[key]).constructor)();\n }\n fastDeepMergeAndReplace(source[key], target[key]);\n } else if (Object.prototype.hasOwnProperty.call(source, key) && source[key] !== undefined) {\n target[key] = source[key];\n }\n }\n};\n\nexport const fastDeepMergeAndKeep = (\n source: Record<any, any> | undefined | null,\n target: Record<any, any> | undefined | null,\n) => {\n if (!source || !target) {\n return;\n }\n\n for (const key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key) && source[key] !== null && typeof source[key] === `object`) {\n if (target[key] === undefined) {\n target[key] = new (Object.getPrototypeOf(source[key]).constructor)();\n }\n fastDeepMergeAndKeep(source[key], target[key]);\n } else if (Object.prototype.hasOwnProperty.call(source, key) && target[key] === undefined) {\n target[key] = source[key];\n }\n }\n};\n"],"mappings":";;;;;;;AAIA,SAAgB,WACd,UACsF;CACtF,MAAM,WAAW,MAAM,KAAK,SAAS,CAAC,KAAI,MACxC,EAAE,MACA,WAAU;EAAE,QAAQ;EAAa;EAAO,IACxC,YAAW;EAAE,QAAQ;EAAY;EAAQ,EAC1C,CACF;AACD,QAAO,QAAQ,IAAI,SAAS;;;;;ACX9B,MAAa,qBAAqB,YAAoB;AACpD,KAAIA,qDAA0B,CAC5B,SAAQ,MAAM,UAAU,UAAU;;;;;;;;;;ACCtC,MAAa,2BACX,QACA,WACG;AACH,KAAI,CAAC,UAAU,CAAC,OACd;AAGF,MAAK,MAAM,OAAO,OAChB,KAAI,OAAO,UAAU,eAAe,KAAK,QAAQ,IAAI,IAAI,OAAO,SAAS,QAAQ,OAAO,OAAO,SAAS,UAAU;AAChH,MAAI,OAAO,SAAS,OAClB,QAAO,OAAO,KAAK,OAAO,eAAe,OAAO,KAAK,EAAC,aAAc;AAEtE,0BAAwB,OAAO,MAAM,OAAO,KAAK;YACxC,OAAO,UAAU,eAAe,KAAK,QAAQ,IAAI,IAAI,OAAO,SAAS,OAC9E,QAAO,OAAO,OAAO;;AAK3B,MAAa,wBACX,QACA,WACG;AACH,KAAI,CAAC,UAAU,CAAC,OACd;AAGF,MAAK,MAAM,OAAO,OAChB,KAAI,OAAO,UAAU,eAAe,KAAK,QAAQ,IAAI,IAAI,OAAO,SAAS,QAAQ,OAAO,OAAO,SAAS,UAAU;AAChH,MAAI,OAAO,SAAS,OAClB,QAAO,OAAO,KAAK,OAAO,eAAe,OAAO,KAAK,EAAC,aAAc;AAEtE,uBAAqB,OAAO,MAAM,OAAO,KAAK;YACrC,OAAO,UAAU,eAAe,KAAK,QAAQ,IAAI,IAAI,OAAO,SAAS,OAC9E,QAAO,OAAO,OAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-BjdCqECo.mjs","names":[],"sources":["../../src/utils/allSettled.ts","../../src/utils/logErrorInDevMode.ts","../../src/utils/fastDeepMerge.ts"],"sourcesContent":["/**\n * A ES6 compatible utility that implements `Promise.allSettled`\n * @internal\n */\nexport function allSettled<T>(\n iterable: Iterable<Promise<T>>,\n): Promise<({ status: 'fulfilled'; value: T } | { status: 'rejected'; reason: any })[]> {\n const promises = Array.from(iterable).map(p =>\n p.then(\n value => ({ status: 'fulfilled', value }) as const,\n reason => ({ status: 'rejected', reason }) as const,\n ),\n );\n return Promise.all(promises);\n}\n","import { isDevelopmentEnvironment } from './runtimeEnvironment';\n\nexport const logErrorInDevMode = (message: string) => {\n if (isDevelopmentEnvironment()) {\n console.error(`Clerk: ${message}`);\n }\n};\n","/**\n * Merges 2 objects without creating new object references\n * The merged props will appear on the `target` object\n * If `target` already has a value for a given key it will not be overwritten\n */\nexport const fastDeepMergeAndReplace = (\n source: Record<any, any> | undefined | null,\n target: Record<any, any> | undefined | null,\n) => {\n if (!source || !target) {\n return;\n }\n\n for (const key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key) && source[key] !== null && typeof source[key] === `object`) {\n if (target[key] === undefined) {\n target[key] = new (Object.getPrototypeOf(source[key]).constructor)();\n }\n fastDeepMergeAndReplace(source[key], target[key]);\n } else if (Object.prototype.hasOwnProperty.call(source, key) && source[key] !== undefined) {\n target[key] = source[key];\n }\n }\n};\n\nexport const fastDeepMergeAndKeep = (\n source: Record<any, any> | undefined | null,\n target: Record<any, any> | undefined | null,\n) => {\n if (!source || !target) {\n return;\n }\n\n for (const key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key) && source[key] !== null && typeof source[key] === `object`) {\n if (target[key] === undefined) {\n target[key] = new (Object.getPrototypeOf(source[key]).constructor)();\n }\n fastDeepMergeAndKeep(source[key], target[key]);\n } else if (Object.prototype.hasOwnProperty.call(source, key) && target[key] === undefined) {\n target[key] = source[key];\n }\n }\n};\n"],"mappings":";;;;;;;AAIA,SAAgB,WACd,UACsF;CACtF,MAAM,WAAW,MAAM,KAAK,SAAS,CAAC,KAAI,MACxC,EAAE,MACA,WAAU;EAAE,QAAQ;EAAa;EAAO,IACxC,YAAW;EAAE,QAAQ;EAAY;EAAQ,EAC1C,CACF;AACD,QAAO,QAAQ,IAAI,SAAS;;;;;ACX9B,MAAa,qBAAqB,YAAoB;AACpD,KAAI,0BAA0B,CAC5B,SAAQ,MAAM,UAAU,UAAU;;;;;;;;;;ACCtC,MAAa,2BACX,QACA,WACG;AACH,KAAI,CAAC,UAAU,CAAC,OACd;AAGF,MAAK,MAAM,OAAO,OAChB,KAAI,OAAO,UAAU,eAAe,KAAK,QAAQ,IAAI,IAAI,OAAO,SAAS,QAAQ,OAAO,OAAO,SAAS,UAAU;AAChH,MAAI,OAAO,SAAS,OAClB,QAAO,OAAO,KAAK,OAAO,eAAe,OAAO,KAAK,EAAC,aAAc;AAEtE,0BAAwB,OAAO,MAAM,OAAO,KAAK;YACxC,OAAO,UAAU,eAAe,KAAK,QAAQ,IAAI,IAAI,OAAO,SAAS,OAC9E,QAAO,OAAO,OAAO;;AAK3B,MAAa,wBACX,QACA,WACG;AACH,KAAI,CAAC,UAAU,CAAC,OACd;AAGF,MAAK,MAAM,OAAO,OAChB,KAAI,OAAO,UAAU,eAAe,KAAK,QAAQ,IAAI,IAAI,OAAO,SAAS,QAAQ,OAAO,OAAO,SAAS,UAAU;AAChH,MAAI,OAAO,SAAS,OAClB,QAAO,OAAO,KAAK,OAAO,eAAe,OAAO,KAAK,EAAC,aAAc;AAEtE,uBAAqB,OAAO,MAAM,OAAO,KAAK;YACrC,OAAO,UAAU,eAAe,KAAK,QAAQ,IAAI,IAAI,OAAO,SAAS,OAC9E,QAAO,OAAO,OAAO"}
|