@capgo/capacitor-passkey 8.2.1 → 8.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-passkey",
3
- "version": "8.2.1",
3
+ "version": "8.2.2",
4
4
  "description": "Capacitor passkey plugin with a WebAuthn-style shim for Capacitor apps.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -222,7 +222,7 @@ function upsertAssociatedDomains(content, webCredentialEntries) {
222
222
  const preserved = parsed.items.filter((item) => !item.startsWith('webcredentials:'));
223
223
  const merged = [...preserved, ...webCredentialSet];
224
224
  const nextBlock = buildAssociatedDomainsBlock(parsed.indent, merged);
225
- return content.replace(parsed.fullMatch, nextBlock);
225
+ return content.replace(parsed.fullMatch, nextBlock.replace(/\n$/, ''));
226
226
  }
227
227
 
228
228
  if (webCredentialEntries.length === 0) {