New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@teambit/semantics.entities.semantic-schema

Package Overview
Dependencies
Maintainers
17
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teambit/semantics.entities.semantic-schema - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

dist/schemas/function-like.d.ts

12

api-schema.ts
import chalk from 'chalk';
import { ClassSchema, Export, FunctionSchema, InterfaceSchema, Module, TypeSchema, VariableSchema } from './schemas';
import {
ClassSchema,
Export,
FunctionLikeSchema,
InterfaceSchema,
Module,
TypeSchema,
VariableSchema,
} from './schemas';
import { SchemaNode } from './schema-node';

@@ -41,3 +49,3 @@

getSection(InterfaceSchema, 'Interfaces') +
getSection(FunctionSchema, 'Functions') +
getSection(FunctionLikeSchema, 'Functions') +
getSection(VariableSchema, 'Variables') +

@@ -44,0 +52,0 @@ getSection(TypeSchema, 'Types')

2

dist/api-schema.js

@@ -34,3 +34,3 @@ "use strict";

getSection(schemas_1.InterfaceSchema, 'Interfaces') +
getSection(schemas_1.FunctionSchema, 'Functions') +
getSection(schemas_1.FunctionLikeSchema, 'Functions') +
getSection(schemas_1.VariableSchema, 'Variables') +

@@ -37,0 +37,0 @@ getSection(schemas_1.TypeSchema, 'Types'));

export { APISchema } from './api-schema';
export type { SchemaNode } from './schema-node';
export { Export, Module, StaticProperties, FunctionSchema, Modifier, TypeRefSchema, VariableSchema, ClassSchema, ConstructorSchema, TypeSchema, TypeIntersectionSchema, TypeUnionSchema, TypeLiteralSchema, IndexSignatureSchema, InterfaceSchema, GetAccessorSchema, SetAccessorSchema, TypeQuerySchema, InferenceTypeSchema, LiteralTypeSchema, KeywordTypeSchema, TypeArraySchema, TypeOperatorSchema, TupleTypeSchema, ParameterSchema, } from './schemas';
export type { SchemaNode, Location } from './schema-node';
export { Export, Module, StaticProperties, FunctionLikeSchema, Modifier, TypeRefSchema, VariableSchema, ClassSchema, ConstructorSchema, TypeSchema, TypeIntersectionSchema, TypeUnionSchema, TypeLiteralSchema, IndexSignatureSchema, InterfaceSchema, GetAccessorSchema, SetAccessorSchema, TypeQuerySchema, InferenceTypeSchema, LiteralTypeSchema, KeywordTypeSchema, TypeArraySchema, TypeOperatorSchema, TupleTypeSchema, ParameterSchema, } from './schemas';
export type { JSONSchema, JSONSchemaObject } from './json-schema';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ParameterSchema = exports.TupleTypeSchema = exports.TypeOperatorSchema = exports.TypeArraySchema = exports.KeywordTypeSchema = exports.LiteralTypeSchema = exports.InferenceTypeSchema = exports.TypeQuerySchema = exports.SetAccessorSchema = exports.GetAccessorSchema = exports.InterfaceSchema = exports.IndexSignatureSchema = exports.TypeLiteralSchema = exports.TypeUnionSchema = exports.TypeIntersectionSchema = exports.TypeSchema = exports.ConstructorSchema = exports.ClassSchema = exports.VariableSchema = exports.TypeRefSchema = exports.FunctionSchema = exports.Module = exports.Export = exports.APISchema = void 0;
exports.ParameterSchema = exports.TupleTypeSchema = exports.TypeOperatorSchema = exports.TypeArraySchema = exports.KeywordTypeSchema = exports.LiteralTypeSchema = exports.InferenceTypeSchema = exports.TypeQuerySchema = exports.SetAccessorSchema = exports.GetAccessorSchema = exports.InterfaceSchema = exports.IndexSignatureSchema = exports.TypeLiteralSchema = exports.TypeUnionSchema = exports.TypeIntersectionSchema = exports.TypeSchema = exports.ConstructorSchema = exports.ClassSchema = exports.VariableSchema = exports.TypeRefSchema = exports.FunctionLikeSchema = exports.Module = exports.Export = exports.APISchema = void 0;
var api_schema_1 = require("./api-schema");

@@ -9,3 +9,3 @@ Object.defineProperty(exports, "APISchema", { enumerable: true, get: function () { return api_schema_1.APISchema; } });

Object.defineProperty(exports, "Module", { enumerable: true, get: function () { return schemas_1.Module; } });
Object.defineProperty(exports, "FunctionSchema", { enumerable: true, get: function () { return schemas_1.FunctionSchema; } });
Object.defineProperty(exports, "FunctionLikeSchema", { enumerable: true, get: function () { return schemas_1.FunctionLikeSchema; } });
Object.defineProperty(exports, "TypeRefSchema", { enumerable: true, get: function () { return schemas_1.TypeRefSchema; } });

@@ -12,0 +12,0 @@ Object.defineProperty(exports, "VariableSchema", { enumerable: true, get: function () { return schemas_1.VariableSchema; } });

@@ -5,2 +5,3 @@ /**

export interface SchemaNode {
readonly location?: Location;
getSignature?(): string;

@@ -12,1 +13,6 @@ toString(): string;

}
export declare type Location = {
file: string;
line: number;
character: number;
};

@@ -1,6 +0,7 @@

import { SchemaNode } from '../schema-node';
import { Location, SchemaNode } from '../schema-node';
export declare class ClassSchema implements SchemaNode {
readonly className: string;
readonly members: SchemaNode[];
constructor(className: string, members: SchemaNode[]);
readonly location: Location;
constructor(className: string, members: SchemaNode[], location: Location);
toObject(): {

@@ -7,0 +8,0 @@ constructorName: string;

@@ -9,5 +9,6 @@ "use strict";

class ClassSchema {
constructor(className, members) {
constructor(className, members, location) {
this.className = className;
this.members = members;
this.location = location;
}

@@ -14,0 +15,0 @@ toObject() {

export { Module } from './module';
export { Export, StaticProperties } from './export';
export { FunctionSchema, Modifier } from './function';
export { FunctionLikeSchema, Modifier } from './function-like';
export { TypeRefSchema } from './type-ref';

@@ -5,0 +5,0 @@ export { VariableSchema } from './variable';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ParameterSchema = exports.TupleTypeSchema = exports.TypeOperatorSchema = exports.TypeArraySchema = exports.KeywordTypeSchema = exports.LiteralTypeSchema = exports.InferenceTypeSchema = exports.TypeQuerySchema = exports.SetAccessorSchema = exports.GetAccessorSchema = exports.InterfaceSchema = exports.IndexSignatureSchema = exports.TypeLiteralSchema = exports.TypeUnionSchema = exports.TypeIntersectionSchema = exports.TypeSchema = exports.ConstructorSchema = exports.ClassSchema = exports.VariableSchema = exports.TypeRefSchema = exports.FunctionSchema = exports.Export = exports.Module = void 0;
exports.ParameterSchema = exports.TupleTypeSchema = exports.TypeOperatorSchema = exports.TypeArraySchema = exports.KeywordTypeSchema = exports.LiteralTypeSchema = exports.InferenceTypeSchema = exports.TypeQuerySchema = exports.SetAccessorSchema = exports.GetAccessorSchema = exports.InterfaceSchema = exports.IndexSignatureSchema = exports.TypeLiteralSchema = exports.TypeUnionSchema = exports.TypeIntersectionSchema = exports.TypeSchema = exports.ConstructorSchema = exports.ClassSchema = exports.VariableSchema = exports.TypeRefSchema = exports.FunctionLikeSchema = exports.Export = exports.Module = void 0;
var module_1 = require("./module");

@@ -8,4 +8,4 @@ Object.defineProperty(exports, "Module", { enumerable: true, get: function () { return module_1.Module; } });

Object.defineProperty(exports, "Export", { enumerable: true, get: function () { return export_1.Export; } });
var function_1 = require("./function");
Object.defineProperty(exports, "FunctionSchema", { enumerable: true, get: function () { return function_1.FunctionSchema; } });
var function_like_1 = require("./function-like");
Object.defineProperty(exports, "FunctionLikeSchema", { enumerable: true, get: function () { return function_like_1.FunctionLikeSchema; } });
var type_ref_1 = require("./type-ref");

@@ -12,0 +12,0 @@ Object.defineProperty(exports, "TypeRefSchema", { enumerable: true, get: function () { return type_ref_1.TypeRefSchema; } });

export { APISchema } from './api-schema';
export type { SchemaNode } from './schema-node';
export type { SchemaNode, Location } from './schema-node';
export {

@@ -7,3 +7,3 @@ Export,

StaticProperties,
FunctionSchema,
FunctionLikeSchema,
Modifier,

@@ -10,0 +10,0 @@ TypeRefSchema,

{
"name": "@teambit/semantics.entities.semantic-schema",
"version": "0.0.9",
"version": "0.0.10",
"homepage": "https://bit.dev/teambit/semantics/entities/semantic-schema",

@@ -9,6 +9,6 @@ "main": "dist/index.js",

"name": "entities/semantic-schema",
"version": "0.0.9"
"version": "0.0.10"
},
"dependencies": {
"chalk": "4.1.2",
"chalk": "2.4.2",
"json-schema": "0.4.0"

@@ -15,0 +15,0 @@ },

@@ -5,2 +5,3 @@ /**

export interface SchemaNode {
readonly location?: Location;
getSignature?(): string;

@@ -12,1 +13,3 @@

}
export type Location = { file: string; line: number; character: number };
import chalk from 'chalk';
import { SchemaNode } from '../schema-node';
import { Location, SchemaNode } from '../schema-node';
export class ClassSchema implements SchemaNode {
constructor(readonly className: string, readonly members: SchemaNode[]) {}
constructor(readonly className: string, readonly members: SchemaNode[], readonly location: Location) {}

@@ -7,0 +7,0 @@ toObject() {

export { Module } from './module';
export { Export, StaticProperties } from './export';
export { FunctionSchema, Modifier } from './function';
export { FunctionLikeSchema, Modifier } from './function-like';
export { TypeRefSchema } from './type-ref';

@@ -5,0 +5,0 @@ export { VariableSchema } from './variable';

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc