diff --git a/package-lock.json b/package-lock.json index 29daba17d..3750736c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "@types/jest": "^29.0.0", "@types/node": "^20.0.0", "@types/sinon": "^17.0.0", + "camelcase": "^8.0.0", "esbuild": "^0.23.0", "fetch-mock": "npm:@gr2m/fetch-mock@^9.11.0-pull-request-644.1", "github-openapi-graphql-query": "^4.3.1", @@ -1143,6 +1144,15 @@ "node": ">=8" } }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/@istanbuljs/schema": { "version": "0.1.3", "dev": true, @@ -2230,11 +2240,15 @@ } }, "node_modules/camelcase": { - "version": "5.3.1", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-8.0.0.tgz", + "integrity": "sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=6" + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/caniuse-lite": { diff --git a/package.json b/package.json index b0cd4fed7..5c84c9668 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "@types/jest": "^29.0.0", "@types/node": "^20.0.0", "@types/sinon": "^17.0.0", + "camelcase": "^8.0.0", "esbuild": "^0.23.0", "fetch-mock": "npm:@gr2m/fetch-mock@^9.11.0-pull-request-644.1", "github-openapi-graphql-query": "^4.3.1", diff --git a/scripts/update-endpoints/types.mjs b/scripts/update-endpoints/types.mjs index c8c8a4be1..d70bd323d 100644 --- a/scripts/update-endpoints/types.mjs +++ b/scripts/update-endpoints/types.mjs @@ -1,7 +1,7 @@ import { writeFileSync, readFileSync } from "node:fs"; import { join as pathJoin } from "node:path"; -import camelCase from "lodash.camelcase"; +import camelcase from "camelcase"; import { format } from "prettier"; import { stringToJsdocComment } from "string-to-jsdoc-comment"; import sortKeys from "sort-keys"; @@ -39,7 +39,7 @@ async function generateTypes() { ); return namespaces.concat({ - namespace: camelCase(namespace), + namespace: camelcase(namespace), methods, }); }, []);