@secret-momo/utils 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/pino.d.ts +3 -0
- package/lib/pino.js +1 -0
- package/package.json +6 -4
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{downloadImage as r,downloadVideo as t}from"./download/index.js";import{dateTimeToNow as
|
|
1
|
+
import{downloadImage as r,downloadVideo as t}from"./download/index.js";import{dateTimeToNow as f,dateToNow as a,timestampToDate as d,yesterdayDate as p}from"./date-time.js";import{getNodeName as s}from"./env.js";import{fetch as n,fetchHtml as g,fetchJson as i,fetchText as c,mobileUserAgent as u,userAgent as w}from"./fetch.js";import{error as h,info as N,log as y,success as v,warn as A}from"./log.js";import{fixed2 as I,fixed4 as P,toPercentage as U}from"./num.js";import{logger as H}from"./pino.js";import{sleep as Q,sleep_random as R}from"./sleep.js";import{genId as _,uuidv4 as j}from"./uuid.js";import{getRedirectUrl as q,removeQueryParams as z}from"./url.js";import{default as C}from"consola";import{default as F}from"pino";export{C as consola,f as dateTimeToNow,a as dateToNow,r as downloadImage,t as downloadVideo,h as error,n as fetch,g as fetchHtml,i as fetchJson,c as fetchText,I as fixed2,P as fixed4,_ as genId,s as getNodeName,q as getRedirectUrl,N as info,y as log,H as logger,u as mobileUserAgent,F as pino,z as removeQueryParams,Q as sleep,R as sleep_random,v as success,d as timestampToDate,U as toPercentage,w as userAgent,j as uuidv4,A as warn,p as yesterdayDate};
|
package/lib/pino.d.ts
ADDED
package/lib/pino.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"pino";import{default as n}from"pino";const t=o({level:"info",transport:{target:"pino-pretty",options:{colorize:!0,translateTime:"SYS:yyyy-mm-dd HH:MM:ss",ignore:"pid,hostname"}}});export{t as logger,n as pino};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secret-momo/utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"module": "src/index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -44,13 +44,15 @@
|
|
|
44
44
|
"jiti": "2.7.0",
|
|
45
45
|
"lint-staged": "17.0.7",
|
|
46
46
|
"prettier": "3.8.4",
|
|
47
|
-
"rollup": "4.62.
|
|
47
|
+
"rollup": "4.62.2",
|
|
48
48
|
"rollup-plugin-esbuild": "6.2.1",
|
|
49
49
|
"typescript": "6.0.3",
|
|
50
|
-
"typescript-eslint": "8.61.
|
|
50
|
+
"typescript-eslint": "8.61.1"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"consola": "3.4.2",
|
|
54
|
-
"dayjs": "1.11.21"
|
|
54
|
+
"dayjs": "1.11.21",
|
|
55
|
+
"pino": "10.3.1",
|
|
56
|
+
"pino-pretty": "13.1.3"
|
|
55
57
|
}
|
|
56
58
|
}
|