Socket
Socket
Sign inDemoInstall

@applitools/utils

Package Overview
Dependencies
Maintainers
30
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/utils - npm Package Compare versions

Comparing version 1.2.14 to 1.3.0

14

dist/general.js

@@ -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;

4

package.json
{
"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;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc