Skip to content

Commit

Permalink
chore(app): updating dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
razshare committed Apr 6, 2024
1 parent cd28fd6 commit bdb02bd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"publint": "^0.1.9",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"sveltekit-unsafe": "^0.1.1",
"svelte-unsafe": "^0.1.0",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^5.0.11"
Expand Down
20 changes: 10 additions & 10 deletions src/lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @property {any} data
*/

import { ok, error } from 'sveltekit-unsafe'
import { ok, error } from 'svelte-unsafe'
import { uuid } from './uuid'

let sessionKey = 'KITSESSID'
Expand Down Expand Up @@ -136,38 +136,38 @@ function create({ id, data }) {
/**
* @callback Exists
* @param {string} id Session id.
* @returns {Promise<import('sveltekit-unsafe').Unsafe<boolean>>}
* @returns {Promise<import('svelte-unsafe').Unsafe<boolean>>}
*/

/**
* @callback IsValid
* @param {string} id Session id.
* @returns {Promise<import('sveltekit-unsafe').Unsafe<boolean>>}
* @returns {Promise<import('svelte-unsafe').Unsafe<boolean>>}
*/

/**
* @callback Has
* @param {string} id Session id.
* @returns {Promise<import('sveltekit-unsafe').Unsafe<boolean>>}
* @returns {Promise<import('svelte-unsafe').Unsafe<boolean>>}
*/

/**
* @callback Get
* @param {string} id Session id.
* @returns {Promise<import('sveltekit-unsafe').Unsafe<import('./types').Session>>}
* @returns {Promise<import('svelte-unsafe').Unsafe<import('./types').Session>>}
*/

/**
* @callback Delete
* @param {string} id Session id.
* @returns {Promise<import('sveltekit-unsafe').Unsafe<void>>}
* @returns {Promise<import('svelte-unsafe').Unsafe<void>>}
*/

/**
* @callback Set
* @param {string} id Session id.
* @param {import('./types').Session} session
* @returns {Promise<import('sveltekit-unsafe').Unsafe<void>>}
* @returns {Promise<import('svelte-unsafe').Unsafe<void>>}
*/

/**
Expand Down Expand Up @@ -238,7 +238,7 @@ export const session = {
* Start a parked session from `cookies` or create a new one if no
* parked session is found or is expired.\
* @param {StartPayload} payload
* @returns {Promise<import('sveltekit-unsafe').Unsafe<import('./types').Session>>}
* @returns {Promise<import('svelte-unsafe').Unsafe<import('./types').Session>>}
*/
async start({ cookies }) {
let id = cookies.get(sessionKey) ?? ''
Expand Down Expand Up @@ -293,7 +293,7 @@ export const session = {
/**
* Destroy a session.
* @param {{id:string}} payload
* @returns {Promise<import('sveltekit-unsafe').Unsafe<void>>} Error if no session with the given `id` is found, otherwise success.
* @returns {Promise<import('svelte-unsafe').Unsafe<void>>} Error if no session with the given `id` is found, otherwise success.
*/
async destroy({ id }) {
const getAttempt = await _interface.get(id)
Expand Down Expand Up @@ -324,7 +324,7 @@ export const session = {
}
flushing = true
/**
* @type {Array<Promise<import('sveltekit-unsafe').Unsafe<void>>>}
* @type {Array<Promise<import('svelte-unsafe').Unsafe<void>>>}
*/
const destructors = []
for (const [, session] of map) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export {}

/**
* @callback Destroy
* @returns {Promise<import("sveltekit-unsafe").Unsafe<void>>}
* @returns {Promise<import("svelte-unsafe").Unsafe<void>>}
*/

/**
Expand Down

0 comments on commit bdb02bd

Please sign in to comment.