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 1.0.6 to 1.0.7

11

dist/constant.d.ts

@@ -42,1 +42,12 @@ /** 内存的容量常量定义 */

}
/** 是或否 */
export declare enum YesOrNo {
yes = 1,
no = 0
}
/**
* 选项类型
*/
export declare type TOptions<T> = {
[P in keyof T]?: NonNullable<any>;
};

8

dist/constant.js
"use strict";
// 这里定义一些必要的常量
Object.defineProperty(exports, "__esModule", { value: true });
exports.DatetimeConstant = exports.error_common = exports.MemorySize = void 0;
exports.YesOrNo = exports.DatetimeConstant = exports.error_common = exports.MemorySize = void 0;
/** 内存的容量常量定义 */

@@ -49,1 +49,7 @@ var MemorySize;

})(DatetimeConstant = exports.DatetimeConstant || (exports.DatetimeConstant = {}));
/** 是或否 */
var YesOrNo;
(function (YesOrNo) {
YesOrNo[YesOrNo["yes"] = 1] = "yes";
YesOrNo[YesOrNo["no"] = 0] = "no";
})(YesOrNo = exports.YesOrNo || (exports.YesOrNo = {}));

@@ -46,1 +46,15 @@ // 这里定义一些必要的常量

}
/** 是或否 */
export enum YesOrNo {
yes = 1,
no = 0
}
/**
* 选项类型
*/
export declare type TOptions<T> = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[P in keyof T]?: NonNullable<any>;
};

2

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

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

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

# 版本变更说明
## 1.0.7 2022-07-12
- 增加enum YesOrNo枚举
- 增加TOptions<T>类型
## 1.0.6 2022-07-11

@@ -36,0 +39,0 @@ - 增加MD5FromStringList,MD5FromBufferList,MD5FromBuffer三个方法

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