Skip to content

Commit

Permalink
move analytics utility into it's own lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanrikulu committed Jan 26, 2024
1 parent ffbaaa8 commit acf3c32
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 124 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
}
],
"devDependencies": {
"@cloudflare/workers-types": "^4.20231121.0",
"@cloudflare/workers-types": "^4.20240117.0",
"@ensdomains/ens-contracts": "^0.0.21",
"@types/chai": "^4.3.4",
"@types/chai-as-promised": "^7.1.5",
Expand All @@ -76,6 +76,7 @@
"@chainlink/ccip-read-server": "^0.2.1",
"@ensdomains/ccip-read-cf-worker": "^0.0.3",
"@ensdomains/dnsprovejs": "^0.4.1",
"@ensdomains/server-analytics": "^0.0.1-alpha.2",
"dotenv": "^16.0.3",
"ethers": "^5.7.2",
"node-fetch": "2.6.1"
Expand Down
117 changes: 0 additions & 117 deletions src/utils/analytics.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import {
ExecutionContext,
} from '@cloudflare/workers-types';
import { Server } from '@ensdomains/ccip-read-cf-worker';
import { Tracker } from '@ensdomains/server-analytics';
import { dohQuery } from '@ensdomains/dnsprovejs';
import { makeApp } from './app';
import { Tracker } from './utils/analytics';

interface ENV {
DOH_GATEWAY_URL: string;
Expand Down
18 changes: 13 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -951,10 +951,10 @@
ethers "^5.3.1"
express "^4.17.1"

"@cloudflare/workers-types@^4.20231121.0":
version "4.20231121.0"
resolved "https://registry.yarnpkg.com/@cloudflare/workers-types/-/workers-types-4.20231121.0.tgz#6a1c0bfc93aca4643d43f6439cfb7aca8058f289"
integrity sha512-+kWfpCkqiepwAKXyHoE0gnkPgkLhz0/9HOBIGhHRsUvUKvhUtm3mbqqoGRWgF1qcjzrDUBbrrOq4MYHfFtc2RA==
"@cloudflare/workers-types@^4.20240117.0":
version "4.20240117.0"
resolved "https://registry.yarnpkg.com/@cloudflare/workers-types/-/workers-types-4.20240117.0.tgz#6cadb53017488ea4258dfd4fb589562d3b85a597"
integrity sha512-HQU8lJhaJVh8gQXFtVA7lZwd0hK1ckIFjRuxOXkVN2Z9t7DtzNbA2YTwBry5thKNgF5EwjN4THjHg5NUZzj05A==

"@cnakazawa/watch@^1.0.3":
version "1.0.4"
Expand Down Expand Up @@ -996,6 +996,14 @@
"@openzeppelin/contracts" "^4.1.0"
dns-packet "^5.3.0"

"@ensdomains/server-analytics@^0.0.1-alpha.2":
version "0.0.1-alpha.2"
resolved "https://registry.yarnpkg.com/@ensdomains/server-analytics/-/server-analytics-0.0.1-alpha.2.tgz#6a7df23be69e03ebd6426fe43a48a60ed9f242b0"
integrity sha512-ewXfZzp/YGoEo4/OKBx6olT7h/P6X01EZ7B4D8ZjFTa4sLzAufQK1qnjHY+SdE6LJ/gAlJX5nl62agtPjVKUGg==
dependencies:
"@cloudflare/workers-types" "^4.20240117.0"
express "^4.18.2"

"@ensdomains/[email protected]":
version "0.0.3"
resolved "https://registry.npmjs.org/@ensdomains/solsha1/-/solsha1-0.0.3.tgz"
Expand Down Expand Up @@ -4208,7 +4216,7 @@ expect@^25.5.0:
jest-message-util "^25.5.0"
jest-regex-util "^25.2.6"

express@^4.17.1:
express@^4.17.1, express@^4.18.2:
version "4.18.2"
resolved "https://registry.npmjs.org/express/-/express-4.18.2.tgz"
integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==
Expand Down

0 comments on commit acf3c32

Please sign in to comment.