Skip to content

Commit

Permalink
chore: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
valmisson committed Oct 21, 2023
1 parent 093f908 commit ae08a91
Show file tree
Hide file tree
Showing 4 changed files with 1,287 additions and 1,403 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
"prepublishOnly": "npm run build"
},
"peerDependencies": {
"svelte": "^3.38.3"
"svelte": "^3 || ^4"
},
"devDependencies": {
"@tsconfig/svelte": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"conventional-changelog-cli": "^2.2.2",
"eslint": "^8.20.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.2.4",
"eslint-plugin-promise": "^6.0.0",
"@tsconfig/svelte": "^5.0.2",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"conventional-changelog-cli": "^4.1.0",
"eslint": "^8.52.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-svelte3": "^4.0.0",
"lint-staged": "^13.0.3",
"svelte": "^3.49.0",
"typescript": "^4.7.4",
"lint-staged": "^15.0.2",
"svelte": "^4.2.2",
"typescript": "^5.2.2",
"yorkie": "^2.0.0"
},
"gitHooks": {
Expand Down
5 changes: 2 additions & 3 deletions src/shared/smoothScroll.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { now } from 'svelte/internal'
import type { SmoothOptions } from '../types/options'

const currentPosition = (
Expand All @@ -19,10 +18,10 @@ const smoothScroll = async (
): Promise<void> => {
return new Promise(resolve => {
const { start, end, duration, easing } = options
const clock = now()
const clock = Date.now()

const step = () => {
const elapsed = now() - clock
const elapsed = Date.now() - clock
const position = currentPosition(
start, end, elapsed, duration, easing
)
Expand Down
5 changes: 2 additions & 3 deletions src/store/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { writable } from 'svelte/store'
import { cubicInOut } from 'svelte/easing'
import { noop } from 'svelte/internal'
import type { GlobalOptions } from '../types/options'
import type { ElementReference } from '../types/reference'

Expand All @@ -9,6 +8,6 @@ export const globalOptions = writable<GlobalOptions>({
offset: 0,
duration: 500,
easing: cubicInOut,
onStart: noop,
onDone: noop
onStart: () => { },
onDone: () => { }
})
Loading

0 comments on commit ae08a91

Please sign in to comment.