@koolbase/core 12.46.0 → 12.47.0
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/cjs/auth.js +4 -0
- package/dist/cjs/types.d.ts +9 -0
- package/dist/esm/auth.js +4 -0
- package/dist/esm/types.d.ts +9 -0
- package/package.json +1 -1
package/dist/cjs/auth.js
CHANGED
|
@@ -921,6 +921,10 @@ class KoolbaseAuth {
|
|
|
921
921
|
createdAt: String(r.created_at),
|
|
922
922
|
expiresAt: String(r.expires_at),
|
|
923
923
|
isCurrent: Boolean(r.is_current),
|
|
924
|
+
// An API before these sends none of these: the row's own times.
|
|
925
|
+
device: typeof r.device === 'string' && r.device ? r.device : 'Unknown device',
|
|
926
|
+
lastActiveAt: String(r.last_active_at ?? r.created_at),
|
|
927
|
+
signedInAt: String(r.signed_in_at ?? r.created_at),
|
|
924
928
|
};
|
|
925
929
|
});
|
|
926
930
|
}
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -135,6 +135,15 @@ export interface KoolbaseSessionInfo {
|
|
|
135
135
|
* exclude.
|
|
136
136
|
*/
|
|
137
137
|
isCurrent: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* The device, named for a person: "Chrome on macOS", "iOS 18.1".
|
|
140
|
+
* "Unknown device" from an API that does not name it.
|
|
141
|
+
*/
|
|
142
|
+
device: string;
|
|
143
|
+
/** When the device last used this session (its last renewal). */
|
|
144
|
+
lastActiveAt: string;
|
|
145
|
+
/** When its owner last signed in on it. */
|
|
146
|
+
signedInAt: string;
|
|
138
147
|
}
|
|
139
148
|
/**
|
|
140
149
|
* One thing that happened to this account.
|
package/dist/esm/auth.js
CHANGED
|
@@ -918,6 +918,10 @@ export class KoolbaseAuth {
|
|
|
918
918
|
createdAt: String(r.created_at),
|
|
919
919
|
expiresAt: String(r.expires_at),
|
|
920
920
|
isCurrent: Boolean(r.is_current),
|
|
921
|
+
// An API before these sends none of these: the row's own times.
|
|
922
|
+
device: typeof r.device === 'string' && r.device ? r.device : 'Unknown device',
|
|
923
|
+
lastActiveAt: String(r.last_active_at ?? r.created_at),
|
|
924
|
+
signedInAt: String(r.signed_in_at ?? r.created_at),
|
|
921
925
|
};
|
|
922
926
|
});
|
|
923
927
|
}
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -135,6 +135,15 @@ export interface KoolbaseSessionInfo {
|
|
|
135
135
|
* exclude.
|
|
136
136
|
*/
|
|
137
137
|
isCurrent: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* The device, named for a person: "Chrome on macOS", "iOS 18.1".
|
|
140
|
+
* "Unknown device" from an API that does not name it.
|
|
141
|
+
*/
|
|
142
|
+
device: string;
|
|
143
|
+
/** When the device last used this session (its last renewal). */
|
|
144
|
+
lastActiveAt: string;
|
|
145
|
+
/** When its owner last signed in on it. */
|
|
146
|
+
signedInAt: string;
|
|
138
147
|
}
|
|
139
148
|
/**
|
|
140
149
|
* One thing that happened to this account.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koolbase/core",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.47.0",
|
|
4
4
|
"description": "Koolbase SDK core \u2014 shared behaviour behind @koolbase/react-native and @koolbase/js. Install one of those, not this.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|