Skip to content

Commit

Permalink
feature(unlock-app): Update locksmith dependencies (#15054)
Browse files Browse the repository at this point in the history
* fix(deps): update locksmith

* remove html-template-tag dependency

* update test

* update stripe api version

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
0xTxbi and renovate[bot] authored Nov 12, 2024
1 parent b9ada14 commit 7d0f26b
Show file tree
Hide file tree
Showing 5 changed files with 854 additions and 816 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import request from 'supertest'
import { expect } from 'vitest'
import app from '../../src/app'

describe('HubPublisherController', () => {
Expand Down
40 changes: 20 additions & 20 deletions locksmith/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@
"author": "Unlock Inc",
"license": "ISC",
"dependencies": {
"@ambire/signature-validator": "1.3.1",
"@aws-sdk/client-s3": "3.614.0",
"@ambire/signature-validator": "1.4.1",
"@aws-sdk/client-s3": "3.688.0",
"@coinbase/waas-server-auth": "3.1.2",
"@logtail/node": "0.4.21",
"@logtail/winston": "0.4.21",
"@logtail/node": "0.5.2",
"@logtail/winston": "0.5.2",
"@nuintun/qrcode": "4.1.6",
"@openzeppelin/defender-sdk": "1.14.4",
"@openzeppelin/defender-sdk": "1.15.2",
"@openzeppelin/merkle-tree": "1.0.7",
"@privy-io/server-auth": "1.14.2",
"@privy-io/server-auth": "1.16.1",
"@resvg/resvg-js": "2.6.2",
"@sentry/node": "7.118.0",
"@sentry/node": "7.119.2",
"@sentry/tracing": "7.114.0",
"@types/archiver": "6.0.3",
"@types/connect-timeout": "0.0.39",
Expand All @@ -68,36 +68,36 @@
"express-winston": "4.2.0",
"fuse.js": "7.0.0",
"geoip-country": "5.0.202411012341",
"google-auth-library": "9.11.0",
"google-auth-library": "9.14.2",
"graphile-worker": "0.16.6",
"graphql": "16.9.0",
"graphql-tag": "2.12.6",
"html-template-tag": "4.0.1",
"ics": "3.7.6",
"html-template-tag": "4.1.0",
"ics": "3.8.1",
"isomorphic-fetch": "3.0.0",
"jsonwebtoken": "9.0.2",
"lodash.isequal": "4.5.0",
"memory-cache-node": "1.4.0",
"multer": "1.4.5-lts.1",
"multer-s3": "3.0.1",
"p-retry": "6.2.0",
"passkit-generator": "3.1.11",
"passkit-generator": "3.2.0",
"path-to-regexp": "8.2.0",
"pdfmake": "0.2.14",
"pg": "8.12.0",
"pg": "8.13.1",
"rate-limiter-flexible": "5.0.4",
"react": "18.3.1",
"remark-html": "16.0.1",
"remark-parse": "11.0.0",
"satori": "0.10.14",
"satori": "0.11.3",
"sequelize": "6.37.5",
"sequelize-cli": "6.6.2",
"siwe": "2.3.2",
"stripe": "17.2.1",
"stripe": "17.3.1",
"unified": "11.0.5",
"unlock-abi-1-1": "1.1.1",
"vitest-fetch-mock": "0.3.0",
"winston": "3.13.1",
"vitest-fetch-mock": "0.4.2",
"winston": "3.17.0",
"yargs": "17.7.2",
"zod": "3.23.8"
},
Expand All @@ -115,15 +115,15 @@
"@types/supertest": "6.0.2",
"@unlock-protocol/eslint-config": "workspace:^",
"@unlock-protocol/tsconfig": "workspace:./packages/tsconfig",
"eslint": "9.9.1",
"eslint": "9.14.0",
"eslint-config-standard": "17.1.0",
"nock": "13.5.5",
"node-mocks-http": "1.15.1",
"node-mocks-http": "1.16.1",
"parse-data-uri": "0.2.0",
"run-script-os": "1.1.6",
"supertest": "7.0.0",
"tsx": "4.16.5",
"typescript": "5.5.4",
"tsx": "4.19.2",
"typescript": "5.6.3",
"vitest": "2.1.4"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion locksmith/src/config/stripe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Stripe from 'stripe'
import config from '../config/config'

const stripe = new Stripe(config.stripeSecret!, {
apiVersion: '2024-09-30.acacia',
apiVersion: '2024-10-28.acacia',
})

export default stripe
5 changes: 1 addition & 4 deletions locksmith/src/controllers/hubPublisherController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import html from 'html-template-tag'
import { RequestHandler } from 'express'
import { networks } from '@unlock-protocol/networks'

Expand All @@ -17,9 +16,7 @@ export const template = ({ links }: HubPublisherTemplateOptions) => {
<html>
<head>
${links
.map(
(item) => html`<link rel="${item.rel}" href="${item.href}" />`
)
.map((item) => `<link rel="${item.rel}" href="${item.href}" />`)
.join('\n')}
</head>
<body>
Expand Down
Loading

0 comments on commit 7d0f26b

Please sign in to comment.