type-genius
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -30,8 +30,3 @@ "use strict"; | ||
var deep_equal_1 = __importDefault(require("deep-equal")); | ||
function capitalize(sentence) { | ||
return sentence | ||
.split(" ") | ||
.map(function (word) { return word[0].toUpperCase() + word.slice(1); }) | ||
.join(" "); | ||
} | ||
var uppercamelcase_1 = __importDefault(require("uppercamelcase")); | ||
/** | ||
@@ -165,3 +160,3 @@ * Get the type of a value | ||
// If a match was found, we use that name to refer to existing interface | ||
var newTypeName = newNested.map(function (w) { return capitalize(w); }).join(""); | ||
var newTypeName = newNested.map(function (w) { return (0, uppercamelcase_1.default)(w); }).join(""); | ||
// This either returns an existing interfaceConfig or creates a new one | ||
@@ -168,0 +163,0 @@ var newOrExistingInterface = createInterface(config.object_keys || {}, typesStore, __assign(__assign({}, options), { interfaceName: newTypeName, nested: newNested })); |
@@ -5,4 +5,4 @@ "use strict"; | ||
var data = { | ||
c: { | ||
d: { | ||
crud_: { | ||
du_mb: { | ||
f: { | ||
@@ -9,0 +9,0 @@ 1: "2", |
{ | ||
"name": "type-genius", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "", | ||
@@ -18,3 +18,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"deep-equal": "^2.2.0" | ||
"deep-equal": "^2.2.0", | ||
"uppercamelcase": "^3.0.0" | ||
}, | ||
@@ -28,2 +29,3 @@ "files": [ | ||
"@types/node": "^18.14.1", | ||
"@types/uppercamelcase": "^3.0.0", | ||
"jest": "^29.4.3", | ||
@@ -30,0 +32,0 @@ "ts-jest": "^29.0.5", |
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
20355
2
7
348
+ Addeduppercamelcase@^3.0.0
+ Addedcamelcase@4.1.0(transitive)
+ Addeduppercamelcase@3.0.0(transitive)