Socket
Socket
Sign inDemoInstall

plutonio

Package Overview
Dependencies
28
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

2

dist/index.js

@@ -8,2 +8,4 @@ /**

export default plutonio;
// const scanned = plutonio.scanner();
// console.log(JSON.stringify(scanned, null, 2));
//# sourceMappingURL=index.js.map

8

dist/scanner/index.js

@@ -9,4 +9,4 @@ /**

import path from 'path';
import ts from 'typescript';
import * as utils from '../utils/index.js';
import ts from 'typescript';
import * as t from './types.js';

@@ -16,3 +16,3 @@ const known_type_reference = ['Array', 'Record'];

export function scanner() {
const tsconfig_path = `/Users/x71c9/repos/plutonio/builder/tsconfig.json`;
const tsconfig_path = `/home/x71c9/repos/plutonio/builder/tsconfig.json`;
const config_file = ts.readConfigFile(tsconfig_path, ts.sys.readFile);

@@ -190,2 +190,6 @@ const config_object = config_file.config;

const values = [];
if (!type.types) {
// TODO: fix any
return [type.value];
}
for (const keytype of type.types) {

@@ -192,0 +196,0 @@ // TODO: fix any

{
"name": "plutonio",
"version": "0.1.0",
"version": "0.1.1",
"description": "A typescript library that scans your typescript project and generate a schema of all types and interfaces of the project.",

@@ -50,4 +50,4 @@ "main": "dist/index.js",

"i0n": "^0.6.0",
"typescript": "^5.2.2"
"typescript": "^5.3.3"
}
}

@@ -9,1 +9,3 @@ /**

export default plutonio;
// const scanned = plutonio.scanner();
// console.log(JSON.stringify(scanned, null, 2));

@@ -10,4 +10,4 @@ /**

import path from 'path';
import ts from 'typescript';
import * as utils from '../utils/index.js';
import ts from 'typescript';
import * as t from './types.js';

@@ -20,3 +20,3 @@

export function scanner() {
const tsconfig_path = `/Users/x71c9/repos/plutonio/builder/tsconfig.json`;
const tsconfig_path = `/home/x71c9/repos/plutonio/builder/tsconfig.json`;
const config_file = ts.readConfigFile(tsconfig_path, ts.sys.readFile);

@@ -243,2 +243,6 @@ const config_object = config_file.config;

const values: (string | number)[] = [];
if (!type.types) {
// TODO: fix any
return [(type as any).value];
}
for (const keytype of type.types) {

@@ -245,0 +249,0 @@ // TODO: fix any

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 not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc