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 to 1.0.1-alpha-001

lib/chunked-text.d.ts

27

dist/dx.utils.js
/*!
* DevExpress Utils (dx.utils)
* Version: 1.0.1-alpha
* Build date: Fri Aug 28 2020
* Version: 1.0.1-alpha-001
* Build date: Mon Aug 31 2020
*

@@ -396,9 +396,8 @@ * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED

}
Base64Utils.normalize = function (base64, mimeType) {
if (mimeType === void 0) { mimeType = 'image/png'; }
Base64Utils.normalizeToDataUrl = function (base64, mimeType) {
if (!Base64Utils.checkPrependDataUrl(base64))
base64 = Base64Utils.prepend(base64, mimeType);
base64 = Base64Utils.prependByDataUrl(base64, mimeType);
return base64;
};
Base64Utils.prepend = function (base64, mimeType) {
Base64Utils.prependByDataUrl = function (base64, mimeType) {
if (mimeType === void 0) { mimeType = 'image/png'; }

@@ -410,6 +409,6 @@ return "data:" + mimeType + ";base64," + base64;

};
Base64Utils.getBase64WithoutUrl = function (base64url) {
return base64url.replace(Base64Utils.dataUrl, '');
Base64Utils.deleteDataUrlPrefix = function (base64DataUrl) {
return base64DataUrl.replace(Base64Utils.dataUrl, '');
};
Base64Utils.getArray = function (base64) {
Base64Utils.getUint8Array = function (base64) {
base64 = atob(base64);

@@ -430,5 +429,5 @@ var n = base64.length;

};
Base64Utils.getFile = function (base64, blobOptions) {
Base64Utils.getFileFromBase64 = function (base64, blobOptions) {
if (blobOptions === void 0) { blobOptions = { type: 'text' }; }
var data = Base64Utils.getArray(base64);
var data = Base64Utils.getUint8Array(base64);
return (new Blob([data], blobOptions));

@@ -441,7 +440,5 @@ };

Base64Utils.getKnownMimeType = function (base64) {
var _a;
var match = base64.match(Base64Utils.dataUrl);
if (!match)
return Base64MimeType.Unknown;
var type = Base64Utils.mimeTypesMap[match[1]];
return type === undefined ? Base64MimeType.Unknown : type;
return match ? ((_a = Base64Utils.mimeTypesMap[match[1]]) !== null && _a !== void 0 ? _a : Base64MimeType.Unknown) : Base64MimeType.Unknown;
};

@@ -448,0 +445,0 @@ Base64Utils.fromBlobAsArrayBuffer = function (blob, callback) {

/*!
* DevExpress Utils (dx.utils.min)
* Version: 1.0.1-alpha
* Build date: Fri Aug 28 2020
* Version: 1.0.1-alpha-001
* Build date: Mon Aug 31 2020
*

@@ -9,3 +9,3 @@ * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED

*/
var DevExpress="object"==typeof DevExpress?DevExpress:{};DevExpress.WebUtils=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(2).__exportStar(n(3),t)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return u})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return f})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return p})),n.d(t,"__createBinding",(function(){return s})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return y})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return b})),n.d(t,"__await",(function(){return h})),n.d(t,"__asyncGenerator",(function(){return _})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return O})),n.d(t,"__makeTemplateObject",(function(){return g})),n.d(t,"__importStar",(function(){return x})),n.d(t,"__importDefault",(function(){return j})),n.d(t,"__classPrivateFieldGet",(function(){return T})),n.d(t,"__classPrivateFieldSet",(function(){return S}));
var DevExpress="object"==typeof DevExpress?DevExpress:{};DevExpress.WebUtils=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(2).__exportStar(n(3),t)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return u})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return f})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return p})),n.d(t,"__createBinding",(function(){return s})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return y})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return b})),n.d(t,"__await",(function(){return _})),n.d(t,"__asyncGenerator",(function(){return h})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return O})),n.d(t,"__makeTemplateObject",(function(){return g})),n.d(t,"__importStar",(function(){return x})),n.d(t,"__importDefault",(function(){return T})),n.d(t,"__classPrivateFieldGet",(function(){return j})),n.d(t,"__classPrivateFieldSet",(function(){return S}));
/*! *****************************************************************************

@@ -25,2 +25,2 @@ Copyright (c) Microsoft Corporation.

***************************************************************************** */
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}c((r=r.apply(e,t||[])).next())}))}function p(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var s=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function d(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function b(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r}function h(e){return this instanceof h?(this.v=e,this):new h(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof h?Promise.resolve(n.value.v).then(c,f):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:h(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function g(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return P(t,e),t}function j(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.Base64Utils=t.DocmMimeType=t.PlainTextMimeType=t.RtfMimeType=t.OpenXmlMimeType=t.Base64MimeType=void 0,function(e){e[e.Unknown=0]="Unknown",e[e.OpenXml=1]="OpenXml",e[e.Rtf=2]="Rtf",e[e.PlainText=3]="PlainText",e[e.Docm=4]="Docm"}(o=t.Base64MimeType||(t.Base64MimeType={})),t.OpenXmlMimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document",t.RtfMimeType="application/rtf",t.PlainTextMimeType="text/plain",t.DocmMimeType="application/vnd.ms-word.document.macroEnabled.12";var i=function(){function e(){}return e.normalize=function(t,n){return void 0===n&&(n="image/png"),e.checkPrependDataUrl(t)||(t=e.prepend(t,n)),t},e.prepend=function(e,t){return void 0===t&&(t="image/png"),"data:"+t+";base64,"+e},e.checkPrependDataUrl=function(t){return e.dataUrl.test(t)},e.getBase64WithoutUrl=function(t){return t.replace(e.dataUrl,"")},e.getArray=function(e){for(var t=(e=atob(e)).length,n=new Uint8Array(t);t--;)n[t]=e.charCodeAt(t);return n},e.fromArrayBuffer=function(e){for(var t=[],n=new Uint8Array(e),r=n.byteLength,o=0;o<r;o++)t.push(String.fromCharCode(n[o]));return window.btoa(t.join(""))},e.getFile=function(t,n){void 0===n&&(n={type:"text"});var r=e.getArray(t);return new Blob([r],n)},e.getMimeTypeAsString=function(t){var n=t.match(e.dataUrl);return n?n[1]:null},e.getKnownMimeType=function(t){var n=t.match(e.dataUrl);if(!n)return o.Unknown;var r=e.mimeTypesMap[n[1]];return void 0===r?o.Unknown:r},e.fromBlobAsArrayBuffer=function(t,n){var r=new FileReader;r.onloadend=function(){return n(e.fromArrayBuffer(r.result))},r.readAsArrayBuffer(t)},e.fromBlobAsDataUrl=function(e,t){var n=new FileReader;n.onloadend=function(){return t(n.result)},n.readAsDataURL(e)},e.mimeTypesMap=((r={})[t.OpenXmlMimeType]=o.OpenXml,r[t.RtfMimeType]=o.Rtf,r[t.PlainTextMimeType]=o.PlainText,r[t.DocmMimeType]=o.Docm,r),e.dataUrl=/^data:(.*?)(;(.*?))??(;base64)?,/,e}();t.Base64Utils=i}]);
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function u(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))}function p(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var s=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function d(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function b(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function h(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(c,f):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){u("next",e)}function f(e){u("throw",e)}function l(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function g(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return P(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function j(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.Base64Utils=t.DocmMimeType=t.PlainTextMimeType=t.RtfMimeType=t.OpenXmlMimeType=t.Base64MimeType=void 0,function(e){e[e.Unknown=0]="Unknown",e[e.OpenXml=1]="OpenXml",e[e.Rtf=2]="Rtf",e[e.PlainText=3]="PlainText",e[e.Docm=4]="Docm"}(o=t.Base64MimeType||(t.Base64MimeType={})),t.OpenXmlMimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document",t.RtfMimeType="application/rtf",t.PlainTextMimeType="text/plain",t.DocmMimeType="application/vnd.ms-word.document.macroEnabled.12";var i=function(){function e(){}return e.normalizeToDataUrl=function(t,n){return e.checkPrependDataUrl(t)||(t=e.prependByDataUrl(t,n)),t},e.prependByDataUrl=function(e,t){return void 0===t&&(t="image/png"),"data:"+t+";base64,"+e},e.checkPrependDataUrl=function(t){return e.dataUrl.test(t)},e.deleteDataUrlPrefix=function(t){return t.replace(e.dataUrl,"")},e.getUint8Array=function(e){for(var t=(e=atob(e)).length,n=new Uint8Array(t);t--;)n[t]=e.charCodeAt(t);return n},e.fromArrayBuffer=function(e){for(var t=[],n=new Uint8Array(e),r=n.byteLength,o=0;o<r;o++)t.push(String.fromCharCode(n[o]));return window.btoa(t.join(""))},e.getFileFromBase64=function(t,n){void 0===n&&(n={type:"text"});var r=e.getUint8Array(t);return new Blob([r],n)},e.getMimeTypeAsString=function(t){var n=t.match(e.dataUrl);return n?n[1]:null},e.getKnownMimeType=function(t){var n,r=t.match(e.dataUrl);return r&&null!==(n=e.mimeTypesMap[r[1]])&&void 0!==n?n:o.Unknown},e.fromBlobAsArrayBuffer=function(t,n){var r=new FileReader;r.onloadend=function(){return n(e.fromArrayBuffer(r.result))},r.readAsArrayBuffer(t)},e.fromBlobAsDataUrl=function(e,t){var n=new FileReader;n.onloadend=function(){return t(n.result)},n.readAsDataURL(e)},e.mimeTypesMap=((r={})[t.OpenXmlMimeType]=o.OpenXml,r[t.RtfMimeType]=o.Rtf,r[t.PlainTextMimeType]=o.PlainText,r[t.DocmMimeType]=o.Docm,r),e.dataUrl=/^data:(.*?)(;(.*?))??(;base64)?,/,e}();t.Base64Utils=i}]);

@@ -9,3 +9,5 @@ "use strict";

Object.defineProperty(StringOnpItertor.prototype, "length", {
get: function () { return this.str.length; },
get: function () {
return this.str.length;
},
enumerable: false,

@@ -12,0 +14,0 @@ configurable: true

{
"name": "devexpress-utils",
"version": "1.0.1-alpha",
"version": "1.0.1-alpha-001",
"description": "DevExpress utils",

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

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