Socket
Socket
Sign inDemoInstall

xmcommon

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xmcommon - npm Package Compare versions

Comparing version 0.9.14 to 0.9.15

2

dist/utils.js

@@ -524,3 +524,3 @@ "use strict";

for (let f = 0; f < fmt.length; f++) {
switch (fmt.substr(f, 1)) {
switch (fmt.substring(f, f + 1)) {
case '#':

@@ -527,0 +527,0 @@ if (i < str.length) {

@@ -164,3 +164,3 @@ import { error_utils } from './common_error';

*/
public setOK(data : unknown = null): common_ret {
public setOK(data: unknown = null): common_ret {
this.m_err = error_common.ERR_OK;

@@ -389,3 +389,3 @@ this.m_data = data;

*/
public setOK(data:T | null= null): XCommonRet<T> {
public setOK(data: T | null = null): XCommonRet<T> {
this.m_err = error_common.ERR_OK;

@@ -392,0 +392,0 @@ this.m_data = data;

@@ -525,6 +525,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

for (let f = fmt.length - 1; f >= 0; f--) {
switch (fmt.substring(f, f+1)) {
switch (fmt.substring(f, f + 1)) {
case '#':
if (i >= 0) {
retString = str.substring(i, i+1) + retString;
retString = str.substring(i, i + 1) + retString;
i--;

@@ -535,6 +535,5 @@ }

if (i >= 0) {
retString = str.substring(i, 1+1) + retString;
retString = str.substring(i, 1 + 1) + retString;
i--;
}
else retString = '0' + retString;
} else retString = '0' + retString;
break;

@@ -553,3 +552,3 @@ case ',':

for (; i >= 0; i--) {
retString = str.substring(i, i+1) + retString;
retString = str.substring(i, i + 1) + retString;
if (i > 0 && (l - i) % 3 === 0) retString = ',' + retString;

@@ -566,6 +565,6 @@ }

for (let f = 0; f < fmt.length; f++) {
switch (fmt.substr(f, 1)) {
switch (fmt.substring(f, f+1)) {
case '#':
if (i < str.length) {
retString += str.substring(i, i+1);
retString += str.substring(i, i + 1);
i++;

@@ -576,6 +575,5 @@ }

if (i < str.length) {
retString += str.substring(i, i+1);
retString += str.substring(i, i + 1);
i++;
}
else retString += '0';
} else retString += '0';
break;

@@ -582,0 +580,0 @@ default:

{
"name": "xmcommon",
"version": "0.9.14",
"version": "0.9.15",
"description": "一个基于javascript的常用功能扩展库! 使用TypeScript重构!",

@@ -40,10 +40,10 @@ "main": "./dist/index.js",

"devDependencies": {
"@types/lodash": "^4.14.177",
"@types/lodash": "^4.14.178",
"@types/node": "^8.10.66",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"eslint": "^8.6.0",
"eslint-config-google": "^0.14.0",
"prettier": "^2.5.0",
"prettier-eslint": "^8.2.2",
"prettier": "^2.5.1",
"prettier-eslint": "^13.0.0",
"typescript-tslint-plugin": "^1.0.1"

@@ -50,0 +50,0 @@ },

@@ -40,2 +40,6 @@ # xmcommon

## 0.9.15
- 2022-01-05
- \* 更新依赖库的版本
- \* 优化utils.formatNumber函数
## 0.9.14

@@ -42,0 +46,0 @@ - 2022-01-05

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc