Skip to content

Commit

Permalink
Use cborg instead of cbor-x.
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Jul 23, 2023
1 parent d1073ff commit e115ceb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 81 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webscraper",
"version": "0.4.1",
"version": "0.4.2",
"description": "",
"private": true,
"main": "dist/main.js",
Expand Down Expand Up @@ -70,7 +70,7 @@
"@tiptap/pm": "2.1.0-rc.12",
"@yiwen-ai/zeed-dom": "^0.10.6",
"cassandra-driver": "^4.6.4",
"cbor-x": "^1.5.3",
"cborg": "^2.0.3",
"cheerio": "1.0.0-rc.12",
"config": "^3.3.9",
"crawlee": "^3.4.1",
Expand Down
83 changes: 6 additions & 77 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { gzipSync } from 'node:zlib'
import type Koa from 'koa'
import Router from '@koa/router'
import { encode } from 'cbor-x'
import { encode } from 'cborg'

import { LogLevel, createLog, writeLog } from './log.js'
import { connect } from './db/scylladb.js'
Expand Down
2 changes: 1 addition & 1 deletion src/db/model.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Buffer } from 'node:buffer'
import createError from 'http-errors'
import { type Client } from 'cassandra-driver'
import { encode } from 'cbor-x'
import { encode } from 'cborg'
import { Xid } from 'xid-ts'

const MAX_CELL_SIZE = 1024 * 1024 - 1 // 1MB
Expand Down

0 comments on commit e115ceb

Please sign in to comment.