febs-browser
Advanced tools
Comparing version 0.7.19 to 0.7.20
@@ -266,2 +266,3 @@ febs 库是一些常用的工具的合集; | ||
febs.crypt.crc32_file(fileObj, cb) | ||
/** | ||
@@ -298,2 +299,3 @@ * @desc: base64解码. | ||
febs.crypt.sha1( strOrBuffer ) | ||
``` | ||
@@ -300,0 +302,0 @@ |
@@ -876,7 +876,7 @@ ( function( global, factory ) { | ||
one(event, f) { | ||
if (!event) | ||
if (!event || typeof event !== 'string') | ||
throw new Error('need event name'); | ||
var _this = this; | ||
var tt = function(e) { _this.off(event, tt); f(e); }; | ||
var tt = function(e) { _this.off(event, tt); f.bind(this)(e); }; | ||
_this.on(event, tt); | ||
@@ -883,0 +883,0 @@ return this; |
@@ -73,3 +73,3 @@ { | ||
"name": "febs-browser", | ||
"version": "0.7.19" | ||
"version": "0.7.20" | ||
} |
@@ -266,2 +266,3 @@ febs 库是一些常用的工具的合集; | ||
febs.crypt.crc32_file(fileObj, cb) | ||
/** | ||
@@ -298,2 +299,3 @@ * @desc: base64解码. | ||
febs.crypt.sha1( strOrBuffer ) | ||
``` | ||
@@ -300,0 +302,0 @@ |
@@ -208,2 +208,3 @@ // Type definitions for febs | ||
function md5(str: string|Buffer): string; | ||
/** | ||
@@ -214,2 +215,3 @@ * @desc: 计算字符串的sha1值 | ||
function sha1(str: string|Buffer): string; | ||
/** | ||
@@ -478,2 +480,9 @@ * @desc: base64编码. | ||
export function $(n:any):dom; | ||
declare global { | ||
export function $(n:any):dom; | ||
export class $ { | ||
static fn:any; | ||
static extend(...any):$; | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1480590
15254
461