@osdk/cli 0.29.0-beta.5 → 0.30.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/esm/{acorn-OOLA2SYL.js → acorn-YSEQ53CG.js} +3 -3
- package/build/esm/{acorn-OOLA2SYL.js.map → acorn-YSEQ53CG.js.map} +1 -1
- package/build/esm/{angular-B3DVBAJV.js → angular-7FD4VEB2.js} +3 -3
- package/build/esm/{angular-B3DVBAJV.js.map → angular-7FD4VEB2.js.map} +1 -1
- package/build/esm/{babel-QGU36NF2.js → babel-4O5ROH7P.js} +3 -3
- package/build/esm/{babel-QGU36NF2.js.map → babel-4O5ROH7P.js.map} +1 -1
- package/build/esm/{chunk-ZAWCQ47H.js → chunk-EEVVG764.js} +6 -6
- package/build/esm/{chunk-ZAWCQ47H.js.map → chunk-EEVVG764.js.map} +1 -1
- package/build/esm/{chunk-5WP6J4UN.js → chunk-ESVT7U37.js} +3 -3
- package/build/esm/{chunk-5WP6J4UN.js.map → chunk-ESVT7U37.js.map} +1 -1
- package/build/esm/{chunk-SEG3TN7G.js → chunk-JMZKMGV3.js} +3 -3
- package/build/esm/{chunk-SEG3TN7G.js.map → chunk-JMZKMGV3.js.map} +1 -1
- package/build/esm/{chunk-QCQEOFJ7.js → chunk-PTWXGEFK.js} +5 -5
- package/build/esm/{chunk-QCQEOFJ7.js.map → chunk-PTWXGEFK.js.map} +1 -1
- package/build/esm/{chunk-CZNX7NAA.js → chunk-QINZLUQ3.js} +3 -3
- package/build/esm/{chunk-CZNX7NAA.js.map → chunk-QINZLUQ3.js.map} +1 -1
- package/build/esm/{chunk-TGQMPTOO.js → chunk-RBJBODXB.js} +3 -3
- package/build/esm/{chunk-TGQMPTOO.js.map → chunk-RBJBODXB.js.map} +1 -1
- package/build/esm/{chunk-2R54QG3I.js → chunk-VI2PPUJW.js} +3 -3
- package/build/esm/{chunk-2R54QG3I.js.map → chunk-VI2PPUJW.js.map} +1 -1
- package/build/esm/{chunk-HDRBKETK.js → chunk-Y4CQMWPS.js} +3 -3
- package/build/esm/{chunk-HDRBKETK.js.map → chunk-Y4CQMWPS.js.map} +1 -1
- package/build/esm/{chunk-WLPJIKJV.js → chunk-Z2MJFYY7.js} +3 -3
- package/build/esm/{chunk-WLPJIKJV.js.map → chunk-Z2MJFYY7.js.map} +1 -1
- package/build/esm/{estree-ATGZ6OGQ.js → estree-EM55NQOH.js} +3 -3
- package/build/esm/{estree-ATGZ6OGQ.js.map → estree-EM55NQOH.js.map} +1 -1
- package/build/esm/find-up-4NYOPMEX.js +4 -0
- package/build/esm/{find-up-JM7QWHT3.js.map → find-up-4NYOPMEX.js.map} +1 -1
- package/build/esm/{flow-GUZBCHQS.js → flow-Q44IFPPY.js} +3 -3
- package/build/esm/{flow-GUZBCHQS.js.map → flow-Q44IFPPY.js.map} +1 -1
- package/build/esm/{glimmer-K2WK52BN.js → glimmer-IAOCCN7N.js} +3 -3
- package/build/esm/{glimmer-K2WK52BN.js.map → glimmer-IAOCCN7N.js.map} +1 -1
- package/build/esm/{graphql-MBGHR3ZR.js → graphql-FSED3VAI.js} +3 -3
- package/build/esm/{graphql-MBGHR3ZR.js.map → graphql-FSED3VAI.js.map} +1 -1
- package/build/esm/{handleGenerate-KGS77ERN.js → handleGenerate-62KRK76V.js} +25 -21
- package/build/esm/{handleGenerate-KGS77ERN.js.map → handleGenerate-62KRK76V.js.map} +1 -1
- package/build/esm/{html-IRNVR4MI.js → html-X5TDJHVJ.js} +3 -3
- package/build/esm/{html-IRNVR4MI.js.map → html-X5TDJHVJ.js.map} +1 -1
- package/build/esm/index.js +18 -18
- package/build/esm/index.js.map +1 -1
- package/build/esm/loginFlow-IXG6OKLA.js +4 -0
- package/build/esm/{loginFlow-AGXNBVJB.js.map → loginFlow-IXG6OKLA.js.map} +1 -1
- package/build/esm/{markdown-N3ITOTMK.js → markdown-3BO6WVIC.js} +3 -3
- package/build/esm/{markdown-N3ITOTMK.js.map → markdown-3BO6WVIC.js.map} +1 -1
- package/build/esm/{meriyah-LUFL36FF.js → meriyah-VLP2WI6O.js} +3 -3
- package/build/esm/{meriyah-LUFL36FF.js.map → meriyah-VLP2WI6O.js.map} +1 -1
- package/build/esm/{postcss-TV6UK7MR.js → postcss-HMVGVGRU.js} +3 -3
- package/build/esm/{postcss-TV6UK7MR.js.map → postcss-HMVGVGRU.js.map} +1 -1
- package/build/esm/{siteDeployCommand-CWR5F4EH.js → siteDeployCommand-FU3JL5GR.js} +8 -8
- package/build/esm/{siteDeployCommand-CWR5F4EH.js.map → siteDeployCommand-FU3JL5GR.js.map} +1 -1
- package/build/esm/{typescript-KPTOIHC3.js → typescript-22FVOYI3.js} +3 -3
- package/build/esm/{typescript-KPTOIHC3.js.map → typescript-22FVOYI3.js.map} +1 -1
- package/build/esm/{versionDeleteCommand-5ZF5YLI4.js → versionDeleteCommand-55E6COZR.js} +7 -7
- package/build/esm/{versionDeleteCommand-5ZF5YLI4.js.map → versionDeleteCommand-55E6COZR.js.map} +1 -1
- package/build/esm/{versionDeleteCommand-5KF34BQE.js → versionDeleteCommand-UMMPJ4SC.js} +7 -7
- package/build/esm/{versionDeleteCommand-5KF34BQE.js.map → versionDeleteCommand-UMMPJ4SC.js.map} +1 -1
- package/build/esm/{versionGetCommand-JCTQEP3R.js → versionGetCommand-5U6PLYZZ.js} +6 -6
- package/build/esm/{versionGetCommand-JCTQEP3R.js.map → versionGetCommand-5U6PLYZZ.js.map} +1 -1
- package/build/esm/{versionInfoCommand-FCPKK743.js → versionInfoCommand-O5OZNI2H.js} +6 -6
- package/build/esm/{versionInfoCommand-FCPKK743.js.map → versionInfoCommand-O5OZNI2H.js.map} +1 -1
- package/build/esm/{versionListCommand-6KQHQNSI.js → versionListCommand-EG4ISQPS.js} +6 -6
- package/build/esm/{versionListCommand-6KQHQNSI.js.map → versionListCommand-EG4ISQPS.js.map} +1 -1
- package/build/esm/{versionListCommand-HSSUX52Q.js → versionListCommand-ZUO4VTML.js} +6 -6
- package/build/esm/{versionListCommand-HSSUX52Q.js.map → versionListCommand-ZUO4VTML.js.map} +1 -1
- package/build/esm/{versionSetCommand-X4B2SNU4.js → versionSetCommand-YJFQ6OXZ.js} +6 -6
- package/build/esm/{versionSetCommand-X4B2SNU4.js.map → versionSetCommand-YJFQ6OXZ.js.map} +1 -1
- package/build/esm/{versionUnsetCommand-FPJ4K56H.js → versionUnsetCommand-HJFTAD55.js} +7 -7
- package/build/esm/{versionUnsetCommand-FPJ4K56H.js.map → versionUnsetCommand-HJFTAD55.js.map} +1 -1
- package/build/esm/{widgetSetDeployCommand-N34DLLLN.js → widgetSetDeployCommand-NJTEMACP.js} +7 -7
- package/build/esm/{widgetSetDeployCommand-N34DLLLN.js.map → widgetSetDeployCommand-NJTEMACP.js.map} +1 -1
- package/build/esm/{yaml-LD5K7H4C.js → yaml-AXQPPS5Y.js} +3 -3
- package/build/esm/{yaml-LD5K7H4C.js.map → yaml-AXQPPS5Y.js.map} +1 -1
- package/package.json +9 -9
- package/build/esm/find-up-JM7QWHT3.js +0 -4
- package/build/esm/loginFlow-AGXNBVJB.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __commonJS, init_esm_shims, __toESM } from './chunk-
|
|
1
|
+
import { __commonJS, init_esm_shims, __toESM } from './chunk-RBJBODXB.js';
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/fetch-retry@6.0.0/node_modules/fetch-retry/index.js
|
|
4
4
|
var require_fetch_retry = __commonJS({
|
|
@@ -235,5 +235,5 @@ var TOO_MANY_REQUESTS = 429;
|
|
|
235
235
|
init_esm_shims();
|
|
236
236
|
|
|
237
237
|
export { PalantirApiError, UnknownError, createFetchHeaderMutator, createFetchOrThrow, createRetryingFetch };
|
|
238
|
-
//# sourceMappingURL=chunk-
|
|
239
|
-
//# sourceMappingURL=chunk-
|
|
238
|
+
//# sourceMappingURL=chunk-VI2PPUJW.js.map
|
|
239
|
+
//# sourceMappingURL=chunk-VI2PPUJW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../node_modules/.pnpm/fetch-retry@6.0.0/node_modules/fetch-retry/index.js","../../../shared.net.errors/build/esm/PalantirApiError.js","../../../shared.net.errors/build/esm/index.js","../../../shared.net.errors/build/esm/UnknownError.js","../../../shared.net.fetch/build/esm/createFetchHeaderMutator.js","../../../shared.net.fetch/build/esm/createFetchOrThrow.js","../../../shared.net.fetch/build/esm/createRetryingFetch.js","../../../shared.net.fetch/build/esm/index.js"],"names":["fetch","fetchRetry","error"],"mappings":";;;AAAA,IAAA,mBAAA,GAAA,UAAA,CAAA;AAAA,EAAA,8EAAA,CAAA,OAAA,EAAA,MAAA,EAAA;AAAA,IAAA,cAAA,EAAA;AAEA,IAAO,MAAA,CAAA,OAAA,GAAU,SAAUA,MAAAA,EAAO,QAAU,EAAA;AAC1C,MAAA,QAAA,GAAW,YAAY,EAAC;AACxB,MAAI,IAAA,OAAOA,WAAU,UAAY,EAAA;AAC/B,QAAM,MAAA,IAAI,cAAc,0BAA0B,CAAA;AAAA;AAEpD,MAAI,IAAA,OAAO,aAAa,QAAU,EAAA;AAChC,QAAM,MAAA,IAAI,cAAc,4BAA4B,CAAA;AAAA;AAEtD,MAAA,IAAI,SAAS,OAAY,KAAA,MAAA,IAAa,CAAC,iBAAkB,CAAA,QAAA,CAAS,OAAO,CAAG,EAAA;AAC1E,QAAM,MAAA,IAAI,cAAc,oCAAoC,CAAA;AAAA;AAE9D,MAAI,IAAA,QAAA,CAAS,UAAe,KAAA,MAAA,IAAa,CAAC,iBAAA,CAAkB,QAAS,CAAA,UAAU,CAAK,IAAA,OAAO,QAAS,CAAA,UAAA,KAAe,UAAY,EAAA;AAC7H,QAAM,MAAA,IAAI,cAAc,kFAAkF,CAAA;AAAA;AAE5G,MAAA,IAAI,QAAS,CAAA,OAAA,KAAY,MAAa,IAAA,CAAC,KAAM,CAAA,OAAA,CAAQ,QAAS,CAAA,OAAO,CAAK,IAAA,OAAO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A,MAAA,GAAS,QAAQ,WAAY,CAAA,KAAK,KAAK,OAAU,GAAA,WAAA;AAAA;AAC7E,GACD,CAAA;AACH;AACA,SAAS,YAAY,CAAG,EAAA;AACtB,EAAA,IAAI,aAAa,gBAAkB,EAAA;AACjC,IAAA,IAAI,CAAE,CAAA,UAAA,KAAe,mBAAuB,IAAA,CAAA,CAAE,eAAe,iBAAmB,EAAA;AAC9E,MAAO,OAAA,KAAA;AAAA;AACT;AAEF,EAAO,OAAA,IAAA;AACT;AACA,IAAM,mBAAsB,GAAA,GAAA;AAC5B,IAAM,iBAAoB,GAAA,GAAA;;;AC3C1B,cAAA,EAAA","file":"chunk-2R54QG3I.js","sourcesContent":["'use strict';\n\nmodule.exports = function (fetch, defaults) {\n defaults = defaults || {};\n if (typeof fetch !== 'function') {\n throw new ArgumentError('fetch must be a function');\n }\n if (typeof defaults !== 'object') {\n throw new ArgumentError('defaults must be an object');\n }\n if (defaults.retries !== undefined && !isPositiveInteger(defaults.retries)) {\n throw new ArgumentError('retries must be a positive integer');\n }\n if (defaults.retryDelay !== undefined && !isPositiveInteger(defaults.retryDelay) && typeof defaults.retryDelay !== 'function') {\n throw new ArgumentError('retryDelay must be a positive integer or a function returning a positive integer');\n }\n if (defaults.retryOn !== undefined && !Array.isArray(defaults.retryOn) && typeof defaults.retryOn !== 'function') {\n throw new ArgumentError('retryOn property expects an array or function');\n }\n var baseDefaults = {\n retries: 3,\n retryDelay: 1000,\n retryOn: []\n };\n defaults = Object.assign(baseDefaults, defaults);\n return function fetchRetry(input, init) {\n var retries = defaults.retries;\n var retryDelay = defaults.retryDelay;\n var retryOn = defaults.retryOn;\n if (init && init.retries !== undefined) {\n if (isPositiveInteger(init.retries)) {\n retries = init.retries;\n } else {\n throw new ArgumentError('retries must be a positive integer');\n }\n }\n if (init && init.retryDelay !== undefined) {\n if (isPositiveInteger(init.retryDelay) || typeof init.retryDelay === 'function') {\n retryDelay = init.retryDelay;\n } else {\n throw new ArgumentError('retryDelay must be a positive integer or a function returning a positive integer');\n }\n }\n if (init && init.retryOn) {\n if (Array.isArray(init.retryOn) || typeof init.retryOn === 'function') {\n retryOn = init.retryOn;\n } else {\n throw new ArgumentError('retryOn property expects an array or function');\n }\n }\n\n // eslint-disable-next-line no-undef\n return new Promise(function (resolve, reject) {\n var wrappedFetch = function (attempt) {\n // As of node 18, this is no longer needed since node comes with native support for fetch:\n /* istanbul ignore next */\n var _input = typeof Request !== 'undefined' && input instanceof Request ? input.clone() : input;\n fetch(_input, init).then(function (response) {\n if (Array.isArray(retryOn) && retryOn.indexOf(response.status) === -1) {\n resolve(response);\n } else if (typeof retryOn === 'function') {\n try {\n // eslint-disable-next-line no-undef\n return Promise.resolve(retryOn(attempt, null, response)).then(function (retryOnResponse) {\n if (retryOnResponse) {\n retry(attempt, null, response);\n } else {\n resolve(response);\n }\n }).catch(reject);\n } catch (error) {\n reject(error);\n }\n } else {\n if (attempt < retries) {\n retry(attempt, null, response);\n } else {\n resolve(response);\n }\n }\n }).catch(function (error) {\n if (typeof retryOn === 'function') {\n try {\n // eslint-disable-next-line no-undef\n Promise.resolve(retryOn(attempt, error, null)).then(function (retryOnResponse) {\n if (retryOnResponse) {\n retry(attempt, error, null);\n } else {\n reject(error);\n }\n }).catch(function (error) {\n reject(error);\n });\n } catch (error) {\n reject(error);\n }\n } else if (attempt < retries) {\n retry(attempt, error, null);\n } else {\n reject(error);\n }\n });\n };\n function retry(attempt, error, response) {\n var delay = typeof retryDelay === 'function' ? retryDelay(attempt, error, response) : retryDelay;\n setTimeout(function () {\n wrappedFetch(++attempt);\n }, delay);\n }\n wrappedFetch(0);\n });\n };\n};\nfunction isPositiveInteger(value) {\n return Number.isInteger(value) && value >= 0;\n}\nfunction ArgumentError(message) {\n this.name = 'ArgumentError';\n this.message = message;\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport class PalantirApiError extends Error {\n constructor(message, errorName, errorCode, errorDescription, statusCode, errorInstanceId, parameters) {\n super(message);\n this.message = message;\n this.errorName = errorName;\n this.errorCode = errorCode;\n this.errorDescription = errorDescription;\n this.statusCode = statusCode;\n this.errorInstanceId = errorInstanceId;\n this.parameters = parameters;\n }\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { PalantirApiError } from \"./PalantirApiError.js\";\nexport { UnknownError } from \"./UnknownError.js\";","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { PalantirApiError } from \"./PalantirApiError.js\";\nexport class UnknownError extends PalantirApiError {\n constructor(message, errorName, originalError, statusCode) {\n super(message, errorName, undefined, undefined, statusCode);\n this.originalError = originalError;\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport function createFetchHeaderMutator(fetchFn = fetch, mutator) {\n return async function (url, requestInit) {\n if (!requestInit) {\n return fetchFn(url, {\n headers: await mutator(new Headers())\n });\n }\n return fetchFn(url, {\n ...requestInit,\n headers: await mutator(new Headers(requestInit.headers))\n });\n };\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { PalantirApiError, UnknownError } from \"@osdk/shared.net.errors\";\n\n/**\n * Wraps a fetch plugin so that all errors (including when statusCode is not in the 200s) are converted to either PalantirApiError or UnknownError.\n *\n * If the returned promise does not have an error state, you are free to immediately call `.json()` or equivalent.\n *\n * @param fetchFn\n * @returns\n */\nexport function createFetchOrThrow(fetchFn = fetch) {\n return async function (url, requestInit) {\n let response;\n try {\n response = await fetchFn(url, requestInit);\n } catch (e) {\n throw convertError(e, \"A network error occurred\");\n }\n if (!response.ok) {\n const fallbackMessage = `Failed to fetch ${response.status} ${response.statusText}`;\n if (response.headers.get(\"Content-Type\") === \"text/plain\") {\n throw unknownError(await response.text(), response.status);\n }\n if (response.headers.get(\"Content-Type\") === \"text/html\") {\n throw unknownError(fallbackMessage, response.status, new Error(\"Received HTML error page: \" + (await response.text())));\n }\n let body;\n try {\n body = await response.json();\n } catch (e) {\n throw unknownError(fallbackMessage, response.status, e instanceof Error ? e : undefined);\n }\n throw new PalantirApiError(body?.message ?? fallbackMessage, body?.errorName, body?.errorCode, body?.errorDescription, response.status, body?.errorInstanceId, body?.parameters);\n }\n return response;\n };\n}\nfunction convertError(e, msgIfNotError = \"An unknown error occurred\") {\n if (e instanceof Error) {\n return unknownError(e.message, undefined, e);\n }\n return unknownError(msgIfNotError, undefined);\n}\nfunction unknownError(message, statusCode, originalError) {\n return new UnknownError(message, undefined, originalError, statusCode);\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { PalantirApiError } from \"@osdk/shared.net.errors\";\nimport fetchRetry from \"fetch-retry\";\nconst INITIAL_DELAY = 1_000;\nconst JITTER_FACTOR = 0.5;\nconst MAX_RETRIES = 3;\nexport function createRetryingFetch(fetch) {\n return fetchRetry(fetch, {\n retryDelay(attempt) {\n const delay = INITIAL_DELAY * 2 ** attempt;\n const jitter = delay * JITTER_FACTOR * (Math.random() * 2 - 1);\n return delay + jitter;\n },\n retryOn(attempt, error, response) {\n const status = response?.status ?? 0;\n return !(status >= 200 && status < 300) && isRetryable(error) && attempt < MAX_RETRIES;\n }\n });\n}\nfunction isRetryable(e) {\n if (e instanceof PalantirApiError) {\n if (e.statusCode !== SERVICE_UNAVAILABLE && e.statusCode !== TOO_MANY_REQUESTS) {\n return false;\n }\n }\n return true; // I think this logic is flawed?\n}\nconst SERVICE_UNAVAILABLE = 503;\nconst TOO_MANY_REQUESTS = 429;","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { createFetchHeaderMutator } from \"./createFetchHeaderMutator.js\";\nexport { createFetchOrThrow } from \"./createFetchOrThrow.js\";\nexport { createRetryingFetch } from \"./createRetryingFetch.js\";"]}
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/fetch-retry@6.0.0/node_modules/fetch-retry/index.js","../../../shared.net.errors/build/esm/PalantirApiError.js","../../../shared.net.errors/build/esm/index.js","../../../shared.net.errors/build/esm/UnknownError.js","../../../shared.net.fetch/build/esm/createFetchHeaderMutator.js","../../../shared.net.fetch/build/esm/createFetchOrThrow.js","../../../shared.net.fetch/build/esm/createRetryingFetch.js","../../../shared.net.fetch/build/esm/index.js"],"names":["fetch","fetchRetry","error"],"mappings":";;;AAAA,IAAA,mBAAA,GAAA,UAAA,CAAA;AAAA,EAAA,8EAAA,CAAA,OAAA,EAAA,MAAA,EAAA;AAAA,IAAA,cAAA,EAAA;AAEA,IAAO,MAAA,CAAA,OAAA,GAAU,SAAUA,MAAAA,EAAO,QAAU,EAAA;AAC1C,MAAA,QAAA,GAAW,YAAY,EAAC;AACxB,MAAI,IAAA,OAAOA,WAAU,UAAY,EAAA;AAC/B,QAAM,MAAA,IAAI,cAAc,0BAA0B,CAAA;AAAA;AAEpD,MAAI,IAAA,OAAO,aAAa,QAAU,EAAA;AAChC,QAAM,MAAA,IAAI,cAAc,4BAA4B,CAAA;AAAA;AAEtD,MAAA,IAAI,SAAS,OAAY,KAAA,MAAA,IAAa,CAAC,iBAAkB,CAAA,QAAA,CAA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A;AAAA,IACvB,WAAW,OAAS,EAAA;AAClB,MAAM,MAAA,KAAA,GAAQ,gBAAgB,CAAK,IAAA,OAAA;AACnC,MAAA,MAAM,SAAS,KAAQ,GAAA,aAAA,IAAiB,IAAK,CAAA,MAAA,KAAW,CAAI,GAAA,CAAA,CAAA;AAC5D,MAAA,OAAO,KAAQ,GAAA,MAAA;AAAA,KACjB;AAAA,IACA,OAAA,CAAQ,OAAS,EAAA,KAAA,EAAO,QAAU,EAAA;AAChC,MAAM,MAAA,MAAA,GAAS,UAAU,MAAU,IAAA,CAAA;AACnC,MAAO,OAAA,EAAE,UAAU,GAAO,IAAA,MAAA,GAAS,QAAQ,WAAY,CAAA,KAAK,KAAK,OAAU,GAAA,WAAA;AAAA;AAC7E,GACD,CAAA;AACH;AACA,SAAS,YAAY,CAAG,EAAA;AACtB,EAAA,IAAI,aAAa,gBAAkB,EAAA;AACjC,IAAA,IAAI,CAAE,CAAA,UAAA,KAAe,mBAAuB,IAAA,CAAA,CAAE,eAAe,iBAAmB,EAAA;AAC9E,MAAO,OAAA,KAAA;AAAA;AACT;AAEF,EAAO,OAAA,IAAA;AACT;AACA,IAAM,mBAAsB,GAAA,GAAA;AAC5B,IAAM,iBAAoB,GAAA,GAAA;;;AC3C1B,cAAA,EAAA","file":"chunk-VI2PPUJW.js","sourcesContent":["'use strict';\n\nmodule.exports = function (fetch, defaults) {\n defaults = defaults || {};\n if (typeof fetch !== 'function') {\n throw new ArgumentError('fetch must be a function');\n }\n if (typeof defaults !== 'object') {\n throw new ArgumentError('defaults must be an object');\n }\n if (defaults.retries !== undefined && !isPositiveInteger(defaults.retries)) {\n throw new ArgumentError('retries must be a positive integer');\n }\n if (defaults.retryDelay !== undefined && !isPositiveInteger(defaults.retryDelay) && typeof defaults.retryDelay !== 'function') {\n throw new ArgumentError('retryDelay must be a positive integer or a function returning a positive integer');\n }\n if (defaults.retryOn !== undefined && !Array.isArray(defaults.retryOn) && typeof defaults.retryOn !== 'function') {\n throw new ArgumentError('retryOn property expects an array or function');\n }\n var baseDefaults = {\n retries: 3,\n retryDelay: 1000,\n retryOn: []\n };\n defaults = Object.assign(baseDefaults, defaults);\n return function fetchRetry(input, init) {\n var retries = defaults.retries;\n var retryDelay = defaults.retryDelay;\n var retryOn = defaults.retryOn;\n if (init && init.retries !== undefined) {\n if (isPositiveInteger(init.retries)) {\n retries = init.retries;\n } else {\n throw new ArgumentError('retries must be a positive integer');\n }\n }\n if (init && init.retryDelay !== undefined) {\n if (isPositiveInteger(init.retryDelay) || typeof init.retryDelay === 'function') {\n retryDelay = init.retryDelay;\n } else {\n throw new ArgumentError('retryDelay must be a positive integer or a function returning a positive integer');\n }\n }\n if (init && init.retryOn) {\n if (Array.isArray(init.retryOn) || typeof init.retryOn === 'function') {\n retryOn = init.retryOn;\n } else {\n throw new ArgumentError('retryOn property expects an array or function');\n }\n }\n\n // eslint-disable-next-line no-undef\n return new Promise(function (resolve, reject) {\n var wrappedFetch = function (attempt) {\n // As of node 18, this is no longer needed since node comes with native support for fetch:\n /* istanbul ignore next */\n var _input = typeof Request !== 'undefined' && input instanceof Request ? input.clone() : input;\n fetch(_input, init).then(function (response) {\n if (Array.isArray(retryOn) && retryOn.indexOf(response.status) === -1) {\n resolve(response);\n } else if (typeof retryOn === 'function') {\n try {\n // eslint-disable-next-line no-undef\n return Promise.resolve(retryOn(attempt, null, response)).then(function (retryOnResponse) {\n if (retryOnResponse) {\n retry(attempt, null, response);\n } else {\n resolve(response);\n }\n }).catch(reject);\n } catch (error) {\n reject(error);\n }\n } else {\n if (attempt < retries) {\n retry(attempt, null, response);\n } else {\n resolve(response);\n }\n }\n }).catch(function (error) {\n if (typeof retryOn === 'function') {\n try {\n // eslint-disable-next-line no-undef\n Promise.resolve(retryOn(attempt, error, null)).then(function (retryOnResponse) {\n if (retryOnResponse) {\n retry(attempt, error, null);\n } else {\n reject(error);\n }\n }).catch(function (error) {\n reject(error);\n });\n } catch (error) {\n reject(error);\n }\n } else if (attempt < retries) {\n retry(attempt, error, null);\n } else {\n reject(error);\n }\n });\n };\n function retry(attempt, error, response) {\n var delay = typeof retryDelay === 'function' ? retryDelay(attempt, error, response) : retryDelay;\n setTimeout(function () {\n wrappedFetch(++attempt);\n }, delay);\n }\n wrappedFetch(0);\n });\n };\n};\nfunction isPositiveInteger(value) {\n return Number.isInteger(value) && value >= 0;\n}\nfunction ArgumentError(message) {\n this.name = 'ArgumentError';\n this.message = message;\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport class PalantirApiError extends Error {\n constructor(message, errorName, errorCode, errorDescription, statusCode, errorInstanceId, parameters) {\n super(message);\n this.message = message;\n this.errorName = errorName;\n this.errorCode = errorCode;\n this.errorDescription = errorDescription;\n this.statusCode = statusCode;\n this.errorInstanceId = errorInstanceId;\n this.parameters = parameters;\n }\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { PalantirApiError } from \"./PalantirApiError.js\";\nexport { UnknownError } from \"./UnknownError.js\";","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { PalantirApiError } from \"./PalantirApiError.js\";\nexport class UnknownError extends PalantirApiError {\n constructor(message, errorName, originalError, statusCode) {\n super(message, errorName, undefined, undefined, statusCode);\n this.originalError = originalError;\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport function createFetchHeaderMutator(fetchFn = fetch, mutator) {\n return async function (url, requestInit) {\n if (!requestInit) {\n return fetchFn(url, {\n headers: await mutator(new Headers())\n });\n }\n return fetchFn(url, {\n ...requestInit,\n headers: await mutator(new Headers(requestInit.headers))\n });\n };\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { PalantirApiError, UnknownError } from \"@osdk/shared.net.errors\";\n\n/**\n * Wraps a fetch plugin so that all errors (including when statusCode is not in the 200s) are converted to either PalantirApiError or UnknownError.\n *\n * If the returned promise does not have an error state, you are free to immediately call `.json()` or equivalent.\n *\n * @param fetchFn\n * @returns\n */\nexport function createFetchOrThrow(fetchFn = fetch) {\n return async function (url, requestInit) {\n let response;\n try {\n response = await fetchFn(url, requestInit);\n } catch (e) {\n throw convertError(e, \"A network error occurred\");\n }\n if (!response.ok) {\n const fallbackMessage = `Failed to fetch ${response.status} ${response.statusText}`;\n if (response.headers.get(\"Content-Type\") === \"text/plain\") {\n throw unknownError(await response.text(), response.status);\n }\n if (response.headers.get(\"Content-Type\") === \"text/html\") {\n throw unknownError(fallbackMessage, response.status, new Error(\"Received HTML error page: \" + (await response.text())));\n }\n let body;\n try {\n body = await response.json();\n } catch (e) {\n throw unknownError(fallbackMessage, response.status, e instanceof Error ? e : undefined);\n }\n throw new PalantirApiError(body?.message ?? fallbackMessage, body?.errorName, body?.errorCode, body?.errorDescription, response.status, body?.errorInstanceId, body?.parameters);\n }\n return response;\n };\n}\nfunction convertError(e, msgIfNotError = \"An unknown error occurred\") {\n if (e instanceof Error) {\n return unknownError(e.message, undefined, e);\n }\n return unknownError(msgIfNotError, undefined);\n}\nfunction unknownError(message, statusCode, originalError) {\n return new UnknownError(message, undefined, originalError, statusCode);\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { PalantirApiError } from \"@osdk/shared.net.errors\";\nimport fetchRetry from \"fetch-retry\";\nconst INITIAL_DELAY = 1_000;\nconst JITTER_FACTOR = 0.5;\nconst MAX_RETRIES = 3;\nexport function createRetryingFetch(fetch) {\n return fetchRetry(fetch, {\n retryDelay(attempt) {\n const delay = INITIAL_DELAY * 2 ** attempt;\n const jitter = delay * JITTER_FACTOR * (Math.random() * 2 - 1);\n return delay + jitter;\n },\n retryOn(attempt, error, response) {\n const status = response?.status ?? 0;\n return !(status >= 200 && status < 300) && isRetryable(error) && attempt < MAX_RETRIES;\n }\n });\n}\nfunction isRetryable(e) {\n if (e instanceof PalantirApiError) {\n if (e.statusCode !== SERVICE_UNAVAILABLE && e.statusCode !== TOO_MANY_REQUESTS) {\n return false;\n }\n }\n return true; // I think this logic is flawed?\n}\nconst SERVICE_UNAVAILABLE = 503;\nconst TOO_MANY_REQUESTS = 429;","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { createFetchHeaderMutator } from \"./createFetchHeaderMutator.js\";\nexport { createFetchOrThrow } from \"./createFetchOrThrow.js\";\nexport { createRetryingFetch } from \"./createRetryingFetch.js\";"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { init_esm_shims } from './chunk-RBJBODXB.js';
|
|
2
2
|
|
|
3
3
|
// ../widget.api/build/esm/manifest.js
|
|
4
4
|
init_esm_shims();
|
|
@@ -21,5 +21,5 @@ var HostMessage;
|
|
|
21
21
|
init_esm_shims();
|
|
22
22
|
|
|
23
23
|
export { MANIFEST_FILE_LOCATION };
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-Y4CQMWPS.js.map
|
|
25
|
+
//# sourceMappingURL=chunk-Y4CQMWPS.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../widget.api/build/esm/manifest.js","../../../widget.api/build/esm/index.js","../../../widget.api/build/esm/config.js","../../../widget.api/build/esm/messages/hostMessages.js","../../../widget.api/build/esm/messages/widgetMessages.js"],"names":[],"mappings":";;;AAAA,cAAA,EAAA;AAgBO,IAAM,sBAAyB,GAAA;;;AChBtC,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;AAgBO,IAAI,WAAA;AAAA,CACV,SAAU,YAAc,EAAA;AACvB,EAAA,YAAA,CAAa,OAAU,GAAA,OAAA;AACzB,CAAG,EAAA,WAAA,KAAgB,WAAc,GAAA,EAAG,CAAA,CAAA;;;ACnBpC,cAAA,EAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../../widget.api/build/esm/manifest.js","../../../widget.api/build/esm/index.js","../../../widget.api/build/esm/config.js","../../../widget.api/build/esm/messages/hostMessages.js","../../../widget.api/build/esm/messages/widgetMessages.js"],"names":[],"mappings":";;;AAAA,cAAA,EAAA;AAgBO,IAAM,sBAAyB,GAAA;;;AChBtC,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;AAgBO,IAAI,WAAA;AAAA,CACV,SAAU,YAAc,EAAA;AACvB,EAAA,YAAA,CAAa,OAAU,GAAA,OAAA;AACzB,CAAG,EAAA,WAAA,KAAgB,WAAc,GAAA,EAAG,CAAA,CAAA;;;ACnBpC,cAAA,EAAA","file":"chunk-Y4CQMWPS.js","sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const MANIFEST_FILE_LOCATION = \".palantir/widgets.config.json\";","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { defineConfig } from \"./config.js\";\nexport { MANIFEST_FILE_LOCATION } from \"./manifest.js\";\nexport { HostMessage, isHostParametersUpdatedMessage, visitHostMessage } from \"./messages/hostMessages.js\";\nexport { isWidgetEmitEventMessage, isWidgetReadyMessage, visitWidgetMessage } from \"./messages/widgetMessages.js\";","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Extracts the parameter ID strings as types from the given ParameterConfig.\n */\n\n/**\n * Extracts a map of parameter IDs to their async-wrapped value types from the given ParameterConfig.\n */\n\n/**\n * Extracts a map of parameter IDs to the raw parameter values from the given ParameterConfig.\n */\n\n/**\n * Extracts a list of strongly-typed parameter IDs from the given WidgetConfig for a given event ID.\n * If a parameter ID is referenced by an event but does not exist, its type will be never\n */\n\n/**\n * Extracts a map of event IDs to their raw parameter value types from the given WidgetConfig.\n */\n\nexport function defineConfig(c) {\n return c;\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// Interfaces and type guards for messages passed from the host Foundry UI to the widget\nexport let HostMessage;\n(function (_HostMessage) {\n _HostMessage.Version = \"1.0.0\";\n})(HostMessage || (HostMessage = {}));\nexport function isHostParametersUpdatedMessage(event) {\n return event.type === \"host.update-parameters\";\n}\n/**\n * Strongly typed visitor to handle every type of host message\n */\nexport function visitHostMessage(message, visitor) {\n const {\n type,\n payload\n } = message;\n const handler = visitor[type];\n if (handler) {\n // Typescript creates an & of the parameters instead of a union\n handler(payload);\n } else {\n visitor._unknown(type);\n }\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// Interfaces and type guards for messages passed from the widget to the host Foundry UI\nexport let WidgetMessage;\nexport function isWidgetReadyMessage(event) {\n return event.type === \"widget.ready\";\n}\nexport function isWidgetEmitEventMessage(event) {\n return event.type === \"widget.emit-event\";\n}\nexport function visitWidgetMessage(message, visitor) {\n const {\n type,\n payload\n } = message;\n const handler = visitor[type];\n if (handler) {\n // Typescript creates an & of the parameters instead of a union\n handler(payload);\n } else {\n visitor._unknown(type);\n }\n}"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { init_esm_shims } from './chunk-RBJBODXB.js';
|
|
2
2
|
import { consola } from 'consola';
|
|
3
3
|
|
|
4
4
|
// src/consola/handlePromptCancel.ts
|
|
@@ -14,5 +14,5 @@ function handlePromptCancel(promptResponse) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export { handlePromptCancel };
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-Z2MJFYY7.js.map
|
|
18
|
+
//# sourceMappingURL=chunk-Z2MJFYY7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/consola/handlePromptCancel.ts"],"names":[],"mappings":";;;;AAAA,cAAA,EAAA;AAmBA,IAAM,YAAA,GAAe,MAAO,CAAA,GAAA,CAAI,QAAQ,CAAA;AACjC,SAAS,mBAAmB,cAAgB,EAAA;AACjD,EAAA,MAAM,OAAU,GAAA,OAAO,cAAmB,KAAA,SAAA,IAAa,CAAC,cAAA;AACxD,EAAA,MAAM,WAAW,cAAmB,KAAA,YAAA;AACpC,EAAA,IAAI,YAAY,OAAS,EAAA;AACvB,IAAA,OAAA,CAAQ,KAAK,qBAAqB,CAAA;AAClC,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA;AAElB","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/consola/handlePromptCancel.ts"],"names":[],"mappings":";;;;AAAA,cAAA,EAAA;AAmBA,IAAM,YAAA,GAAe,MAAO,CAAA,GAAA,CAAI,QAAQ,CAAA;AACjC,SAAS,mBAAmB,cAAgB,EAAA;AACjD,EAAA,MAAM,OAAU,GAAA,OAAO,cAAmB,KAAA,SAAA,IAAa,CAAC,cAAA;AACxD,EAAA,MAAM,WAAW,cAAmB,KAAA,YAAA;AACpC,EAAA,IAAI,YAAY,OAAS,EAAA;AACvB,IAAA,OAAA,CAAQ,KAAK,qBAAqB,CAAA;AAClC,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA;AAElB","file":"chunk-Z2MJFYY7.js","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\n\n// https://github.com/unjs/consola?tab=readme-ov-file#await-promptmessage--type-cancel-\nconst cancelSymbol = Symbol.for(\"cancel\");\nexport function handlePromptCancel(promptResponse) {\n const isFalse = typeof promptResponse === \"boolean\" && !promptResponse;\n const isSigInt = promptResponse === cancelSymbol;\n if (isSigInt || isFalse) {\n consola.fail(\"Operation cancelled\");\n process.exit(0);\n }\n}"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { init_esm_shims } from './chunk-RBJBODXB.js';
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/estree.mjs
|
|
4
4
|
init_esm_shims();
|
|
@@ -6141,5 +6141,5 @@ var Tm = [...Vs, ...qa];
|
|
|
6141
6141
|
var Nx = Rs;
|
|
6142
6142
|
|
|
6143
6143
|
export { Nx as default, Tm as languages, Ha as options, dm as printers };
|
|
6144
|
-
//# sourceMappingURL=estree-
|
|
6145
|
-
//# sourceMappingURL=estree-
|
|
6144
|
+
//# sourceMappingURL=estree-EM55NQOH.js.map
|
|
6145
|
+
//# sourceMappingURL=estree-EM55NQOH.js.map
|