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

type-genius

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-genius - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

9

dist/index.js

@@ -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",

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