@applitools/utils
Advanced tools
Comparing version 1.2.14 to 1.3.0
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.pluralize = exports.toString = exports.toJSON = exports.sleep = exports.jwtDecode = exports.guid = exports.getEnvValue = void 0; | ||
exports.isDefined = exports.isNotDefined = exports.pluralize = exports.toString = exports.toJSON = exports.sleep = exports.jwtDecode = exports.guid = exports.getEnvValue = void 0; | ||
const types = __importStar(require("./types")); | ||
@@ -85,1 +85,13 @@ function getEnvValue(name, type) { | ||
exports.pluralize = pluralize; | ||
function isNotDefined(value) { | ||
return (value === null || | ||
typeof value === 'undefined' || | ||
(types.isString(value) | ||
? !value.length || value.toLowerCase() === 'null' || value.toLowerCase() === 'undefined' | ||
: false)); | ||
} | ||
exports.isNotDefined = isNotDefined; | ||
function isDefined(value) { | ||
return !isNotDefined(value); | ||
} | ||
exports.isDefined = isDefined; |
{ | ||
"name": "@applitools/utils", | ||
"version": "1.2.14", | ||
"version": "1.3.0", | ||
"keywords": [ | ||
@@ -53,3 +53,3 @@ "applitools", | ||
"devDependencies": { | ||
"@applitools/bongo": "^2.0.2", | ||
"@applitools/bongo": "^2.0.3", | ||
"@types/node": "^14.14.7", | ||
@@ -56,0 +56,0 @@ "@typescript-eslint/eslint-plugin": "^4.7.0", |
@@ -22,1 +22,3 @@ export declare function getEnvValue<T extends 'boolean' | 'number' | 'string' = 'string'>(name: string, type?: T): T extends 'boolean' ? boolean : T extends 'number' ? number : string; | ||
export declare function pluralize(object: [] | number, config?: [manyCase: string, singleCase: string]): string; | ||
export declare function isNotDefined(value: any): boolean; | ||
export declare function isDefined(value: any): boolean; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
52455
823
1