Socket
Socket
Sign inDemoInstall

xmcommon

Package Overview
Dependencies
1
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

2

dist/log.d.ts

@@ -17,2 +17,3 @@ /**

warn(...paramLog: unknown[]): void;
msg(...paramLog: unknown[]): void;
}

@@ -39,2 +40,3 @@ /**

fatal(...paramLog: unknown[]): void;
msg(...paramLog: unknown[]): void;
}

@@ -41,0 +43,0 @@ /**

@@ -106,2 +106,6 @@ "use strict";

}
msg(...paramLog) {
// tslint:disable-next-line: no-console
console.log(this.buildLog(this.name, ' MSG', ...paramLog));
}
}

@@ -108,0 +112,0 @@ exports.LogConsole = LogConsole;

@@ -64,2 +64,3 @@ import path from 'path';

warn(...paramLog: unknown[]): void;
msg(...paramLog: unknown[]): void;
}

@@ -120,2 +121,6 @@

}
public msg(...paramLog: unknown[]) {
// tslint:disable-next-line: no-console
console.log(this.buildLog(this.name, ' MSG', ...paramLog));
}
}

@@ -122,0 +127,0 @@

2

package.json
{
"name": "xmcommon",
"version": "1.0.4",
"version": "1.0.5",
"description": "一个基于javascript的常用功能扩展库! 使用TypeScript重构!",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -34,33 +34,25 @@ # xmcommon

# 版本变更说明
## 1.0.4
- 2022-07-08
## 1.0.5 2022-07-08
- 增加isEmpty和isTrueEmpty的方法,这个方法和thinkjs中对应的方法的作用是一样的
- 将一些isXXX的函数,引用lodash或js自带的,不再封装一次,直接引用了
## 1.0.3
- 2022-04-14
- 日志增加msg接口,用于专门写收发消息文件
## 1.0.3 2022-04-14
- \* 将一些用不到的函数以及类标注为deprecated,还会保留,在2.0的时候会删除
- \* 这里的utils,datetimeUtils,watchRequire,common_ret,CNYCurrency等已经常过了常时间的使用,暂无问题,可以放心使用了
## 0.9.21
- 2022-3-2
## 0.9.21 2022-3-2
- \+ utils增加calcPageOffsetByPageInfo,calcPageOffset,notNullEmptyString三个函数
## 0.9.20
- 2022-2-24
## 0.9.20 2022-2-24
- \* 修改fileExistsSync描述错误
## 0.9.19
- 2022-2-23
## 0.9.19 2022-2-23
- \+ utils增加isDirSync, isFileSync方法
- \* 更新依赖库的版本
## 0.9.18
- 2022-01-23
## 0.9.18 2022-01-23
- \+ 增加基于数组实现的Queue和Stack两个类
## 0.9.17
- 2022-01-22
## 0.9.17 2022-01-22
- \+ utils增加一组选项默认值方法 stringOpts, intOpts, numberOpts, boolOpts, objectOpts, 当传入参数不是指定类型时,会返回默认值
- \+ utils增加一个方法limitString,超过指定的长度,会自动截取指定的长度
## 0.9.16
- 2022-01-07
## 0.9.16 2022-01-07
- \+ 给common_ret增加assignFrom方法

@@ -71,69 +63,51 @@ - \+ 增加ICommonRetBase的定义

## 0.9.15
- 2022-01-05
## 0.9.15 2022-01-05
- \* 更新依赖库的版本
- \* 优化utils.formatNumber函数
## 0.9.14
- 2022-01-05
## 0.9.14 2022-01-05
- \+ 增加utils.calcMaxPage方法
- \+ 增加utils.roundPageInfo方法
## 0.9.13
- 2021-12-02
## 0.9.13 2021-12-02
- \* 将一些any类型改为unknown类型
## 0.9.12
- 2021-11-29
## 0.9.12 2021-11-29
- \* CNYCurrency类的format方法,增加无千分位分隔符的参数
## 0.9.11
- 2021-11-16
## 0.9.11 2021-11-16
- \* 使用prettier格式化代码
- \* 使用eslint对代码进行检查
## 0.9.10
- 2021-11-15
## 0.9.10 2021-11-15
- \* 修复shortpath的bug
## 0.9.8
- 2021-11-15
## 0.9.8 2021-11-15
- \* 优化日志管理类,增加创建接口和设置猫缺省接口。
## 0.9.7
- 2021-11-12
## 0.9.7 2021-11-12
- \+ 日志增加log方法
- \* 更新部分依赖包
## 0.9.6
- 2021-09-29
## 0.9.6 2021-09-29
- \* 修改common_ret和XCommonRet的设置error的参数类型定义为number
## 0.9.5
- 2021-09-28
## 0.9.5 2021-09-28
- \* 增加类的导出
## 0.9.4
- 2021-09-28
## 0.9.4 2021-09-28
- \* 更新readme.md
## 0.9.3
- 2021-09-28
## 0.9.3 2021-09-28
- \+ 增加一个XCommonRet替代common_ret,主要不是支持泛型
## 0.9.2
- 2021-09-05
## 0.9.2 2021-09-05
- \+ 增加一个BufferWapper类
## 0.9.1
- 2021-09-03
## 0.9.1 2021-09-03
- \* 解决不能引入的问题
## 0.9.0
- 2021-09-02
## 0.9.0 2021-09-02
- \* 将通用库使用typescript改写,改写量比较大,还没有全面的测试,这个版本请慎用,请尽量用0.1.9这个版本。
- \* 增加一些单元测试例子
## 0.1.9
- 2021-05-08
## 0.1.9 2021-05-08
- \* 依赖的lodash库,出现安全警告,在这里更新依赖库
## 0.1.8
- 2021-04-28
## 0.1.8 2021-04-28
- \- 标注httpcall为@deprecated 计划在未来的版中,准备删除这个
- \* 为common_ret增加toString等方法内容。
## 0.1.5 - 0.1.7
- 2020-12-24
## 0.1.7 2020-12-24
- \+ 增加fileExists判断文件或目录是否存在

@@ -143,9 +117,7 @@ - \* 修复makedirs存在的bug

## 0.1.4
- 2020-08-20
## 0.1.4 2020-08-20
- \+ 增加watchRequire注意事项说明
- \* 更新lodash的库
## 0.1.3
- 2020-06-05
## 0.1.3 2020-06-05
- \+ 增加utils.randomInteger,随机整数

@@ -156,17 +128,11 @@ - \+ 增加utils.randomScope,随机范围整数

## 0.1.2
- 2019-07-20
## 0.1.2 2019-07-20
- \* 优化utils.formatPercentage生成成
- \+ 增加utils.roundPercentage,将百分比的值精度控制到 0.0001%
## 0.1.1
- 2019-07-14
## 0.1.1 2019-07-14
- \* 收到github提示,说依赖的lodash有问题,所以这里升级一下 lodash , 还是高级别的
- \* We found a potential security vulnerability in one of your dependencies.
## 0.1.0
- 2019-07-14
## 0.1.0 2019-07-14
- \* fixbug 修复utils.mkdirSync在linux下,使用绝对路径会失败的bug

@@ -176,10 +142,6 @@ - \+ 增加utils.mkdirSyncEx,用于返回具体的错误信息

## 0.0.22
- 2019-07-04
## 0.0.22 2019-07-04
- \* 修改index.d.ts,增加允许默认值参数定义
## 0.0.21
- 2019-06-28
## 0.0.21 2019-06-28
- \* fixbug: 不能正确识别增加CNYCurrency类型的对象

@@ -189,5 +151,3 @@ - \+ 增加CNYCurrency.isCurrency函数,判断是否是CNYCurrency类型

## 0.0.20
- 2019-06-26
## 0.0.20 2019-06-26
- \* 原生成中文货币大写存在问题,重新找了一个新的版本替换 来源:https://www.jb51.net/article/89661.htm

@@ -199,5 +159,3 @@ - \+ 增加多情况货币测试

## 0.0.17
- 2019-06-24
## 0.0.17 2019-06-24
- \* 增加CNYCurrency构造函数默认值0, 如果传入null或undefined也视为0, 测试CNYCurrency 1-100000000之间的值

@@ -207,5 +165,3 @@ - \+ CNYCurrency 增加assign赋值函数

## 0.0.16
- 2019-06-03
## 0.0.16 2019-06-03
- \* 修复生成大写的bug,主要是百==>佰 千==>仟

@@ -245,10 +201,6 @@

## 0.0.15
- 2019-06-01
## 0.0.15 2019-06-01
- \+ 增加CNYCurrency 中文货币类
## 0.0.14
- 2019-04-20
## 0.0.14 2019-04-20
- \* 优化index.d.ts部分注释, 将object变化any, 将[string]变化string[] 这样在typescript的可以正常使用

@@ -258,5 +210,3 @@ - \+ codeUtils增加MD5FromArgs

## 0.0.13
- 2019-03-28
## 0.0.13 2019-03-28
- \* 优化index.d.ts部分注释

@@ -290,15 +240,9 @@ - \+ utils增加options对参数解析的方法 用于node启动后,传入参数的接收处理

## 0.0.12
- 2019-02-18
## 0.0.12 2019-02-18
- \+ 修改readme.md说明
## 0.0.10
- 2019-02-18
## 0.0.10 2019-02-18
- \+ 增加index.d.ts,使用的时候,可以在vscode有代码提示说明了
## 0.0.9
- 2019-02-10
## 0.0.9 2019-02-10
- \+ datetimeUtils 增加diffLocalDays,CalcLocalDaysByUTC,CalcLocalDaysByDate等函数

@@ -308,26 +252,16 @@ - \+ datetimeUtils 修改getNow()的描述错误

## 0.0.8
- 2018-12-21
## 0.0.8 2018-12-21
- \+ datetimeUtils 补全上次未能提交的函数
## 0.0.7
- 2018-12-12
## 0.0.7 2018-12-12
- \+ datetimeUtils 增加了ToLocalTime,ToUTCTime,getTodayZeroTime,isSameDay等函数
## 0.0.6
- 2018-11-01
## 0.0.6 2018-11-01
- \+ 增加了bitUtil对整数位处理函数,可以用于标志位处理
- \+ 增加utils中的ToInteger, ToFloat, JsonParse和mkdirsSync等几个函数
## 0.0.5
- 2018-10-31
## 0.0.5 2018-10-31
- \* 更新依赖包 lodash 4.17.10 -->4.17.11
## 0.0.4
- 2018-10-31
## 0.0.4 2018-10-31
- \+ 增加日志前缀缩短处理

@@ -342,7 +276,3 @@

```
---
## 0.0.3
- 初始版本
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc