@graphql-tools/graphql-tag-pluck
Advanced tools
Comparing version 8.3.1 to 8.3.2-alpha-20240803110708-298aeb8bb2ca4ef649bf09fc42f82fc88c6d5e13
@@ -190,3 +190,3 @@ "use strict"; | ||
`)); | ||
async function loadVueCompilerSync() { | ||
async function loadVueCompilerAsync() { | ||
try { | ||
@@ -196,7 +196,7 @@ // eslint-disable-next-line import/no-extraneous-dependencies | ||
} | ||
catch (e) { | ||
catch { | ||
throw MissingVueTemplateCompilerError; | ||
} | ||
} | ||
function loadVueCompilerAsync() { | ||
function loadVueCompilerSync() { | ||
try { | ||
@@ -206,3 +206,3 @@ // eslint-disable-next-line import/no-extraneous-dependencies | ||
} | ||
catch (e) { | ||
catch { | ||
throw MissingVueTemplateCompilerError; | ||
@@ -212,7 +212,7 @@ } | ||
async function pluckVueFileScript(fileData) { | ||
const vueTemplateCompiler = await loadVueCompilerSync(); | ||
const vueTemplateCompiler = await loadVueCompilerAsync(); | ||
return parseWithVue(vueTemplateCompiler, fileData); | ||
} | ||
function pluckVueFileScriptSync(fileData) { | ||
const vueTemplateCompiler = loadVueCompilerAsync(); | ||
const vueTemplateCompiler = loadVueCompilerSync(); | ||
return parseWithVue(vueTemplateCompiler, fileData); | ||
@@ -225,3 +225,3 @@ } | ||
function pluckVueFileCustomBlockSync(fileData, filePath, blockType) { | ||
const vueTemplateCompiler = loadVueCompilerAsync(); | ||
const vueTemplateCompiler = loadVueCompilerSync(); | ||
return customBlockFromVue(vueTemplateCompiler, fileData, filePath, blockType); | ||
@@ -235,3 +235,3 @@ } | ||
} | ||
catch (e) { | ||
catch { | ||
throw MissingSvelteTemplateCompilerError; | ||
@@ -247,3 +247,3 @@ } | ||
} | ||
catch (e) { | ||
catch { | ||
throw MissingSvelteTemplateCompilerError; | ||
@@ -259,3 +259,3 @@ } | ||
} | ||
catch (e) { | ||
catch { | ||
throw MissingAstroCompilerError; | ||
@@ -271,3 +271,3 @@ } | ||
} | ||
catch (e) { | ||
catch { | ||
throw MissingAstroCompilerError; | ||
@@ -274,0 +274,0 @@ } |
@@ -0,1 +1,3 @@ | ||
import { createRequire } from 'node:module'; | ||
const require = createRequire(import.meta.url); | ||
import { Source } from 'graphql'; | ||
@@ -183,3 +185,3 @@ import { parse } from '@babel/parser'; | ||
`)); | ||
async function loadVueCompilerSync() { | ||
async function loadVueCompilerAsync() { | ||
try { | ||
@@ -189,7 +191,7 @@ // eslint-disable-next-line import/no-extraneous-dependencies | ||
} | ||
catch (e) { | ||
catch { | ||
throw MissingVueTemplateCompilerError; | ||
} | ||
} | ||
function loadVueCompilerAsync() { | ||
function loadVueCompilerSync() { | ||
try { | ||
@@ -199,3 +201,3 @@ // eslint-disable-next-line import/no-extraneous-dependencies | ||
} | ||
catch (e) { | ||
catch { | ||
throw MissingVueTemplateCompilerError; | ||
@@ -205,7 +207,7 @@ } | ||
async function pluckVueFileScript(fileData) { | ||
const vueTemplateCompiler = await loadVueCompilerSync(); | ||
const vueTemplateCompiler = await loadVueCompilerAsync(); | ||
return parseWithVue(vueTemplateCompiler, fileData); | ||
} | ||
function pluckVueFileScriptSync(fileData) { | ||
const vueTemplateCompiler = loadVueCompilerAsync(); | ||
const vueTemplateCompiler = loadVueCompilerSync(); | ||
return parseWithVue(vueTemplateCompiler, fileData); | ||
@@ -218,3 +220,3 @@ } | ||
function pluckVueFileCustomBlockSync(fileData, filePath, blockType) { | ||
const vueTemplateCompiler = loadVueCompilerAsync(); | ||
const vueTemplateCompiler = loadVueCompilerSync(); | ||
return customBlockFromVue(vueTemplateCompiler, fileData, filePath, blockType); | ||
@@ -228,3 +230,3 @@ } | ||
} | ||
catch (e) { | ||
catch { | ||
throw MissingSvelteTemplateCompilerError; | ||
@@ -240,3 +242,3 @@ } | ||
} | ||
catch (e) { | ||
catch { | ||
throw MissingSvelteTemplateCompilerError; | ||
@@ -252,3 +254,3 @@ } | ||
} | ||
catch (e) { | ||
catch { | ||
throw MissingAstroCompilerError; | ||
@@ -264,3 +266,3 @@ } | ||
} | ||
catch (e) { | ||
catch { | ||
throw MissingAstroCompilerError; | ||
@@ -267,0 +269,0 @@ } |
{ | ||
"name": "@graphql-tools/graphql-tag-pluck", | ||
"version": "8.3.1", | ||
"version": "8.3.2-alpha-20240803110708-298aeb8bb2ca4ef649bf09fc42f82fc88c6d5e13", | ||
"description": "Pluck graphql-tag template literals", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
66473
1614
2