Skip to content

Commit

Permalink
chore: upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSnow committed Apr 12, 2024
1 parent 88a2430 commit 4162fc8
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 76 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"lodash.truncate": "^4.4.2",
"node-fetch-native": "^1.6.4",
"ohash": "^1.1.3",
"ora": "^7.0.1",
"ora": "^8.0.1",
"p-whilst": "^3.1.0",
"parse5": "^7.1.2",
"pathe": "^1.1.2",
Expand Down Expand Up @@ -73,7 +73,7 @@
"@types/tailwindcss": "3.1.0",
"@types/tar": "6.1.12",
"@types/uuid": "9.0.8",
"@vitejs/plugin-vue": "4.5.2",
"@vitejs/plugin-vue": "5.0.4",
"eslint": "9.0.0",
"eslint-plugin-prettier": "5.1.3",
"fs-extra": "11.2.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/karbon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"fast-deep-equal": "^3.1.3",
"fast-xml-parser": "^4.3.6",
"feed": "^4.2.2",
"file-type": "^18.7.0",
"file-type": "^19.0.0",
"find-cache-dir": "^5.0.0",
"fs-extra": "^11.2.0",
"graphql": "^16.8.1",
Expand All @@ -95,7 +95,7 @@
"nuxt-simple-robots": "^3.1.2",
"nuxt-simple-sitemap": "3.0.13",
"ohash": "^1.1.3",
"ora": "^7.0.1",
"ora": "^8.0.1",
"p-defer": "^4.0.1",
"p-whilst": "^3.1.0",
"parse5": "^7.1.2",
Expand Down Expand Up @@ -143,7 +143,7 @@
"@types/tailwindcss": "3.1.0",
"@types/tar": "6.1.12",
"@types/uuid": "9.0.8",
"@vitejs/plugin-vue": "4.5.2",
"@vitejs/plugin-vue": "5.0.4",
"changelogen": "0.5.5",
"eslint": "9.0.0",
"eslint-config-prettier": "9.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/karbon/src/cli/checkFile/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import process from 'node:process'
import consola from 'consola'
import fs from 'fs-extra'
import { fileTypeFromFile } from 'file-type'
import { fileTypeFromBuffer } from 'file-type'
import type { Tblock, Tlayout } from '../bundle/types'
import { extErrorMsg, karbonMsg, safeExt } from './setting'

Expand Down Expand Up @@ -34,7 +34,7 @@ function jsonSafe() {
}

async function typeSafe() {
const result = await fileTypeFromFile(fileName)
const result = await fileTypeFromBuffer(await fs.readFile(fileName))
if (result?.ext !== safeExt) {
consola.error(extErrorMsg)
throw new Error(karbonMsg.uploadError)
Expand Down
2 changes: 1 addition & 1 deletion packages/karbon/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ export default defineConfig({
js: `
import { createRequire as _createRequire } from 'module';
const require = _createRequire(import.meta.url);
${process.env.POLYFILL_CRYPTO ? "globalThis.crypto = require('crypto').webcrypto;" : ''}`,
${process.env.POLYFILL_CRYPTO ? "if (!globalThis.crypto) { globalThis.crypto = require('crypto').webcrypto; }" : ''}`,
},
})
4 changes: 2 additions & 2 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"lodash.truncate": "^4.4.2",
"node-fetch-native": "^1.6.4",
"ohash": "^1.1.3",
"ora": "^7.0.1",
"ora": "^8.0.1",
"p-whilst": "^3.1.0",
"parse5": "^7.1.2",
"pathe": "^1.1.2",
Expand Down Expand Up @@ -79,7 +79,7 @@
"@types/tailwindcss": "3.1.0",
"@types/tar": "6.1.12",
"@types/uuid": "9.0.8",
"@vitejs/plugin-vue": "4.5.2",
"@vitejs/plugin-vue": "5.0.4",
"eslint": "9.0.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.3",
Expand Down
126 changes: 60 additions & 66 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2831,7 +2831,7 @@ __metadata:
"@types/tailwindcss": "npm:3.1.0"
"@types/tar": "npm:6.1.12"
"@types/uuid": "npm:9.0.8"
"@vitejs/plugin-vue": "npm:4.5.2"
"@vitejs/plugin-vue": "npm:5.0.4"
"@vueuse/core": "npm:^10.1.2"
"@vueuse/head": "npm:^1.1.26"
"@vueuse/nuxt": "npm:^10.1.2"
Expand All @@ -2857,7 +2857,7 @@ __metadata:
npm-run-all2: "npm:6.1.2"
nuxt: "npm:3.7.3"
ohash: "npm:^1.1.3"
ora: "npm:^7.0.1"
ora: "npm:^8.0.1"
p-whilst: "npm:^3.1.0"
parse5: "npm:^7.1.2"
pathe: "npm:^1.1.2"
Expand Down Expand Up @@ -2913,7 +2913,7 @@ __metadata:
"@types/tailwindcss": "npm:3.1.0"
"@types/tar": "npm:6.1.12"
"@types/uuid": "npm:9.0.8"
"@vitejs/plugin-vue": "npm:4.5.2"
"@vitejs/plugin-vue": "npm:5.0.4"
"@vueuse/core": "npm:^10.1.2"
"@vueuse/head": "npm:^1.1.26"
"@vueuse/nuxt": "npm:^10.1.2"
Expand All @@ -2940,7 +2940,7 @@ __metadata:
npm-run-all2: "npm:6.1.2"
nuxt: "npm:3.7.3"
ohash: "npm:^1.1.3"
ora: "npm:^7.0.1"
ora: "npm:^8.0.1"
p-whilst: "npm:^3.1.0"
parse5: "npm:^7.1.2"
pathe: "npm:^1.1.2"
Expand Down Expand Up @@ -3000,7 +3000,7 @@ __metadata:
"@types/tailwindcss": "npm:3.1.0"
"@types/tar": "npm:6.1.12"
"@types/uuid": "npm:9.0.8"
"@vitejs/plugin-vue": "npm:4.5.2"
"@vitejs/plugin-vue": "npm:5.0.4"
"@vueuse/core": "npm:^10.1.2"
"@vueuse/head": "npm:^1.1.26"
"@vueuse/math": "npm:^10.1.2"
Expand All @@ -3020,7 +3020,7 @@ __metadata:
fast-deep-equal: "npm:^3.1.3"
fast-xml-parser: "npm:^4.3.6"
feed: "npm:^4.2.2"
file-type: "npm:^18.7.0"
file-type: "npm:^19.0.0"
find-cache-dir: "npm:^5.0.0"
fs-extra: "npm:11.2.0"
globby: "npm:14.0.1"
Expand All @@ -3041,7 +3041,7 @@ __metadata:
nuxt-simple-robots: "npm:^3.1.2"
nuxt-simple-sitemap: "npm:3.0.13"
ohash: "npm:^1.1.3"
ora: "npm:^7.0.1"
ora: "npm:^8.0.1"
p-defer: "npm:^4.0.1"
p-whilst: "npm:^3.1.0"
parse5: "npm:^7.1.2"
Expand Down Expand Up @@ -4107,13 +4107,13 @@ __metadata:
languageName: node
linkType: hard

"@vitejs/plugin-vue@npm:4.5.2":
version: 4.5.2
resolution: "@vitejs/plugin-vue@npm:4.5.2"
"@vitejs/plugin-vue@npm:5.0.4":
version: 5.0.4
resolution: "@vitejs/plugin-vue@npm:5.0.4"
peerDependencies:
vite: ^4.0.0 || ^5.0.0
vite: ^5.0.0
vue: ^3.2.25
checksum: 10/4d01d5222e5b96f5c90ef34260c57ff296d141a76011f9a41af0c4583a52b8666a8e14aed703fac7f53e0120fe3316f208c22d65af4a94efa92c7a53c36993c1
checksum: 10/50bb3bc709e0bb9f67f8cf5a23b69990d7b4d086e5623910e5e3e926f91f2bccb5984f37b0cba1a401f0b64352a5a352c524815550003a4a01144e81b31f336f
languageName: node
linkType: hard

Expand Down Expand Up @@ -5116,17 +5116,6 @@ __metadata:
languageName: node
linkType: hard

"bl@npm:^5.0.0":
version: 5.1.0
resolution: "bl@npm:5.1.0"
dependencies:
buffer: "npm:^6.0.3"
inherits: "npm:^2.0.4"
readable-stream: "npm:^3.4.0"
checksum: 10/0340d3d70def4213cd9cbcd8592f7c5922d3668e7b231286c354613fac4a8411ad373cff26e06162da7423035bbd5caafce3e140a5f397be72fcd1e9d86f1179
languageName: node
linkType: hard

"boolbase@npm:^1.0.0":
version: 1.0.0
resolution: "boolbase@npm:1.0.0"
Expand Down Expand Up @@ -5478,7 +5467,7 @@ __metadata:
languageName: node
linkType: hard

"chalk@npm:^5.0.0, chalk@npm:^5.1.2, chalk@npm:^5.2.0, chalk@npm:^5.3.0":
"chalk@npm:^5.1.2, chalk@npm:^5.2.0, chalk@npm:^5.3.0":
version: 5.3.0
resolution: "chalk@npm:5.3.0"
checksum: 10/6373caaab21bd64c405bfc4bd9672b145647fc9482657b5ea1d549b3b2765054e9d3d928870cdf764fb4aad67555f5061538ff247b8310f110c5c888d92397ea
Expand Down Expand Up @@ -5683,10 +5672,10 @@ __metadata:
languageName: node
linkType: hard

"cli-spinners@npm:^2.5.0, cli-spinners@npm:^2.9.0":
version: 2.9.0
resolution: "cli-spinners@npm:2.9.0"
checksum: 10/457497ccef70eec3f1d0825e4a3396ba43f6833a4900c2047c0efe2beecb1c0df476949ea378bcb6595754f7508e28ae943eeb30bbda807f59f547b270ec334c
"cli-spinners@npm:^2.5.0, cli-spinners@npm:^2.9.2":
version: 2.9.2
resolution: "cli-spinners@npm:2.9.2"
checksum: 10/a0a863f442df35ed7294424f5491fa1756bd8d2e4ff0c8736531d886cec0ece4d85e8663b77a5afaf1d296e3cbbebff92e2e99f52bbea89b667cbe789b994794
languageName: node
linkType: hard

Expand Down Expand Up @@ -6686,10 +6675,10 @@ __metadata:
languageName: node
linkType: hard

"emoji-regex@npm:^10.2.1":
version: 10.2.1
resolution: "emoji-regex@npm:10.2.1"
checksum: 10/fb2143d669ed7a3b180a56bfb5fc0638af25aeef421df4bb9c3a835dccfc4b737bcb45dfc8cea33c3f2b9dcd92a3fdb79820c7a840491a899e2d68aa3245c4b5
"emoji-regex@npm:^10.3.0":
version: 10.3.0
resolution: "emoji-regex@npm:10.3.0"
checksum: 10/b9b084ebe904f13bb4b66ee4c29fb41a7a4a1165adcc33c1ce8056c0194b882cc91ebdc782f1a779b5d7ea7375c5064643a7734893d7c657b44c5c6b9d7bf1e7
languageName: node
linkType: hard

Expand Down Expand Up @@ -7835,14 +7824,14 @@ __metadata:
languageName: node
linkType: hard

"file-type@npm:^18.7.0":
version: 18.7.0
resolution: "file-type@npm:18.7.0"
"file-type@npm:^19.0.0":
version: 19.0.0
resolution: "file-type@npm:19.0.0"
dependencies:
readable-web-to-node-stream: "npm:^3.0.2"
strtok3: "npm:^7.0.0"
token-types: "npm:^5.0.1"
checksum: 10/95b70313d697484bb9613dd822a29554e9754b49f4d62f17e399649c981a12556776b4ee83b0a62b752fc9048ac79f6cf79ad13b2a750d89afa170902c7b0029
checksum: 10/8befa58f769b19d4a72c214694906b83b584310575300e63c08c48f9f2cfa6cb57fb4e1d08325961938d9dde3ecc4f5737b1604ddedfd759f5a1e65e5b0ca577
languageName: node
linkType: hard

Expand Down Expand Up @@ -8149,6 +8138,13 @@ __metadata:
languageName: node
linkType: hard

"get-east-asian-width@npm:^1.0.0":
version: 1.2.0
resolution: "get-east-asian-width@npm:1.2.0"
checksum: 10/c9b280e7c7c67fb89fa17e867c4a9d1c9f1321aba2a9ee27bff37fb6ca9552bccda328c70a80c1f83a0e39ba1b7e3427e60f47823402d19e7a41b83417ec047a
languageName: node
linkType: hard

"get-func-name@npm:^2.0.1, get-func-name@npm:^2.0.2":
version: 2.0.2
resolution: "get-func-name@npm:2.0.2"
Expand Down Expand Up @@ -9361,7 +9357,7 @@ __metadata:
languageName: node
linkType: hard

"is-unicode-supported@npm:*":
"is-unicode-supported@npm:*, is-unicode-supported@npm:^2.0.0":
version: 2.0.0
resolution: "is-unicode-supported@npm:2.0.0"
checksum: 10/000b80639dedaf59a385f1c0a57f97a4d1435e0723716f24cc19ad94253a7a0a9f838bdc9ac49b10a29ac93b01f52ae9b2ed358a8876caf1eb74d73b4ede92b2
Expand All @@ -9375,7 +9371,7 @@ __metadata:
languageName: node
linkType: hard

"is-unicode-supported@npm:^1.1.0, is-unicode-supported@npm:^1.3.0":
"is-unicode-supported@npm:^1.3.0":
version: 1.3.0
resolution: "is-unicode-supported@npm:1.3.0"
checksum: 10/20a1fc161afafaf49243551a5ac33b6c4cf0bbcce369fcd8f2951fbdd000c30698ce320de3ee6830497310a8f41880f8066d440aa3eb0a853e2aa4836dd89abc
Expand Down Expand Up @@ -10004,13 +10000,13 @@ __metadata:
languageName: node
linkType: hard

"log-symbols@npm:^5.1.0":
version: 5.1.0
resolution: "log-symbols@npm:5.1.0"
"log-symbols@npm:^6.0.0":
version: 6.0.0
resolution: "log-symbols@npm:6.0.0"
dependencies:
chalk: "npm:^5.0.0"
is-unicode-supported: "npm:^1.1.0"
checksum: 10/7291b6e7f1b3df6865bdaeb9b59605c832668ac2fa0965c63b1e7dd3700349aec09c1d7d40c368d5041ff58b7f89461a56e4009471921301af7b3609cbff9a29
chalk: "npm:^5.3.0"
is-unicode-supported: "npm:^1.3.0"
checksum: 10/510cdda36700cbcd87a2a691ea08d310a6c6b449084018f7f2ec4f732ca5e51b301ff1327aadd96f53c08318e616276c65f7fe22f2a16704fb0715d788bc3c33
languageName: node
linkType: hard

Expand Down Expand Up @@ -11533,20 +11529,20 @@ __metadata:
languageName: node
linkType: hard

"ora@npm:^7.0.1":
version: 7.0.1
resolution: "ora@npm:7.0.1"
"ora@npm:^8.0.1":
version: 8.0.1
resolution: "ora@npm:8.0.1"
dependencies:
chalk: "npm:^5.3.0"
cli-cursor: "npm:^4.0.0"
cli-spinners: "npm:^2.9.0"
cli-spinners: "npm:^2.9.2"
is-interactive: "npm:^2.0.0"
is-unicode-supported: "npm:^1.3.0"
log-symbols: "npm:^5.1.0"
stdin-discarder: "npm:^0.1.0"
string-width: "npm:^6.1.0"
is-unicode-supported: "npm:^2.0.0"
log-symbols: "npm:^6.0.0"
stdin-discarder: "npm:^0.2.1"
string-width: "npm:^7.0.0"
strip-ansi: "npm:^7.1.0"
checksum: 10/4ec001b6f1b8592be93d8a5e7e4f271f0fcd85868ceb0f00d0c1bff57be282aeeaaaacbd4bdefdf1b852de5d7813ac564da7a3c08000761beeade6097fc8a9af
checksum: 10/3d37bb3f53e965e5176004af319f82feef7323ee0b2428db5ee6f689b9b9ba939d7b1e81691d4614333c4fb9e294790eb049db9c1e990b14b9bbe150c6f09993
languageName: node
linkType: hard

Expand Down Expand Up @@ -13816,12 +13812,10 @@ __metadata:
languageName: node
linkType: hard

"stdin-discarder@npm:^0.1.0":
version: 0.1.0
resolution: "stdin-discarder@npm:0.1.0"
dependencies:
bl: "npm:^5.0.0"
checksum: 10/85131f70ae2830144133b7a6211d56f9ac2603573f4af3d0b66e828af5e13fcdea351f9192f86bb7fed2c64604c8097bf36d50cb77d54e898ce4604c3b7b6b8f
"stdin-discarder@npm:^0.2.1":
version: 0.2.2
resolution: "stdin-discarder@npm:0.2.2"
checksum: 10/642ffd05bd5b100819d6b24a613d83c6e3857c6de74eb02fc51506fa61dc1b0034665163831873868157c4538d71e31762bcf319be86cea04c3aba5336470478
languageName: node
linkType: hard

Expand Down Expand Up @@ -13873,14 +13867,14 @@ __metadata:
languageName: node
linkType: hard

"string-width@npm:^6.1.0":
version: 6.1.0
resolution: "string-width@npm:6.1.0"
"string-width@npm:^7.0.0":
version: 7.1.0
resolution: "string-width@npm:7.1.0"
dependencies:
eastasianwidth: "npm:^0.2.0"
emoji-regex: "npm:^10.2.1"
strip-ansi: "npm:^7.0.1"
checksum: 10/8aefb456a230c8d7fe254049b1b2d62603da1a3b6c7fc9f3332f6779583cc1c72653f9b6e4cd0c1c92befee1565d4a0a7542d09ba4ceb6d96af02fbd8425bb03
emoji-regex: "npm:^10.3.0"
get-east-asian-width: "npm:^1.0.0"
strip-ansi: "npm:^7.1.0"
checksum: 10/a183573fe7209e0d294f661846d33f8caf72aa86d983e5b48a0ed45ab15bcccb02c6f0344b58b571988871105457137b8207855ea536827dbc4a376a0f31bf8f
languageName: node
linkType: hard

Expand Down

0 comments on commit 4162fc8

Please sign in to comment.