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.1.3 to 0.1.4

0

example/tessss.js

@@ -0,0 +0,0 @@ console.log("aaaaa");

@@ -0,0 +0,0 @@ let {datetimeUtils}= require("../lib/datetimeUtils");

@@ -0,0 +0,0 @@ let {utils} = require("../lib/utils");

exports = module.exports = require('./lib');

@@ -0,0 +0,0 @@ const MAX_BIT_SITE = 30; //最大标志位 如果超过30位,就会出现负数,所以在这里只到30位

@@ -0,0 +0,0 @@ //这里提供一些编解码的功能函数

@@ -0,0 +0,0 @@ //默认的错误码

@@ -0,0 +0,0 @@ let {error_common, error_utils} = require("./common_error");

@@ -0,0 +0,0 @@ let http = require("http");

@@ -0,0 +0,0 @@ let path = require("path");

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

3

lib/watchrequire.js

@@ -8,4 +8,5 @@ const path = require("path");

* 这个主要是用于动态加载
* @notice 最终于文件名是由path+file组成,对于path不能使用相对路径
* @param {function} paramCallback 文件有变化,加载后的回调函数
* @param {string} paramPath 环境所在的路径
* @param {string} paramPath 环境所在的路径 这里一定要填写绝对路径,否则会侦听不了文件的变化
* @param {string} paramFile 要watch的文件名

@@ -12,0 +13,0 @@ * @param {boolean} paramChangeCallback 有变化才回调

{
"name": "xmcommon",
"version": "0.1.3",
"version": "0.1.4",
"description": "javascript common lib for es6",

@@ -27,3 +27,3 @@ "main": "index.js",

"dependencies": {
"lodash": "^4.17.15"
"lodash": "^4.17.20"
},

@@ -30,0 +30,0 @@ "bugs": {

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

## 0.1.4
- 2020-08-20
- \+ 增加watchRequire注意事项说明
- \* 更新lodash的库
## 0.1.3

@@ -36,0 +41,0 @@ - 2020-06-05

@@ -1042,10 +1042,12 @@ // Type definitions for xmcommon 0.0

}
/**
* watch指定的js文件,并加载回调
* 这个主要是用于动态加载
* @param paramCallback 文件有变化,加载后的回调函数
* @param paramPath 环境所在的路径
* @param paramFile 要watch的文件名
* @param paramChangeCallback 有变化才回调
*/
/**
* watch指定的js文件,并加载回调
* 这个主要是用于动态加载
* @notice 最终于文件名是由path+file组成,对于path不能使用相对路径
* @param {function} paramCallback 文件有变化,加载后的回调函数
* @param {string} paramPath 环境所在的路径 这里一定要填写绝对路径,否则会侦听不了文件的变化
* @param {string} paramFile 要watch的文件名
* @param {boolean} paramChangeCallback 有变化才回调
* @return {void}
*/
function watchRequire(paramCallback:(data:any)=>void, paramPath:string, paramFile:string, paramChangeCallback?:boolean):void;

@@ -1056,7 +1058,7 @@

/** 人民币前缀 */
prefix? : string;
prefix? : string;
/** 负数前缀 */
negative?: string;
negative?: string;
/** 后缀:整 */
zheng? : string;
zheng? : string;
}

@@ -1063,0 +1065,0 @@ /**

Sorry, the diff of this file is not supported yet

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