Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

devexpress-utils

Package Overview
Dependencies
Maintainers
37
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devexpress-utils - npm Package Compare versions

Comparing version 1.0.1-alpha-004 to 1.0.1-alpha-005

lib/class/batch-updatable.d.ts

13

lib/pdf/helper-frame.d.ts

@@ -0,1 +1,14 @@

export declare class PdfHelperFrame {
private readonly container;
private readonly frameClassName;
private helperFrame;
private helperFrameName;
constructor(container: HTMLElement, frameClassName: string);
dispose(): void;
showPrintDialog(resourceUrl: string): void;
private getHelperFrame;
private removeHelperFrame;
private createHelperFrame;
private getNewName;
}
//# sourceMappingURL=helper-frame.d.ts.map
export declare function isDefined<T>(value: T | undefined | null): value is T;
export declare function boolToInt(value: boolean): number;
export declare function boolToString(value: boolean): string;
export declare function isNumber(obj: unknown): obj is number;
export declare function isString(obj: unknown): obj is string;
export declare function isEven(num: number): boolean;
export declare function isOdd(num: number): boolean;
export declare function numberToStringBin(num: number, minLength?: number): string;
export declare function numberToStringHex(num: number, minLength?: number): string;
//# sourceMappingURL=common.d.ts.map

37

lib/utils/common.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isDefined = void 0;
exports.numberToStringHex = exports.numberToStringBin = exports.isOdd = exports.isEven = exports.isString = exports.isNumber = exports.boolToString = exports.boolToInt = exports.isDefined = void 0;
var string_1 = require("./string");
function isDefined(value) {

@@ -8,1 +9,35 @@ return value !== undefined && value !== null;

exports.isDefined = isDefined;
function boolToInt(value) {
return value ? 1 : 0;
}
exports.boolToInt = boolToInt;
function boolToString(value) {
return value ? '1' : '0';
}
exports.boolToString = boolToString;
function isNumber(obj) {
return typeof obj === 'number';
}
exports.isNumber = isNumber;
function isString(obj) {
return typeof obj === 'string';
}
exports.isString = isString;
function isEven(num) {
return (num % 2) !== 0;
}
exports.isEven = isEven;
function isOdd(num) {
return (num % 2) === 0;
}
exports.isOdd = isOdd;
function numberToStringBin(num, minLength) {
if (minLength === void 0) { minLength = 0; }
return string_1.StringUtils.padLeft(num.toString(2), minLength, '0');
}
exports.numberToStringBin = numberToStringBin;
function numberToStringHex(num, minLength) {
if (minLength === void 0) { minLength = 0; }
return string_1.StringUtils.padLeft(num.toString(16), minLength, '0');
}
exports.numberToStringHex = numberToStringHex;
export declare class StringUtils {
static isAlpha(ch: string): boolean;
static isDigit(ch: string): boolean;
static stringHashCode(str: string): number;

@@ -3,0 +5,0 @@ static endsAt(str: string, template: string): boolean;

@@ -7,2 +7,8 @@ "use strict";

}
StringUtils.isAlpha = function (ch) {
return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z');
};
StringUtils.isDigit = function (ch) {
return ch >= '0' && ch <= '9';
};
StringUtils.stringHashCode = function (str) {

@@ -9,0 +15,0 @@ var hash = 0;

2

package.json
{
"name": "devexpress-utils",
"version": "1.0.1-alpha-004",
"version": "1.0.1-alpha-005",
"description": "DevExpress utils",

@@ -5,0 +5,0 @@ "author": "DevExpress Inc.",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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