@amedia/user 0.13.31 → 0.13.32

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.
Files changed (73) hide show
  1. package/README.md +2 -1
  2. package/dist/cache/engines/global.d.ts +17 -0
  3. package/dist/index.d.ts +17 -0
  4. package/dist/index.esm.js.map +2 -2
  5. package/dist/index.js.map +2 -2
  6. package/eik.json +1 -1
  7. package/package.json +1 -1
  8. package/src/cache/engines/global.ts +15 -0
  9. package/@types/global.d.ts +0 -15
  10. package/amedia-user-js.iml +0 -9
  11. package/dist/cache/engines/indexeddb.d.ts +0 -7
  12. package/dist/index.js.LICENSE.txt +0 -14
  13. package/dist/janitor/index.spec.d.ts +0 -4
  14. package/dist/lib/PaywallUnlocker.d.ts +0 -16
  15. package/dist/lib/PaywallUnlocker.spec.d.ts +0 -4
  16. package/dist/lib/User.d.ts +0 -21
  17. package/dist/utils/logValidationError.d.ts +0 -1
  18. package/esm/actions/authentication.d.ts +0 -5
  19. package/esm/actions/authentication.spec.d.ts +0 -4
  20. package/esm/actions/authorization.d.ts +0 -9
  21. package/esm/actions/preferences.d.ts +0 -9
  22. package/esm/actions/preferences.spec.d.ts +0 -1
  23. package/esm/actions/storage.d.ts +0 -4
  24. package/esm/actions/userData.d.ts +0 -2
  25. package/esm/autologin/index.d.ts +0 -1
  26. package/esm/autologin/thirdPartyCookie.d.ts +0 -3
  27. package/esm/autologin/thirdPartyCookie.spec.d.ts +0 -1
  28. package/esm/cache/engines/global.d.ts +0 -21
  29. package/esm/cache/engines/global.spec.d.ts +0 -1
  30. package/esm/cache/engines/indexeddb.d.ts +0 -7
  31. package/esm/cache/index.d.ts +0 -11
  32. package/esm/cache/index.spec.d.ts +0 -4
  33. package/esm/cache/types.d.ts +0 -11
  34. package/esm/clients/europa.d.ts +0 -28
  35. package/esm/clients/europa.spec.d.ts +0 -1
  36. package/esm/clients/jupiter.d.ts +0 -30
  37. package/esm/clients/jupiter.spec.d.ts +0 -1
  38. package/esm/clients/mercury.d.ts +0 -18
  39. package/esm/clients/mercury.spec.d.ts +0 -4
  40. package/esm/clients/nebula.d.ts +0 -2
  41. package/esm/clients/nebula.spec.d.ts +0 -1
  42. package/esm/clients/pluto.d.ts +0 -3
  43. package/esm/clients/pluto.spec.d.ts +0 -1
  44. package/esm/eventHandlers/activation.d.ts +0 -15
  45. package/esm/eventHandlers/authentication.d.ts +0 -17
  46. package/esm/eventHandlers/userAttributes.d.ts +0 -24
  47. package/esm/exceptions/PaywallError.d.ts +0 -7
  48. package/esm/index-authentcation.spec.d.ts +0 -4
  49. package/esm/index-storage.spec.d.ts +0 -4
  50. package/esm/index-subscription.spec.d.ts +0 -4
  51. package/esm/index.d.ts +0 -26
  52. package/esm/janitor/index.d.ts +0 -10
  53. package/esm/janitor/jobs/accessCookieRefresher.d.ts +0 -1
  54. package/esm/janitor/jobs/accessCookieRefresher.spec.d.ts +0 -4
  55. package/esm/lib/PaywallUnlocker.d.ts +0 -16
  56. package/esm/lib/PaywallUnlocker.spec.d.ts +0 -4
  57. package/esm/lib/User.d.ts +0 -21
  58. package/esm/lib/cookie.d.ts +0 -5
  59. package/esm/lib/rpc.d.ts +0 -6
  60. package/esm/store/index.d.ts +0 -22
  61. package/esm/store/index.spec.d.ts +0 -1
  62. package/esm/types.d.ts +0 -22
  63. package/esm/user.js +0 -2
  64. package/esm/user.js.map +0 -1
  65. package/esm/utils/customEventWrapper.d.ts +0 -17
  66. package/esm/utils/deepEquals.d.ts +0 -4
  67. package/esm/utils/getOrUpdate.d.ts +0 -6
  68. package/esm/utils/getOrUpdate.spec.d.ts +0 -1
  69. package/esm/utils/location.d.ts +0 -3
  70. package/esm/utils/log.d.ts +0 -26
  71. package/esm/utils/queue.d.ts +0 -12
  72. package/esm/utils/url.d.ts +0 -6
  73. package/esm/utils/url.spec.d.ts +0 -1
package/README.md CHANGED
@@ -168,4 +168,5 @@ To publish a new version do the following:
168
168
 
169
169
  - Update version number in `eik.json` to the same version as in `package.json`
170
170
  - Run `npm run eik:package` (no publishing will be done unless packages passes lint, typings, tests and builds successfully)
171
- - Run `npx eik package-alias user <version from eik.json> <Alias version>`
171
+ - Run `npx eik package-alias @amedia/user <version from eik.json> <Alias version>`
172
+ Example: `npx eik package-alias @amedia/user 0.13.31 0`
@@ -1,4 +1,21 @@
1
1
  import { CacheEntry, Engine } from '../types';
2
+ declare global {
3
+ export var amediaUserCache: {
4
+ [index: string]: CacheEntry;
5
+ };
6
+ interface Window {
7
+ amediaUserCache?: {
8
+ [index: string]: CacheEntry;
9
+ };
10
+ }
11
+ namespace NodeJS {
12
+ interface Global {
13
+ amediaUserCache?: {
14
+ [index: string]: CacheEntry;
15
+ };
16
+ }
17
+ }
18
+ }
2
19
  export declare const get: (key: string) => Promise<CacheEntry>;
3
20
  export declare const set: (key: string, data: unknown, expires: number) => Promise<void>;
4
21
  export declare const remove: (key: string) => Promise<void>;
package/dist/index.d.ts CHANGED
@@ -100,6 +100,23 @@ declare module '@amedia/user/autologin/thirdPartyCookie.spec' {
100
100
  }
101
101
  declare module '@amedia/user/cache/engines/global' {
102
102
  import { CacheEntry, Engine } from '@amedia/user/cache/types';
103
+ global {
104
+ export var amediaUserCache: {
105
+ [index: string]: CacheEntry;
106
+ };
107
+ interface Window {
108
+ amediaUserCache?: {
109
+ [index: string]: CacheEntry;
110
+ };
111
+ }
112
+ namespace NodeJS {
113
+ interface Global {
114
+ amediaUserCache?: {
115
+ [index: string]: CacheEntry;
116
+ };
117
+ }
118
+ }
119
+ }
103
120
  export const get: (key: string) => Promise<CacheEntry>;
104
121
  export const set: (key: string, data: unknown, expires: number) => Promise<void>;
105
122
  export const remove: (key: string) => Promise<void>;