@loadsmart/utils-string
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -1,12 +0,6 @@ | ||
import { objectFromQueryString } from './objectFromQueryString' | ||
import { queryStringFromObject } from './queryStringFromObject' | ||
import { toCapitalizeFirstLetter } from './toCapitalizeFirstLetter' | ||
import { toLocaleCapitalizeFirstLetter } from './toLocaleCapitalizeFirstLetter' | ||
import isBlank from './isBlank' | ||
export { | ||
isBlank, | ||
objectFromQueryString, | ||
queryStringFromObject, | ||
toLocaleCapitalizeFirstLetter, | ||
toCapitalizeFirstLetter, | ||
} | ||
import { objectFromQueryString } from './objectFromQueryString'; | ||
import { queryStringFromObject } from './queryStringFromObject'; | ||
import { toCapitalizeFirstLetter } from './toCapitalizeFirstLetter'; | ||
import { toLocaleCapitalizeFirstLetter } from './toLocaleCapitalizeFirstLetter'; | ||
import isBlank from './isBlank'; | ||
export { isBlank, objectFromQueryString, queryStringFromObject, toLocaleCapitalizeFirstLetter, toCapitalizeFirstLetter, }; |
@@ -1,34 +0,14 @@ | ||
'use strict' | ||
Object.defineProperty(exports, '__esModule', { value: true }) | ||
exports.toCapitalizeFirstLetter = exports.toLocaleCapitalizeFirstLetter = exports.queryStringFromObject = exports.objectFromQueryString = exports.isBlank = void 0 | ||
var objectFromQueryString_1 = require('./objectFromQueryString') | ||
Object.defineProperty(exports, 'objectFromQueryString', { | ||
enumerable: true, | ||
get: function () { | ||
return objectFromQueryString_1.objectFromQueryString | ||
}, | ||
}) | ||
var queryStringFromObject_1 = require('./queryStringFromObject') | ||
Object.defineProperty(exports, 'queryStringFromObject', { | ||
enumerable: true, | ||
get: function () { | ||
return queryStringFromObject_1.queryStringFromObject | ||
}, | ||
}) | ||
var toCapitalizeFirstLetter_1 = require('./toCapitalizeFirstLetter') | ||
Object.defineProperty(exports, 'toCapitalizeFirstLetter', { | ||
enumerable: true, | ||
get: function () { | ||
return toCapitalizeFirstLetter_1.toCapitalizeFirstLetter | ||
}, | ||
}) | ||
var toLocaleCapitalizeFirstLetter_1 = require('./toLocaleCapitalizeFirstLetter') | ||
Object.defineProperty(exports, 'toLocaleCapitalizeFirstLetter', { | ||
enumerable: true, | ||
get: function () { | ||
return toLocaleCapitalizeFirstLetter_1.toLocaleCapitalizeFirstLetter | ||
}, | ||
}) | ||
var isBlank_1 = require('./isBlank') | ||
exports.isBlank = isBlank_1.default | ||
//# sourceMappingURL=index.js.map | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toCapitalizeFirstLetter = exports.toLocaleCapitalizeFirstLetter = exports.queryStringFromObject = exports.objectFromQueryString = exports.isBlank = void 0; | ||
var objectFromQueryString_1 = require("./objectFromQueryString"); | ||
Object.defineProperty(exports, "objectFromQueryString", { enumerable: true, get: function () { return objectFromQueryString_1.objectFromQueryString; } }); | ||
var queryStringFromObject_1 = require("./queryStringFromObject"); | ||
Object.defineProperty(exports, "queryStringFromObject", { enumerable: true, get: function () { return queryStringFromObject_1.queryStringFromObject; } }); | ||
var toCapitalizeFirstLetter_1 = require("./toCapitalizeFirstLetter"); | ||
Object.defineProperty(exports, "toCapitalizeFirstLetter", { enumerable: true, get: function () { return toCapitalizeFirstLetter_1.toCapitalizeFirstLetter; } }); | ||
var toLocaleCapitalizeFirstLetter_1 = require("./toLocaleCapitalizeFirstLetter"); | ||
Object.defineProperty(exports, "toLocaleCapitalizeFirstLetter", { enumerable: true, get: function () { return toLocaleCapitalizeFirstLetter_1.toLocaleCapitalizeFirstLetter; } }); | ||
var isBlank_1 = require("./isBlank"); | ||
exports.isBlank = isBlank_1.default; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
export default function isBlank(text: string): boolean | ||
export default function isBlank(text: string): boolean; |
@@ -1,11 +0,11 @@ | ||
'use strict' | ||
Object.defineProperty(exports, '__esModule', { value: true }) | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function isBlank(text) { | ||
if (text == null) { | ||
return true | ||
} | ||
var trimmedText = String(text).trim() | ||
return trimmedText == '' | ||
if (text == null) { | ||
return true; | ||
} | ||
var trimmedText = String(text).trim(); | ||
return trimmedText == ''; | ||
} | ||
exports.default = isBlank | ||
//# sourceMappingURL=isBlank.js.map | ||
exports.default = isBlank; | ||
//# sourceMappingURL=isBlank.js.map |
{ | ||
"name": "@loadsmart/utils-string", | ||
"private": false, | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "useful functions for manipulating string", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "2836a552af751c2f10ca6b8affc9f68cdd956b3b" | ||
"gitHead": "ba02bc5cb05a0ac4a16f14d72fb539d03d1df3aa" | ||
} |
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
10705
95