-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
100 changed files
with
1,011 additions
and
2,258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'svelte-meta-tags': major | ||
--- | ||
|
||
Update twitter meta tags to the latest spec. | ||
https://developer.x.com/en/docs/x-for-websites/cards/overview/player-card |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'svelte-meta-tags': major | ||
--- | ||
|
||
Supports Svelte 5! And Svelte 3 and Svelte 4 are no longer supported |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'svelte-meta-tags': major | ||
--- | ||
|
||
Add `deepMerge` function that allows deep merging of objects |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
DS_Store | ||
.DS_Store | ||
node_modules | ||
dist | ||
build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
engine-strict=true | ||
use-node-version=20.17.0 | ||
use-node-version=20.18.0 | ||
manage-package-manager-versions=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,11 +18,11 @@ | |
"@types/eslint": "^9.6.1", | ||
"eslint": "^9.13.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-svelte": "^2.45.1", | ||
"eslint-plugin-svelte": "^2.46.0", | ||
"globals": "^15.11.0", | ||
"prettier": "^3.3.3", | ||
"prettier-plugin-svelte": "^3.2.7", | ||
"typescript-eslint": "^8.10.0" | ||
"typescript-eslint": "^8.11.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
export function deepMerge(target: any, source: any) { | ||
const sourceKeys = Object.keys(source); | ||
|
||
for (let i = 0; i < sourceKeys.length; i++) { | ||
const key = sourceKeys[i]; | ||
|
||
const sourceValue = source[key]; | ||
const targetValue = target[key]; | ||
|
||
if (Array.isArray(sourceValue)) { | ||
if (Array.isArray(targetValue)) { | ||
target[key] = deepMerge(targetValue, sourceValue); | ||
} else { | ||
target[key] = deepMerge([], sourceValue); | ||
} | ||
} else if (isPlainObject(sourceValue)) { | ||
if (isPlainObject(targetValue)) { | ||
target[key] = deepMerge(targetValue, sourceValue); | ||
} else { | ||
target[key] = deepMerge({}, sourceValue); | ||
} | ||
} else if (targetValue === undefined || sourceValue !== undefined) { | ||
target[key] = sourceValue; | ||
} | ||
} | ||
|
||
return target; | ||
} | ||
|
||
function isPlainObject(object?: unknown): boolean { | ||
if (typeof object !== 'object' || object === null) { | ||
return false; | ||
} | ||
|
||
const proto = Object.getPrototypeOf(object); | ||
return proto === Object.prototype || proto === null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.