@withonevision/omnihive-core
Advanced tools
Comparing version 6.2.57 to 6.3.0
export declare enum HiveWorkerType { | ||
Cache = "cache", | ||
Config = "config", | ||
Custom = "custom", | ||
Date = "date", | ||
@@ -6,0 +5,0 @@ Database = "database", |
@@ -8,3 +8,2 @@ "use strict"; | ||
HiveWorkerType["Config"] = "config"; | ||
HiveWorkerType["Custom"] = "custom"; | ||
HiveWorkerType["Date"] = "date"; | ||
@@ -11,0 +10,0 @@ HiveWorkerType["Database"] = "database"; |
@@ -12,8 +12,9 @@ export declare class IsHelper { | ||
static isNull: (value: unknown) => value is null; | ||
static isNumber: (value: unknown) => value is number; | ||
static isNullOrUndefined: (value: unknown) => value is null | undefined; | ||
static isNullOrUndefinedOrEmptyStringOrWhitespace: (value: unknown) => value is "" | null | undefined; | ||
static isNumber: (value: unknown) => value is number; | ||
static isObject: (value: unknown) => value is object; | ||
static isPlainObject: <T = unknown>(value: unknown) => value is Record<string | number | symbol, T>; | ||
static isString: (value: unknown) => value is string; | ||
static isTruthy: (value: unknown) => boolean; | ||
static isUndefined: (value: unknown) => value is undefined; | ||
@@ -20,0 +21,0 @@ static isWhiteSpaceString: (value: unknown) => value is string; |
@@ -24,3 +24,8 @@ "use strict"; | ||
IsHelper.isEmptyString = (value) => { | ||
return IsHelper.isString(value) && String(value).length === 0; | ||
try { | ||
return IsHelper.isString(value) && String(value).length === 0; | ||
} | ||
catch (_a) { | ||
return false; | ||
} | ||
}; | ||
@@ -43,8 +48,2 @@ IsHelper.isEmptyStringOrWhitespace = (value) => { | ||
}; | ||
IsHelper.isNullOrUndefined = (value) => { | ||
return IsHelper.isNull(value) || IsHelper.isUndefined(value); | ||
}; | ||
IsHelper.isNullOrUndefinedOrEmptyStringOrWhitespace = (value) => { | ||
return IsHelper.isNullOrUndefined(value) || IsHelper.isEmptyStringOrWhitespace(value); | ||
}; | ||
IsHelper.isNumber = (value) => { | ||
@@ -63,2 +62,8 @@ if (typeof value === "number") { | ||
}; | ||
IsHelper.isNullOrUndefined = (value) => { | ||
return IsHelper.isNull(value) || IsHelper.isUndefined(value); | ||
}; | ||
IsHelper.isNullOrUndefinedOrEmptyStringOrWhitespace = (value) => { | ||
return IsHelper.isNullOrUndefined(value) || IsHelper.isEmptyStringOrWhitespace(value); | ||
}; | ||
IsHelper.isObject = (value) => { | ||
@@ -77,2 +82,5 @@ return !IsHelper.isNull(value) && (typeof value === "object" || IsHelper.isFunction(value)); | ||
}; | ||
IsHelper.isTruthy = (value) => { | ||
return Boolean(value); | ||
}; | ||
IsHelper.isUndefined = (value) => { | ||
@@ -82,4 +90,9 @@ return typeof value === "undefined" || value === undefined; | ||
IsHelper.isWhiteSpaceString = (value) => { | ||
return IsHelper.isString(value) && !IsHelper.isEmptyString(value) && !/\S/.test(String(value)); | ||
try { | ||
return IsHelper.isString(value) && !/\S/.test(String(value)); | ||
} | ||
catch (_a) { | ||
return false; | ||
} | ||
}; | ||
//# sourceMappingURL=IsHelper.js.map |
@@ -6,3 +6,4 @@ export declare class AdminResponse<T = {}> { | ||
requestError?: string | undefined; | ||
constructor(); | ||
} | ||
//# sourceMappingURL=AdminResponse.d.ts.map |
@@ -6,6 +6,6 @@ "use strict"; | ||
constructor() { | ||
this.data = undefined; | ||
this.serverGroupId = ""; | ||
this.requestComplete = true; | ||
this.requestError = undefined; | ||
this.data = undefined; | ||
} | ||
@@ -12,0 +12,0 @@ } |
@@ -5,10 +5,4 @@ "use strict"; | ||
class GraphContext { | ||
constructor() { | ||
this.access = undefined; | ||
this.auth = undefined; | ||
this.cache = undefined; | ||
this.cacheSeconds = undefined; | ||
} | ||
} | ||
exports.GraphContext = GraphContext; | ||
//# sourceMappingURL=GraphContext.js.map |
@@ -7,3 +7,3 @@ "use strict"; | ||
constructor() { | ||
this.type = HiveWorkerType_1.HiveWorkerType.Custom; | ||
this.type = HiveWorkerType_1.HiveWorkerType.User; | ||
this.name = ""; | ||
@@ -10,0 +10,0 @@ this.package = ""; |
{ | ||
"name": "@withonevision/omnihive-core", | ||
"version": "6.2.57", | ||
"version": "6.3.0", | ||
"description": "OmniHive Core", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
106913
1316
1