@vorplex/compiler 0.0.47 → 0.0.50

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/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export * from './compiler.util';
2
2
  export * from './module-loader/bundler';
3
3
  export * from './module-loader/module-loader.util';
4
- export * from './npm/jsdelivr/jsdelivr.util';
5
4
  export * from './npm/npm.util';
6
5
  export * from './npm/package-json.type';
7
- export * from './script-analyzer.util';
6
+ export * from './npm/jsdelivr/jsdelivr.util';
package/dist/index.js CHANGED
@@ -2,7 +2,6 @@
2
2
  export * from './compiler.util';
3
3
  export * from './module-loader/bundler';
4
4
  export * from './module-loader/module-loader.util';
5
- export * from './npm/jsdelivr/jsdelivr.util';
6
5
  export * from './npm/npm.util';
7
6
  export * from './npm/package-json.type';
8
- export * from './script-analyzer.util';
7
+ export * from './npm/jsdelivr/jsdelivr.util';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vorplex/compiler",
3
- "version": "0.0.47",
3
+ "version": "0.0.50",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -15,16 +15,16 @@
15
15
  "types": "./dist/index.d.ts",
16
16
  "main": "./dist/index.js",
17
17
  "dependencies": {
18
- "@vorplex/core": "0.0.47",
18
+ "@vorplex/core": "0.0.50",
19
+ "semver": "7.7.3",
20
+ "typescript": "5.9.3",
19
21
  "esbuild-wasm": "0.25.12",
20
22
  "tslib": "2.8.1",
21
- "typescript": "5.9.3",
22
- "semver": "7.7.3",
23
23
  "yaml": "2.8.2"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/semver": "7.7.1",
27
- "vitest": "3.2.4"
26
+ "vitest": "3.2.4",
27
+ "@types/semver": "7.7.1"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "tsc -b --force tsconfig.build.json",
@@ -1,3 +0,0 @@
1
- export declare class $ScriptAnalyzer {
2
- static getDefaultExportPublicMethodNames(code: string): string[];
3
- }
@@ -1,26 +0,0 @@
1
- import ts from 'typescript';
2
- export class $ScriptAnalyzer {
3
- static getDefaultExportPublicMethodNames(code) {
4
- const sourceFile = ts.createSourceFile('script.ts', code, ts.ScriptTarget.Latest, true);
5
- const methods = [];
6
- ts.forEachChild(sourceFile, node => {
7
- if (ts.isClassDeclaration(node)) {
8
- const modifiers = ts.getModifiers(node);
9
- const hasExport = modifiers?.some(m => m.kind === ts.SyntaxKind.ExportKeyword);
10
- const hasDefault = modifiers?.some(m => m.kind === ts.SyntaxKind.DefaultKeyword);
11
- if (hasExport && hasDefault) {
12
- for (const member of node.members) {
13
- if (ts.isMethodDeclaration(member) && member.name) {
14
- const modifiers = member.modifiers ?? [];
15
- if (modifiers.find(modifier => modifier.kind === ts.SyntaxKind.ProtectedKeyword || modifier.kind === ts.SyntaxKind.PrivateKeyword))
16
- continue;
17
- const name = ts.isIdentifier(member.name) ? member.name.text : member.name.getText(sourceFile);
18
- methods.push(name);
19
- }
20
- }
21
- }
22
- }
23
- });
24
- return methods;
25
- }
26
- }