@cfp-studio/analyzer-api 0.1.16 → 0.1.18
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/dist/empty-hint.d.mts +91 -0
- package/dist/empty-hint.mjs +1 -0
- package/dist/index.d.mts +11231 -4
- package/dist/index.mjs +1 -1
- package/package.json +9 -5
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ERROR_PANEL_ATTRIBUTE as e,ERROR_PANEL_ID as t,clearErrorPanel as n,describeError as r,isErrorPanelVisible as i,renderErrorPanel as a}from"./error-panel.mjs";import{i as o,n as s,r as c,t as l}from"./logging-yGWzkaBD.mjs";import{decodePreviewableId as u,generatePreviewableId as d}from"./previewable-id.mjs";import f from"node:fs";import p from"node:path";import m from"node:url";function h(e){try{let t=p.dirname(m.fileURLToPath(e));for(let e=0;e<5;e++){let e=p.join(t,`package.json`);if(f.existsSync(e))return JSON.parse(f.readFileSync(e,`utf8`)).version??`unknown`;let n=p.dirname(t);if(n===t)break;t=n}return`unknown`}catch{return`unknown`}}function
|
|
1
|
+
import{ERROR_PANEL_ATTRIBUTE as e,ERROR_PANEL_ID as t,clearErrorPanel as n,describeError as r,isErrorPanelVisible as i,renderErrorPanel as a}from"./error-panel.mjs";import{i as o,n as s,r as c,t as l}from"./logging-yGWzkaBD.mjs";import{decodePreviewableId as u,generatePreviewableId as d}from"./previewable-id.mjs";import f from"node:fs";import p from"node:path";import m from"node:url";function h(e,t,n){let r=e=>n.some(t=>e===t||e.startsWith(`${t}/`)),i=t=>{if((e.isImportDeclaration(t)||e.isExportDeclaration(t))&&t.moduleSpecifier&&e.isStringLiteral(t.moduleSpecifier))return r(t.moduleSpecifier.text);if(e.isCallExpression(t)&&t.expression.kind===e.SyntaxKind.ImportKeyword){let[n]=t.arguments;return!!n&&e.isStringLiteral(n)&&r(n.text)}return!1},a=e=>i(e)?!0:e.getChildren(t).some(a);return a(t)}function g(e,t,n,r){return h(e,t,n)?!1:h(e,t,r)}function _(e){try{let t=p.dirname(m.fileURLToPath(e));for(let e=0;e<5;e++){let e=p.join(t,`package.json`);if(f.existsSync(e))return JSON.parse(f.readFileSync(e,`utf8`)).version??`unknown`;let n=p.dirname(t);if(n===t)break;t=n}return`unknown`}catch{return`unknown`}}function v(e){return e}function y(...e){let t={};for(let n of e)n&&Object.assign(t,n);return t}function b(e){return`__previewjs__/Wrapper.${e}`}export{l as DEFAULT_LOG_LEVEL,e as ERROR_PANEL_ATTRIBUTE,t as ERROR_PANEL_ID,n as clearErrorPanel,s as createPipelineLogger,c as createPipelineLoggerWithStream,u as decodePreviewableId,v as defineSpecialTypes,r as describeError,h as fileImportsPackage,d as generatePreviewableId,i as isErrorPanelVisible,y as mergeSpecialTypes,_ as readOwnVersion,a as renderErrorPanel,o as resolveLogLevel,g as shouldSkipFileForOtherFramework,b as wrapperPathFor};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfp-studio/analyzer-api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
"import": "./dist/error-panel.mjs",
|
|
17
17
|
"types": "./dist/error-panel.d.mts"
|
|
18
18
|
},
|
|
19
|
+
"./empty-hint": {
|
|
20
|
+
"import": "./dist/empty-hint.mjs",
|
|
21
|
+
"types": "./dist/empty-hint.d.mts"
|
|
22
|
+
},
|
|
19
23
|
"./previewable-id": {
|
|
20
24
|
"import": "./dist/previewable-id.mjs",
|
|
21
25
|
"types": "./dist/previewable-id.d.mts"
|
|
@@ -32,10 +36,10 @@
|
|
|
32
36
|
"dependencies": {
|
|
33
37
|
"pino": "9.11.0",
|
|
34
38
|
"pino-pretty": "13.1.1",
|
|
35
|
-
"@cfp-studio/
|
|
36
|
-
"@cfp-studio/
|
|
37
|
-
"@cfp-studio/
|
|
38
|
-
"@cfp-studio/
|
|
39
|
+
"@cfp-studio/vfs": "2.1.8",
|
|
40
|
+
"@cfp-studio/api": "16.1.2",
|
|
41
|
+
"@cfp-studio/serializable-values": "9.0.9",
|
|
42
|
+
"@cfp-studio/type-analyzer": "10.1.9"
|
|
39
43
|
},
|
|
40
44
|
"devDependencies": {
|
|
41
45
|
"typescript": "5.9.3",
|