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

@devexpress/utils

Package Overview
Dependencies
Maintainers
34
Versions
40
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.2.1 to 1.3.0

1

lib/browser.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Browser = void 0;
var Browser = (function () {

@@ -5,0 +4,0 @@ function Browser() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EmptyBatchUpdatableObject = exports.BatchUpdatableObject = void 0;
var BatchUpdatableObject = (function () {

@@ -5,0 +4,0 @@ function BatchUpdatableObject() {

7

lib/class/chunked-text.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChunkedText = void 0;
var ChunkedText = (function () {

@@ -17,3 +16,3 @@ function ChunkedText(text, maxChunkSize) {

},
enumerable: false,
enumerable: true,
configurable: true

@@ -25,3 +24,3 @@ });

},
enumerable: false,
enumerable: true,
configurable: true

@@ -33,3 +32,3 @@ });

},
enumerable: false,
enumerable: true,
configurable: true

@@ -36,0 +35,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DelayedActionManager = void 0;
var DelayedActionManager = (function () {

@@ -13,3 +12,3 @@ function DelayedActionManager(action) {

},
enumerable: false,
enumerable: true,
configurable: true

@@ -16,0 +15,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DomEventHandlersHolder = void 0;
var touch_1 = require("../utils/touch");

@@ -5,0 +4,0 @@ var DomEventHandler = (function () {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Flag = void 0;
var Flag = (function () {

@@ -5,0 +4,0 @@ function Flag(initValue) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Initialize = exports.Initializer = void 0;
var Initializer = (function () {

@@ -5,0 +4,0 @@ function Initializer() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExtendedMinMax = exports.ExtendedMax = exports.ExtendedMin = exports.MinMaxNumber = exports.MinMax = void 0;
var tslib_1 = require("tslib");

@@ -22,3 +21,3 @@ var MinMax = (function () {

},
enumerable: false,
enumerable: true,
configurable: true

@@ -25,0 +24,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrderedList = void 0;
var search_1 = require("../utils/search");

@@ -5,0 +4,0 @@ var OrderedList = (function () {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Pair = void 0;
var Pair = (function () {

@@ -5,0 +4,0 @@ function Pair(first, second) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Stack = void 0;
var Stack = (function () {

@@ -28,3 +27,3 @@ function Stack() {

},
enumerable: false,
enumerable: true,
configurable: true

@@ -31,0 +30,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnitConverter = void 0;
var UnitConverter = (function () {

@@ -5,0 +4,0 @@ function UnitConverter() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Int32Constants = exports.Constants = void 0;
var Constants = (function () {

@@ -5,0 +4,0 @@ function Constants() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Errors = void 0;
var Errors = (function () {

@@ -5,0 +4,0 @@ function Errors() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DateTimeFieldFormatter = void 0;
var tslib_1 = require("tslib");

@@ -5,0 +4,0 @@ var DateTimeFieldFormatter = (function () {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DateUtils = void 0;
var DateUtils = (function () {

@@ -5,0 +4,0 @@ function DateUtils() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DateFormatter = void 0;
var string_1 = require("../utils/map/string");

@@ -5,0 +4,0 @@ var string_2 = require("../utils/string");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SimpleFormattersManager = void 0;
var tslib_1 = require("tslib");

@@ -5,0 +4,0 @@ var date_1 = require("./date");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NumberFormatter = void 0;
var NumberFormatter = (function () {

@@ -5,0 +4,0 @@ function NumberFormatter(options) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringFormatter = void 0;
var date_1 = require("./date");

@@ -5,0 +4,0 @@ var date_utils_1 = require("./date-utils");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LineEquation = void 0;
var math_1 = require("../utils/math");

@@ -5,0 +4,0 @@ var point_1 = require("./point");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Margins = void 0;
var tslib_1 = require("tslib");

@@ -5,0 +4,0 @@ var offsets_1 = require("./offsets");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Metrics = void 0;
var Metrics = (function () {

@@ -5,0 +4,0 @@ function Metrics() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Offsets = void 0;
var Offsets = (function () {

@@ -18,3 +17,3 @@ function Offsets(left, right, top, bottom) {

},
enumerable: false,
enumerable: true,
configurable: true

@@ -26,3 +25,3 @@ });

},
enumerable: false,
enumerable: true,
configurable: true

@@ -29,0 +28,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Paddings = void 0;
var tslib_1 = require("tslib");

@@ -5,0 +4,0 @@ var offsets_1 = require("./offsets");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Point = void 0;
var Point = (function () {

@@ -5,0 +4,0 @@ function Point(x, y) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CollisionResult = exports.Polygon = void 0;
var tslib_1 = require("tslib");

@@ -18,3 +17,3 @@ var point_1 = require("./point");

},
enumerable: false,
enumerable: true,
configurable: true

@@ -21,0 +20,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PolygonalChain = void 0;
var list_1 = require("../utils/list");

@@ -23,3 +22,3 @@ var point_1 = require("./point");

},
enumerable: false,
enumerable: true,
configurable: true

@@ -26,0 +25,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RectangleDeviation = exports.HitTestDeviation = exports.Rectangle = void 0;
var flag_1 = require("../class/flag");

@@ -20,3 +19,3 @@ var algorithms_1 = require("../intervals/algorithms");

},
enumerable: false,
enumerable: true,
configurable: true

@@ -28,3 +27,3 @@ });

},
enumerable: false,
enumerable: true,
configurable: true

@@ -36,3 +35,3 @@ });

},
enumerable: false,
enumerable: true,
configurable: true

@@ -39,0 +38,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Segment = void 0;
var math_1 = require("../utils/math");

@@ -17,3 +16,3 @@ var metrics_1 = require("./metrics");

},
enumerable: false,
enumerable: true,
configurable: true

@@ -25,3 +24,3 @@ });

},
enumerable: false,
enumerable: true,
configurable: true

@@ -33,3 +32,3 @@ });

},
enumerable: false,
enumerable: true,
configurable: true

@@ -41,3 +40,3 @@ });

},
enumerable: false,
enumerable: true,
configurable: true

@@ -44,0 +43,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Size = void 0;
var Size = (function () {

@@ -5,0 +4,0 @@ function Size(width, height) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Vector = void 0;
var Vector = (function () {

@@ -15,3 +14,3 @@ function Vector(x, y) {

},
enumerable: false,
enumerable: true,
configurable: true

@@ -42,3 +41,3 @@ });

},
enumerable: false,
enumerable: true,
configurable: true

@@ -50,3 +49,3 @@ });

},
enumerable: false,
enumerable: true,
configurable: true

@@ -53,0 +52,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IntervalAlgorithms = void 0;
var list_1 = require("../utils/list");

@@ -5,0 +4,0 @@ var search_1 = require("../utils/search");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BoundaryInterval = void 0;
var tslib_1 = require("tslib");

@@ -21,3 +20,3 @@ var mutable_1 = require("./mutable");

},
enumerable: false,
enumerable: true,
configurable: true

@@ -29,3 +28,3 @@ });

},
enumerable: false,
enumerable: true,
configurable: true

@@ -32,0 +31,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConstInterval = void 0;
var ConstInterval = (function () {

@@ -11,3 +10,3 @@ function ConstInterval() {

},
enumerable: false,
enumerable: true,
configurable: true

@@ -14,0 +13,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FixedInterval = void 0;
var tslib_1 = require("tslib");

@@ -21,3 +20,3 @@ var mutable_1 = require("./mutable");

},
enumerable: false,
enumerable: true,
configurable: true

@@ -29,3 +28,3 @@ });

},
enumerable: false,
enumerable: true,
configurable: true

@@ -32,0 +31,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MutableInterval = void 0;
var tslib_1 = require("tslib");

@@ -5,0 +4,0 @@ var const_1 = require("./const");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SparseIntervalsCollector = void 0;
var intervals_1 = require("./intervals");

@@ -5,0 +4,0 @@ var SparseIntervalsCollector = (function () {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SparseIntervals = void 0;
var iterator_1 = require("./iterator");

@@ -22,3 +21,3 @@ var objects_iterator_1 = require("./objects-iterator");

},
enumerable: false,
enumerable: true,
configurable: true

@@ -30,3 +29,3 @@ });

},
enumerable: false,
enumerable: true,
configurable: true

@@ -33,0 +32,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SparseIntervalsIterator = void 0;
var SparseIntervalsIterator = (function () {

@@ -13,3 +12,3 @@ function SparseIntervalsIterator(sparseIntervals) {

},
enumerable: false,
enumerable: true,
configurable: true

@@ -16,0 +15,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SparseIntervalsMapCollector = void 0;
var map_iterator_1 = require("./map-iterator");

@@ -5,0 +4,0 @@ var SparseIntervalsMapCollector = (function () {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SparseIntervalsMapIterator = void 0;
var intervals_1 = require("./intervals");

@@ -15,3 +14,3 @@ var SparseIntervalsMapIterator = (function () {

},
enumerable: false,
enumerable: true,
configurable: true

@@ -18,0 +17,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SparseObjectsIterator = void 0;
var tslib_1 = require("tslib");

@@ -5,0 +4,0 @@ var iterator_1 = require("./iterator");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PdfHelperFrame = void 0;
var browser_1 = require("../browser");

@@ -5,0 +4,0 @@ var dom_1 = require("../utils/dom");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PdfPluginHelper = void 0;
var browser_1 = require("../browser");

@@ -5,0 +4,0 @@ var PdfPluginHelper = (function () {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SequenceComparator = exports.SesElem = exports.SesType = void 0;
var SesType;

@@ -5,0 +4,0 @@ (function (SesType) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringSequenceComparatorItertor = exports.StringSesElem = exports.StringSequenceComparator = void 0;
var common_1 = require("./common");

@@ -146,3 +145,3 @@ var StringSequenceComparator = (function () {

},
enumerable: false,
enumerable: true,
configurable: true

@@ -149,0 +148,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AttrUtils = void 0;
var browser_1 = require("../browser");

@@ -5,0 +4,0 @@ var AttrUtils = (function () {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Base64Utils = void 0;
var file_1 = require("./file");
var mime_type_1 = require("./mime-type");

@@ -41,3 +41,3 @@ var Base64Utils = (function () {

var data = Base64Utils.getUint8Array(base64);
return new File([data], fileName, options);
return file_1.FileUtils.createFile([data], fileName, options);
};

@@ -44,0 +44,0 @@ Base64Utils.getMimeTypeAsString = function (base64) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ColorUtils = void 0;
var string_1 = require("./string");

@@ -5,0 +4,0 @@ var ColorUtils = (function () {

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

@@ -5,0 +4,0 @@ function isDefined(value) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Equals = exports.Comparers = void 0;
var Comparers = (function () {

@@ -5,0 +4,0 @@ function Comparers() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataTransferUtils = void 0;
var browser_1 = require("../browser");

@@ -5,0 +4,0 @@ var DataTransferUtils = (function () {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DomUtils = void 0;
var browser_1 = require("../browser");

@@ -5,0 +4,0 @@ var common_1 = require("./common");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EncodeUtils = void 0;
var EncodeUtils = (function () {

@@ -5,0 +4,0 @@ function EncodeUtils() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnumUtils = void 0;
var EnumUtils = (function () {

@@ -5,0 +4,0 @@ function EnumUtils() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EvtUtils = void 0;
var browser_1 = require("../browser");

@@ -5,0 +4,0 @@ var common_1 = require("./common");

@@ -6,3 +6,5 @@ export declare class FileUtils {

static startDownloadFileLocal(content: File | Blob | ArrayBuffer | string, fileName: string): void;
static createFile(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
static isFile(file: unknown): file is File;
}
//# sourceMappingURL=file.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FileUtils = void 0;
var browser_1 = require("../browser");
var base64_1 = require("./base64");

@@ -43,4 +43,21 @@ var common_1 = require("./common");

};
FileUtils.createFile = function (fileBits, fileName, options) {
var _a;
if (browser_1.Browser.IE) {
var blob = new Blob(fileBits, options);
blob['lastModifiedDate'] = (_a = options === null || options === void 0 ? void 0 : options.lastModified) !== null && _a !== void 0 ? _a : Date.now();
blob['name'] = fileName;
return blob;
}
else
return new File(fileBits, fileName, options);
};
FileUtils.isFile = function (file) {
if (browser_1.Browser.IE)
return (file instanceof File) || (file instanceof Blob && common_1.isDefined(file.name));
else
return file instanceof File;
};
return FileUtils;
}());
exports.FileUtils = FileUtils;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkFont = exports.addFontToDocument = exports.loadFont = exports.afterFontsLoaded = exports.fontWebApiAvailable = void 0;
function fontWebApiAvailable() {

@@ -5,0 +4,0 @@ return document.fonts && document.fonts.ready && document.fonts.ready.then;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JsonUtils = void 0;
var JsonUtils = (function () {

@@ -5,0 +4,0 @@ function JsonUtils() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.KeyCode = exports.ModifierKey = exports.KeyUtils = void 0;
var browser_1 = require("../browser");

@@ -5,0 +4,0 @@ var encode_1 = require("./encode");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ListUtils = void 0;
var min_max_1 = require("../class/min-max");

@@ -5,0 +4,0 @@ var comparers_1 = require("./comparers");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NumberMapUtils = void 0;
var constants_1 = require("../../constants");

@@ -5,0 +4,0 @@ var min_max_1 = require("../../class/min-max");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringMapUtils = void 0;
var min_max_1 = require("../../class/min-max");

@@ -5,0 +4,0 @@ var constants_1 = require("../../constants");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MathUtils = void 0;
var list_1 = require("./list");

@@ -5,0 +4,0 @@ var MathUtils = (function () {

"use strict";
var _a, _b, _c;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MimeTypeUtils = exports.DxMimeType = exports.ImageWebpMimeType = exports.ImageWbmpMimeType = exports.ImageIcoMimeType = exports.ImageTiffMimeType = exports.ImageSvgMimeType = exports.ImagePjpegMimeType = exports.ImageJpegMimeType = exports.ImageGifMimeType = exports.ImagePngMimeType = exports.DocmMimeType = exports.PlainTextMimeType = exports.RtfMimeType = exports.OpenXmlMimeType = void 0;
exports.OpenXmlMimeType = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';

@@ -6,0 +5,0 @@ exports.RtfMimeType = 'application/rtf';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PopupUtils = void 0;
var browser_1 = require("../browser");

@@ -5,0 +4,0 @@ var PopupUtils = (function () {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SearchUtils = void 0;
var SearchUtils = (function () {

@@ -5,0 +4,0 @@ function SearchUtils() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringUtils = void 0;
var StringUtils = (function () {

@@ -5,0 +4,0 @@ function StringUtils() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TouchUtils = void 0;
var browser_1 = require("../browser");

@@ -5,0 +4,0 @@ var common_1 = require("./common");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Url = void 0;
var browser_1 = require("../browser");

@@ -5,0 +4,0 @@ var common_1 = require("./common");

{
"name": "@devexpress/utils",
"version": "1.2.1",
"version": "1.3.0",
"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