Skip to content

Commit

Permalink
chore: upgrade deps
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Correa Casablanca <[email protected]>
  • Loading branch information
castarco committed Sep 12, 2024
1 parent a86bf20 commit f6c1839
Show file tree
Hide file tree
Showing 5 changed files with 186 additions and 183 deletions.
4 changes: 2 additions & 2 deletions @kindspells/astro-shield/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kindspells/astro-shield",
"version": "1.4.0",
"version": "1.4.1",
"description": "Astro integration to enhance your website's security with SubResource Integrity hashes, Content-Security-Policy headers, and other techniques.",
"private": false,
"type": "module",
Expand Down Expand Up @@ -63,7 +63,7 @@
"@types/node": "^22.5.4",
"astro": "^4.15.4",
"get-tsconfig": "^4.8.0",
"rollup": "^4.21.2",
"rollup": "^4.21.3",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-esbuild": "^6.1.1",
"typescript": "^5.6.2",
Expand Down
5 changes: 4 additions & 1 deletion @kindspells/astro-shield/src/core.mts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@ export const updateStaticPageSriHashes = async (
let resourceContent: string | ArrayBuffer | Buffer
if (urlLikeRegex.test(src)) {
setCrossorigin = true
const resourceResponse = await fetch(src.startsWith('//') ? `https:${src}` : src, { method: 'GET' })
const resourceResponse = await fetch(
src.startsWith('//') ? `https:${src}` : src,
{ method: 'GET' },
)
resourceContent = await resourceResponse.arrayBuffer()
} else if (src.startsWith('/')) {
const resourcePath = resolve(distDir, `.${src}`)
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"astro-sst": "^2.43.5",
"sharp": "0.33.5",
"sst": "^3.1.2"
"sst": "^3.1.7"
},
"devDependencies": {
"@astrojs/check": "^0.9.3",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@moonrepo/cli": "^1.28.1",
"@moonrepo/cli": "^1.28.2",
"@vitest/coverage-v8": "^2.0.5",
"publint": "^0.2.10",
"vitest": "^2.0.5"
Expand Down
Loading

0 comments on commit f6c1839

Please sign in to comment.