@amalto/helpers
Advanced tools
Comparing version 1.9.81 to 1.9.82
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AVAILABLE_LANGUAGES = void 0; | ||
exports.AVAILABLE_LANGUAGES = [ | ||
@@ -4,0 +5,0 @@ { |
@@ -13,7 +13,23 @@ "use strict"; | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
@@ -25,2 +41,4 @@ }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.escapeRegExp = exports.getItemsByIdx = exports.dateByLocalToString = exports.handleDuplicateNameFromArray = exports.deepCopy = exports.base64Decode = exports.filterCollection = exports.getNestedValue = exports.removeValFromArrayNoDup = exports.addValToArrayNoDup = exports.groupByProperty = exports.unloadTooltips = exports.loadTooltips = exports.getJSTreeData = exports.getI18nLabel = exports.getAcceptLanguageHeader = exports.getStyleDef = exports.replaceTemplateFlags = exports.replaceTemplateViewName = exports.hasRequiredResource = exports.triggerDataDownload = exports.downloadDataFile = exports.saveDataAsJSONFile = exports.orderDesc = exports.orderAsc = exports.addQueryParam = exports.getQueryParams = exports.formatFileSize = exports.arrayMax = exports.arrayMin = exports.URIb64_to_utf8JSON = exports.utf8JSON_to_b64URI = exports.escapeXml = exports.isValidHttpsUrl = exports.isValidXMLTag = exports.isValidKeyChar = exports.isValidScopeKeyword = exports.isNotEmpty = exports.isValidColorCode = exports.isValidEmail = exports.isValidPassword = exports.getGravatarUrl = exports.compileWordings = exports.getWordings = exports.HTTPS_URL_REGEX = exports.XML_TAG_REGEX = exports.MAP_PROPERTY_KEY_REGEX = exports.SCOPE_KEYWORD_REGEX = exports.COLOR_CODE_REGEX = exports.EMAIL_REGEX = void 0; | ||
exports.isSameObject = exports.nestedPathAttributesExist = exports.areJsonEqual = exports.displayString = void 0; | ||
var md5 = require('md5'); | ||
@@ -208,3 +226,3 @@ var base64 = __importStar(require("base-64")); | ||
}); | ||
triggerDataDownload(blob, fileName + "_" + new Date().toISOString().substr(0, 19) + (extension || '.json')); | ||
triggerDataDownload(blob, "".concat(fileName, "_").concat(new Date().toISOString().substr(0, 19)).concat(extension || '.json')); | ||
} | ||
@@ -331,3 +349,3 @@ exports.saveDataAsJSONFile = saveDataAsJSONFile; | ||
}) : null, | ||
icon: classnames_1.default('fas fa-fw', { | ||
icon: (0, classnames_1.default)('fas fa-fw', { | ||
'fa-th-large font-color-lighter': orgTreeData.id !== '0', | ||
@@ -429,6 +447,6 @@ 'fa-terminal black-color': orgTreeData.id === '0', | ||
if (firstTime) { | ||
res = res.concat("_" + idx); | ||
res = res.concat("_".concat(idx)); | ||
} | ||
else { | ||
res = res.replace(/_[\d]+$/, "_" + idx); | ||
res = res.replace(/_[\d]+$/, "_".concat(idx)); | ||
} | ||
@@ -435,0 +453,0 @@ firstTime = false; |
@@ -5,3 +5,3 @@ { | ||
"description": "Helpers functions used across Platform 6 core and components.", | ||
"version": "1.9.81", | ||
"version": "1.9.82", | ||
"license": "MIT", | ||
@@ -29,4 +29,4 @@ "repository": { | ||
"dependencies": { | ||
"@amalto/typings": "1.9.64", | ||
"@amalto/wordings": "1.9.30", | ||
"@amalto/typings": "1.9.65", | ||
"@amalto/wordings": "1.9.31", | ||
"base-64": "0.1.0", | ||
@@ -57,8 +57,8 @@ "classnames": "^2.2.6", | ||
"jsdom": "11.6.2", | ||
"nyc": "^13.2.0", | ||
"nyc": "^15.1.0", | ||
"react-addons-test-utils": "15.6.2", | ||
"react-test-renderer": "15.6.2", | ||
"sinon": "4.2.2", | ||
"ts-loader": "6.2.1", | ||
"typescript": "3.7.2", | ||
"sinon": "4.5.0", | ||
"ts-loader": "8.4.0", | ||
"typescript": "4.7.4", | ||
"webpack": "4.41.2" | ||
@@ -91,3 +91,3 @@ }, | ||
}, | ||
"gitHead": "ff185b989708340d58202d2f91eb288c084721ed" | ||
"gitHead": "12c99fb318e38ad8e32a51c4880c49fa1d703cd1" | ||
} |
@@ -19,4 +19,7 @@ const { resolve } = require('path'); | ||
resolve: { | ||
extensions: ['.webpack.js', '.ts', '.tsx', '.js', '.jsx', '.json'] | ||
extensions: ['.webpack.js', '.scss', '.css', '.js', '.ts', '.tsx'] | ||
}, | ||
node: { | ||
fs: 'empty' | ||
}, | ||
@@ -42,6 +45,3 @@ externals: { | ||
}, | ||
devtool: 'source-map', | ||
node: { | ||
fs: 'empty' | ||
} | ||
devtool: 'source-map' | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
299439
6289
+ Added@amalto/typings@1.9.65(transitive)
+ Added@amalto/wordings@1.9.31(transitive)
- Removed@amalto/typings@1.9.64(transitive)
- Removed@amalto/wordings@1.9.30(transitive)
Updated@amalto/typings@1.9.65
Updated@amalto/wordings@1.9.31