Skip to content

Commit 74b6031

Browse files
committed
🚚 Rename cjson to json
1 parent 1903baf commit 74b6031

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,23 @@ repos:
3737
args:
3838
- --msg-filename
3939
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
40-
rev: 3.4.0
40+
rev: 3.6.0
4141
hooks:
4242
- id: editorconfig-checker
4343
- repo: https://github.com/jumanjihouse/pre-commit-hooks
4444
rev: 3.0.0
4545
hooks:
4646
- id: check-mailmap
4747
- repo: https://github.com/rhysd/actionlint
48-
rev: v1.7.8
48+
rev: v1.7.9
4949
hooks:
5050
- id: actionlint
5151
- repo: https://github.com/adrienverge/yamllint
5252
rev: v1.37.1
5353
hooks:
5454
- id: yamllint
5555
- repo: https://github.com/executablebooks/mdformat
56-
rev: 0.7.22
56+
rev: 1.0.0
5757
hooks:
5858
- id: mdformat
5959
additional_dependencies:
@@ -62,12 +62,12 @@ repos:
6262
- mdformat-myst
6363
- mdformat-toc
6464
- mdformat-deflist
65-
# - mdformat-beautysh
65+
- mdformat-beautysh
6666
- mdformat-ruff
6767
- mdformat-config
6868
- mdformat-web
6969
- repo: https://github.com/DavidAnson/markdownlint-cli2
70-
rev: v0.18.1
70+
rev: v0.20.0
7171
hooks:
7272
- id: markdownlint-cli2
7373
additional_dependencies:

lua/code-stats.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- base class for CodeStats
22
local requests = require "requests"
3-
local cjson = require "cjson"
3+
local json = require "cjson"
44
local dotenv = require "lua-dotenv"
55

66
local M = {
@@ -61,7 +61,7 @@ function M.CodeStats:send_xp()
6161
local xps = self.xps
6262
self.xps = {}
6363
local args = self.args
64-
args.data = cjson.encode({ xps = xps, coded_at = os.date("!%Y-%m-%dT%H:%M:%S") })
64+
args.data = json.encode({ xps = xps, coded_at = os.date("!%Y-%m-%dT%H:%M:%S") })
6565
return requests.get(args)
6666
end
6767

0 commit comments

Comments
 (0)