@gqty/cli
Advanced tools
Comparing version 3.3.1-alpha-87b2c46.0 to 3.3.1-alpha-f8099f3.0
@@ -12,18 +12,2 @@ 'use strict'; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __spreadValues = (a, b) => { | ||
for (var prop in b || (b = {})) | ||
if (__hasOwnProp.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
if (__getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(b)) { | ||
if (__propIsEnum.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
} | ||
return a; | ||
}; | ||
const cjsRequire = globalThis.require || module$1.createRequire((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('config.js', document.baseURI).href))); | ||
@@ -185,3 +169,3 @@ function isPlainObject(v) { | ||
}); | ||
const config2 = __spreadValues({}, defaultConfig); | ||
const config2 = { ...defaultConfig }; | ||
delete config2.preImport; | ||
@@ -188,0 +172,0 @@ delete config2.enumsAsStrings; |
@@ -7,30 +7,2 @@ 'use strict'; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __spreadValues = (a, b) => { | ||
for (var prop in b || (b = {})) | ||
if (__hasOwnProp.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
if (__getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(b)) { | ||
if (__propIsEnum.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
} | ||
return a; | ||
}; | ||
var __objRest = (source, exclude) => { | ||
var target = {}; | ||
for (var prop in source) | ||
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) | ||
target[prop] = source[prop]; | ||
if (source != null && __getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(source)) { | ||
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) | ||
target[prop] = source[prop]; | ||
} | ||
return target; | ||
}; | ||
function useGenerateGQty(config) { | ||
@@ -53,14 +25,10 @@ const pluginDeps = promise.LazyPromise(async () => { | ||
var _a; | ||
const _b = config || {}, { | ||
const { | ||
destination = (_a = gqtyConfig.destination) != null ? _a : defaultConfig.destination, | ||
onExistingFileConflict, | ||
transformsGenerate, | ||
onError = console.error | ||
} = _b, generateOptions = __objRest(_b, [ | ||
"destination", | ||
"onExistingFileConflict", | ||
"transformsGenerate", | ||
"onError" | ||
]); | ||
writeGenerate(schema, destination, __spreadValues(__spreadValues({}, gqtyConfig), generateOptions), onExistingFileConflict, transformsGenerate).catch(onError); | ||
onError = console.error, | ||
...generateOptions | ||
} = config || {}; | ||
writeGenerate(schema, destination, { ...gqtyConfig, ...generateOptions }, onExistingFileConflict, transformsGenerate).catch(onError); | ||
}).catch((config == null ? void 0 : config.onError) || console.error); | ||
@@ -67,0 +35,0 @@ } |
@@ -9,18 +9,2 @@ 'use strict'; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __spreadValues = (a, b) => { | ||
for (var prop in b || (b = {})) | ||
if (__hasOwnProp.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
if (__getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(b)) { | ||
if (__propIsEnum.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
} | ||
return a; | ||
}; | ||
const getRemoteSchema = async (endpoint, { headers } = {}) => { | ||
@@ -34,5 +18,6 @@ const executor = async ({ document, variables }) => { | ||
method: "POST", | ||
headers: __spreadValues({ | ||
"Content-Type": "application/json" | ||
}, headers), | ||
headers: { | ||
"Content-Type": "application/json", | ||
...headers | ||
}, | ||
body: JSON.stringify({ query, variables }) | ||
@@ -39,0 +24,0 @@ }); |
{ | ||
"name": "@gqty/cli", | ||
"version": "3.3.1-alpha-87b2c46.0", | ||
"version": "3.3.1-alpha-f8099f3.0", | ||
"sideEffects": false, | ||
@@ -14,3 +14,3 @@ "peerDependencies": { | ||
"dependencies": { | ||
"gqty": "^2.3.0-alpha-87b2c46.0", | ||
"gqty": "^2.3.0-alpha-f8099f3.0", | ||
"undici": "^5.5.1" | ||
@@ -30,3 +30,2 @@ }, | ||
"module": "index.mjs", | ||
"types": "index.d.ts", | ||
"exports": { | ||
@@ -33,0 +32,0 @@ ".": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
7736827
3531
Updatedgqty@^2.3.0-alpha-f8099f3.0