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 0.9.5 to 0.9.6

13

dist/common_ret.d.ts

@@ -1,2 +0,1 @@

import { error_common } from './constant';
/** 通用返回接口 */

@@ -69,6 +68,6 @@ export interface ICommonRetData<T = any> {

/**
*
* @param err 置错误码
* 设置错误代码
* @param paramError 置错误码
*/
setErrorCode(err?: error_common): void;
setErrorCode(paramError?: number): void;
/**

@@ -192,8 +191,8 @@ * 取携带数据

get err(): number;
set err(paramErr: number);
set err(paramError: number);
/**
*
* @param err 置错误码
* @param paramError 置错误码
*/
setErrorCode(err?: error_common): void;
setErrorCode(paramError?: number): void;
/**

@@ -200,0 +199,0 @@ * 取携带数据

@@ -101,7 +101,7 @@ "use strict";

/**
*
* @param err 置错误码
* 设置错误代码
* @param paramError 置错误码
*/
setErrorCode(err = constant_1.error_common.ERR_OK) {
this.m_err = err;
setErrorCode(paramError = constant_1.error_common.ERR_OK) {
this.m_err = paramError;
}

@@ -318,11 +318,11 @@ /**

}
set err(paramErr) {
this.m_err = paramErr;
set err(paramError) {
this.m_err = paramError;
}
/**
*
* @param err 置错误码
* @param paramError 置错误码
*/
setErrorCode(err = constant_1.error_common.ERR_OK) {
this.m_err = err;
setErrorCode(paramError = constant_1.error_common.ERR_OK) {
this.m_err = paramError;
}

@@ -329,0 +329,0 @@ /**

@@ -116,7 +116,7 @@ import { error_utils } from './common_error';

/**
*
* @param err 置错误码
* 设置错误代码
* @param paramError 置错误码
*/
public setErrorCode(err = error_common.ERR_OK): void {
this.m_err = err;
public setErrorCode(paramError: number = error_common.ERR_OK): void {
this.m_err = paramError;
}

@@ -338,11 +338,11 @@

public set err(paramErr: number) {
this.m_err = paramErr;
public set err(paramError: number) {
this.m_err = paramError;
}
/**
*
* @param err 置错误码
* @param paramError 置错误码
*/
public setErrorCode(err = error_common.ERR_OK): void {
this.m_err = err;
public setErrorCode(paramError: number = error_common.ERR_OK): void {
this.m_err = paramError;
}

@@ -349,0 +349,0 @@

{
"name": "xmcommon",
"version": "0.9.5",
"version": "0.9.6",
"description": "javascript common lib for es6",

@@ -38,6 +38,6 @@ "main": "./dist/index.js",

"devDependencies": {
"@types/lodash": "^4.14.172",
"@types/node": "^10.17.59",
"@typescript-eslint/eslint-plugin": "^4.30.0",
"@typescript-eslint/parser": "^4.30.0",
"@types/lodash": "^4.14.175",
"@types/node": "^8.10.66",
"@typescript-eslint/eslint-plugin": "^4.32.0",
"@typescript-eslint/parser": "^4.32.0",
"eslint": "^7.32.0",

@@ -44,0 +44,0 @@ "eslint-config-google": "^0.14.0",

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

## 0.9.6
- 2021-09-29
- \* 修改common_ret和XCommonRet的设置error的参数类型定义为number
## 0.9.5

@@ -42,0 +45,0 @@ - 2021-09-28

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc