Skip to content

Commit

Permalink
Update Deno
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoBernardino committed Jan 13, 2024
1 parent 6332764 commit d6bb84c
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .dvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.37.0
1.39.3
2 changes: 1 addition & 1 deletion .github/workflows/cron-check-subscriptions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.37.0
deno-version: v1.39.3
- env:
POSTGRESQL_HOST: ${{ secrets.POSTGRESQL_HOST }}
POSTGRESQL_USER: ${{ secrets.POSTGRESQL_USER }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cron-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.37.0
deno-version: v1.39.3
- env:
POSTGRESQL_HOST: ${{ secrets.POSTGRESQL_HOST }}
POSTGRESQL_USER: ${{ secrets.POSTGRESQL_USER }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.37.0
deno-version: v1.39.3
- run: docker-compose pull
- uses: jpribyl/[email protected]
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM denoland/deno:1.37.0
FROM denoland/deno:1.39.3

EXPOSE 8000

Expand Down
2 changes: 1 addition & 1 deletion import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"/": "./",
"./": "./",

"std/": "https://deno.land/std@0.202.0/"
"std/": "https://deno.land/std@0.212.0/"
}
}
4 changes: 2 additions & 2 deletions lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function basicLayoutResponse(htmlContent: string, options: BasicLayoutOpt
headers: {
'content-type': 'text/html; charset=utf-8',
'content-security-policy':
'default-src \'self\'; child-src \'self\'; img-src \'self\'; style-src \'self\' \'unsafe-inline\'; script-src \'self\' \'unsafe-inline\' \'unsafe-eval\';',
"default-src 'self'; child-src 'self'; img-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval';",
'x-frame-options': 'DENY',
'x-content-type-options': 'nosniff',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
Expand All @@ -101,7 +101,7 @@ export function isRunningLocally(urlPatternResult: URLPatternResult) {

export function escapeHtml(unsafe: string) {
return unsafe.replaceAll('&', '&amp;').replaceAll('<', '&lt;').replaceAll('>', '&gt;').replaceAll('"', '&quot;')
.replaceAll('\'', '&#039;');
.replaceAll("'", '&#039;');
}

async function transpileTs(content: string, specifier: URL) {
Expand Down
2 changes: 1 addition & 1 deletion lib/utils_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deno.test('that escapeHtml works', () => {
expected: '&lt;a href=&quot;https://brunobernardino.com&quot;&gt;URL&lt;/a&gt;',
},
{
input: '"><img onerror=\'alert(1)\' />',
input: "\"><img onerror='alert(1)' />",
expected: '&quot;&gt;&lt;img onerror=&#039;alert(1)&#039; /&gt;',
},
];
Expand Down
2 changes: 1 addition & 1 deletion public/ts/billing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ document.addEventListener('app-loaded', async () => {

const { isConfirmed } = await Swal.fire({
title: 'Are you sure?',
text: 'You won\'t be able to recover your data!',
text: "You won't be able to recover your data!",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: 'red',
Expand Down
4 changes: 2 additions & 2 deletions public/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ document.addEventListener('app-loaded', async () => {

const { isConfirmed } = await Swal.fire({
title: 'Are you sure?',
text: 'You won\'t be able to recover this expense!',
text: "You won't be able to recover this expense!",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: 'red',
Expand Down Expand Up @@ -568,7 +568,7 @@ document.addEventListener('app-loaded', async () => {

const { isConfirmed } = await Swal.fire({
title: 'Are you sure?',
text: 'You won\'t be able to recover this budget!',
text: "You won't be able to recover this budget!",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: 'red',
Expand Down
2 changes: 1 addition & 1 deletion public/ts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ export async function deleteBudget(budgetId: string) {

if (matchingBudgets.length === 1) {
showNotification(
'There are expenses using this budget. You can\'t delete a budget with expenses',
"There are expenses using this budget. You can't delete a budget with expenses",
'error',
);
return false;
Expand Down

0 comments on commit d6bb84c

Please sign in to comment.