Comparing version 0.1.7 to 0.1.8
/* global Blob File FormData $ */ | ||
var crypto = require('crypto') | ||
// var util = require('util') | ||
@@ -286,2 +287,3 @@ var tools = { | ||
inherits: function (destination, source) { | ||
// util.inherits(destination, source) | ||
Object.getOwnPropertyNames(source).forEach((property) => { | ||
@@ -458,2 +460,8 @@ destination[property] = source[property] | ||
return str.substr(0, 1).toUpperCase() + str.substr(1).toLowerCase() | ||
}, | ||
prependMissing: function (prefix, str) { | ||
if (str.indexOf(prefix) === 0) { | ||
return str | ||
} | ||
return prefix + str | ||
} | ||
@@ -460,0 +468,0 @@ }, |
{ | ||
"name": "a-toolbox", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "javascript lightweight basic tools", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
27675
748