@finos/legend-shared
Advanced tools
Comparing version 0.0.7 to 0.0.8
# @finos/legend-shared | ||
## 0.0.8 | ||
## 0.0.7 | ||
@@ -4,0 +6,0 @@ |
@@ -78,5 +78,6 @@ /** | ||
Object.keys(configData).forEach((key) => { | ||
const configObj = configData[key]; | ||
this.presets.forEach((preset) => { | ||
if (preset.getName() === key) { | ||
preset.configure(configData[key]); | ||
preset.configure(configObj); | ||
} | ||
@@ -86,3 +87,3 @@ }); | ||
if (plugin.getName() === key) { | ||
plugin.configure(configData[key]); | ||
plugin.configure(configObj); | ||
} | ||
@@ -89,0 +90,0 @@ }); |
@@ -17,3 +17,5 @@ /** | ||
import { stringify as losslessStringify, parse as losslessParse, } from 'lossless-json'; | ||
export const capitalize = (value) => `${value[0].toUpperCase()}${value.substring(1, value.length)}`; | ||
export const capitalize = (value) => value.length >= 1 | ||
? `${value[0].toUpperCase()}${value.substring(1, value.length)}` | ||
: value; | ||
export const toSentenceCase = (value) => (value ?? '').trim().replace(/^(?:\w+)\b/u, (val) => capitalize(val)); | ||
@@ -20,0 +22,0 @@ export const TITLE_CASE_EXCEPTION_WORDS = [ |
{ | ||
"name": "@finos/legend-shared", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Legend Studio shared utilities and helpers", | ||
@@ -50,3 +50,3 @@ "keywords": [ | ||
"lossless-json": "1.0.5", | ||
"mobx": "6.3.5", | ||
"mobx": "6.3.7", | ||
"object-hash": "2.2.0", | ||
@@ -61,5 +61,5 @@ "pako": "2.0.4", | ||
"devDependencies": { | ||
"@finos/legend-dev-utils": "0.1.0", | ||
"@finos/legend-dev-utils": "0.2.0", | ||
"cross-env": "7.0.3", | ||
"eslint": "8.1.0", | ||
"eslint": "8.2.0", | ||
"jest": "27.3.1", | ||
@@ -66,0 +66,0 @@ "lodash": "4.17.21", |
@@ -101,5 +101,6 @@ /** | ||
Object.keys(configData).forEach((key) => { | ||
const configObj = configData[key] as object; | ||
this.presets.forEach((preset) => { | ||
if (preset.getName() === key) { | ||
preset.configure(configData[key]); | ||
preset.configure(configObj); | ||
} | ||
@@ -109,3 +110,3 @@ }); | ||
if (plugin.getName() === key) { | ||
plugin.configure(configData[key]); | ||
plugin.configure(configObj); | ||
} | ||
@@ -112,0 +113,0 @@ }); |
@@ -29,3 +29,6 @@ /** | ||
Object.keys(val).forEach((key: string) => | ||
result.set(key, schema ? deserialize(schema, val[key]) : val[key]), | ||
result.set( | ||
key, | ||
schema ? deserialize(schema, val[key]) : (val[key] as NonNullable<T>), | ||
), | ||
); | ||
@@ -32,0 +35,0 @@ return result; |
@@ -22,3 +22,5 @@ /** | ||
export const capitalize = (value: string): string => | ||
`${value[0].toUpperCase()}${value.substring(1, value.length)}`; | ||
value.length >= 1 | ||
? `${(value[0] as string).toUpperCase()}${value.substring(1, value.length)}` | ||
: value; | ||
@@ -25,0 +27,0 @@ export const toSentenceCase = (value: string | undefined): string => |
@@ -25,2 +25,3 @@ { | ||
"noImplicitOverride": true, | ||
"noUncheckedIndexedAccess": true, | ||
"exactOptionalPropertyTypes": true, | ||
@@ -27,0 +28,0 @@ "forceConsistentCasingInFileNames": true, |
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
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
287623
5080
+ Addedmobx@6.3.7(transitive)
- Removedmobx@6.3.5(transitive)
Updatedmobx@6.3.7