@oxy.so/core 7.13.0 → 7.13.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.
@@ -1951,7 +1951,6 @@ const dict = {
1951
1951
  transfer: 'Transfer ownership',
1952
1952
  },
1953
1953
  errors: {
1954
- emailRequired: 'Enter an email to invite.',
1955
1954
  emailInvalid: 'Enter a valid email address, like name@example.com.',
1956
1955
  missingAccount: 'No account selected.',
1957
1956
  noPermission: 'You do not have permission to view members.',
@@ -2407,7 +2406,6 @@ const dict = {
2407
2406
  newLabel: 'New password',
2408
2407
  repeatLabel: 'Repeat the password',
2409
2408
  tooShort: 'Use at least {{min}} characters.',
2410
- tooLong: 'Use at most {{max}} characters.',
2411
2409
  mismatch: "The passwords don't match.",
2412
2410
  signOutOthers: 'Sign out everywhere else',
2413
2411
  save: 'Save password',
@@ -1961,7 +1961,6 @@ const dict = {
1961
1961
  transfer: 'Transferir propiedad',
1962
1962
  },
1963
1963
  errors: {
1964
- emailRequired: 'Introduce un email para invitar.',
1965
1964
  emailInvalid: 'Introduce un email válido, como nombre@ejemplo.com.',
1966
1965
  missingAccount: 'Ninguna cuenta seleccionada.',
1967
1966
  noPermission: 'No tienes permiso para ver los miembros.',
@@ -2420,7 +2419,6 @@ const dict = {
2420
2419
  newLabel: 'Contraseña nueva',
2421
2420
  repeatLabel: 'Repite la contraseña',
2422
2421
  tooShort: 'Usa al menos {{min}} caracteres.',
2423
- tooLong: 'Usa como máximo {{max}} caracteres.',
2424
2422
  mismatch: 'Las contraseñas no coinciden.',
2425
2423
  signOutOthers: 'Cerrar sesión en todos los demás sitios',
2426
2424
  save: 'Guardar contraseña',
@@ -74,12 +74,20 @@ export const OXY_IDENTITY_CACHE_PREFIXES: readonly string[] = [
74
74
  'GET:/profiles/resolve',
75
75
  ];
76
76
 
77
+ /**
78
+ * The path `getUserById` reads, its id encoded. Built in one place so the
79
+ * request and every key that evicts it cannot spell the id differently.
80
+ */
81
+ export function oxyUserByIdPath(userId: string): string {
82
+ return `/users/${encodeURIComponent(userId)}`;
83
+ }
84
+
77
85
  /**
78
86
  * Build the exact cache key `getUserById` reads under. The only identity key
79
87
  * derivable from a user id, so the only one that does not need a prefix sweep.
80
88
  */
81
89
  export function oxyUserByIdCacheKey(userId: string): string {
82
- return `GET:/users/${userId}`;
90
+ return `GET:${oxyUserByIdPath(userId)}`;
83
91
  }
84
92
 
85
93
  /**