@graphql-tools/graphql-tag-pluck
Advanced tools
Comparing version 8.0.0-rc-20230519104353-b09f3180 to 8.0.0-rc-20230519104627-f6fea064
@@ -27,4 +27,3 @@ "use strict"; | ||
.reduce((minIndent, line) => { | ||
var _a; | ||
const currIndent = (_a = line.match(/^ */)) === null || _a === void 0 ? void 0 : _a[0].length; | ||
const currIndent = line.match(/^ */)?.[0].length; | ||
if (currIndent == null) { | ||
@@ -54,5 +53,4 @@ return minIndent; | ||
const toCamelCase = (str) => { | ||
var _a, _b; | ||
const words = (0, exports.splitWords)(str); | ||
const first = (_b = (_a = words.shift()) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : ''; | ||
const first = words.shift()?.toLowerCase() ?? ''; | ||
const rest = words.map(exports.toUpperFirst); | ||
@@ -59,0 +57,0 @@ return [first, ...rest].join(''); |
@@ -24,4 +24,3 @@ // Will use the shortest indention as an axis | ||
.reduce((minIndent, line) => { | ||
var _a; | ||
const currIndent = (_a = line.match(/^ */)) === null || _a === void 0 ? void 0 : _a[0].length; | ||
const currIndent = line.match(/^ */)?.[0].length; | ||
if (currIndent == null) { | ||
@@ -48,7 +47,6 @@ return minIndent; | ||
export const toCamelCase = (str) => { | ||
var _a, _b; | ||
const words = splitWords(str); | ||
const first = (_b = (_a = words.shift()) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : ''; | ||
const first = words.shift()?.toLowerCase() ?? ''; | ||
const rest = words.map(toUpperFirst); | ||
return [first, ...rest].join(''); | ||
}; |
{ | ||
"name": "@graphql-tools/graphql-tag-pluck", | ||
"version": "8.0.0-rc-20230519104353-b09f3180", | ||
"version": "8.0.0-rc-20230519104627-f6fea064", | ||
"description": "Pluck graphql-tag template literals", | ||
@@ -14,3 +14,3 @@ "sideEffects": false, | ||
"@babel/plugin-syntax-import-assertions": "^7.20.0", | ||
"@graphql-tools/utils": "10.0.0-rc-20230519104353-b09f3180", | ||
"@graphql-tools/utils": "10.0.0-rc-20230519104627-f6fea064", | ||
"tslib": "^2.4.0" | ||
@@ -17,0 +17,0 @@ }, |
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
57341
1402
+ Added@graphql-tools/utils@10.0.0-rc-20230519104627-f6fea064(transitive)
+ Added@graphql-typed-document-node/core@3.2.0(transitive)
Updated@graphql-tools/utils@10.0.0-rc-20230519104627-f6fea064